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
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()