Skip to contents

This is a simple placeholder measure and extracts the actual value from the $default_measure of a TaskTorch.

See also

Other Measure: mlr_measures_torch

Super class

mlr3::Measure -> MeasureTorchDefault

Methods

Inherited methods


MeasureTorchDefault$new()

Creates a new instance of this R6 class.

Usage


MeasureTorchDefault$clone()

The objects of this class are cloneable with this method.

Usage

MeasureTorchDefault$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

d = data.frame(x = rnorm(10), y = rnorm(10))
task = as_task_torch(d, target = "y",
  default_measure = msr_torch("mse", function(truth, response) mean((truth - response)^2)))
msr("torch.default")
#> 
#> ── <MeasureTorchDefault> (torch.default): Default Measure for a TaskTorch ──────
#> • Packages: mlr3
#> • Range: [-Inf, Inf]
#> • Minimize: NA
#> • Average: macro
#> • Parameters: list()
#> • Properties: requires_task and obs_loss
#> • Predict type: response
#> • Predict sets: test
#> • Aggregator: mean()