mlr_measures_torch.default: Default Measure of a Generic Torch Task

mlr_measures_torch.defaultR Documentation

Default Measure of a Generic Torch Task

Description

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

Super class

mlr3::Measure -> MeasureTorchDefault

Methods

Public methods

Inherited methods

MeasureTorchDefault$new()

Creates a new instance of this R6 class.

Usage
MeasureTorchDefault$new()

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.

See Also

Other Measure: mlr_measures_torch

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


mlr3torch documentation built on Oct. 30, 2026, 5:10 p.m.