Class LinearScalingTransformation
java.lang.Object
org.tribuo.transform.transformations.LinearScalingTransformation
- All Implemented Interfaces:
com.oracle.labs.mlrg.olcut.config.Configurable,com.oracle.labs.mlrg.olcut.provenance.Provenancable<TransformationProvenance>,Transformation
A Transformation which takes an observed distribution and rescales
it so all values are between the desired min and max. The scaling
is linear.
Values outside the observed range are clamped to the desired min or max.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionDefaults to zero - one.LinearScalingTransformation(double targetMin, double targetMax) Constructs a LinearScalingTransformation which puts feature values into the specified range. -
Method Summary
Modifier and TypeMethodDescriptionCreates the statistics object for this Transformation.voidUsed by the OLCUT configuration system, and should not be called by external code.toString()
-
Constructor Details
-
LinearScalingTransformation
public LinearScalingTransformation()Defaults to zero - one. -
LinearScalingTransformation
public LinearScalingTransformation(double targetMin, double targetMax) Constructs a LinearScalingTransformation which puts feature values into the specified range.- Parameters:
targetMin- The new minimum feature value.targetMax- The new maximum feature value.
-
-
Method Details
-
postConfig
public void postConfig()Used by the OLCUT configuration system, and should not be called by external code.- Specified by:
postConfigin interfacecom.oracle.labs.mlrg.olcut.config.Configurable
-
createStats
Description copied from interface:TransformationCreates the statistics object for this Transformation.- Specified by:
createStatsin interfaceTransformation- Returns:
- The statistics object.
-
getProvenance
- Specified by:
getProvenancein interfacecom.oracle.labs.mlrg.olcut.provenance.Provenancable<TransformationProvenance>
-
toString
-