Skip to contents

This class is used to create visualizations of tasks and learners.

Super class

vistool::Visualizer1D -> Visualizer1DModel

Public fields

task

(`mlr3::Task`)
Task used to train the model.

learner

(`mlr3::Learner`)
Learner used to train the model.

Methods

Inherited methods


Method new()

Creates a new instance of this [R6][R6::R6Class] class.

Usage

Visualizer1DModel$new(
  task,
  learner,
  x1_limits = NULL,
  padding = 0,
  n_points = 100L
)

Arguments

task

([mlr3::Task])
The task to train the model on.

learner

([mlr3::Learner])
The learner to train the model with.

x1_limits

(`numeric(2)`)
The x1 limits.

padding

(`numeric(1)`)
A margin that is added to x1limits and x2limits. The x1 margin is calculated by `max(x1lmits) - min(x1limits) * padding`.

n_points

(`integer(1)`)
The number of generated point per dimension. Note that a grid of `npoints^2` values is generated and evaluated by `objective$eval(x)` to plot the surface.


Method clone()

The objects of this class are cloneable with this method.

Usage

Visualizer1DModel$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.