Skip to contents

Processor for scalar regression labels. Converts values to a 1D float tensor.

Super classes

RHealth::Processor -> RHealth::FeatureProcessor -> RegressionLabelProcessor

Methods

Inherited methods


Method process()

Process a numeric label into a single-element float tensor.

Usage

RegressionLabelProcessor$process(value)

Arguments

value

A numeric value.

Returns

A torch tensor of shape 1.


Method size()

Return the size of the processed label (always 1).

Usage

RegressionLabelProcessor$size()

Returns

Integer 1


Method print()

Print a string representation.

Usage

RegressionLabelProcessor$print(...)

Arguments

...

Ignored.


Method clone()

The objects of this class are cloneable with this method.

Usage

RegressionLabelProcessor$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.