Class DyadUnitIntervalScaler
- java.lang.Object
-
- ai.libs.jaicore.ml.dyadranking.util.AbstractDyadScaler
-
- ai.libs.jaicore.ml.dyadranking.util.DyadUnitIntervalScaler
-
- All Implemented Interfaces:
java.io.Serializable
public class DyadUnitIntervalScaler extends AbstractDyadScaler
A scaler that can be fit to a certain dataset and then be used to normalize datasets, i.e. transform the data to have a length of 1.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class ai.libs.jaicore.ml.dyadranking.util.AbstractDyadScaler
statsX, statsY
-
-
Constructor Summary
Constructors Constructor Description DyadUnitIntervalScaler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfit(DyadRankingDataset dataset)Fits the standard scaler to the dataset.voidtransformAlternatives(DyadRankingDataset dataset, java.util.List<java.lang.Integer> ignoredIndices)Transforms only the alternatives of each dyad in aDyadRankingDatasetaccording to the mean and standard deviation of the data the scaler has been fit to.voidtransformAlternatives(Dyad dyad, java.util.List<java.lang.Integer> ignoredIndices)Transforms only the alternatives of each dyad according to the mean and standard deviation of the data the scaler has been fit to.voidtransformInstaceVector(ai.libs.jaicore.math.linearalgebra.Vector vector, java.util.List<java.lang.Integer> ignoredIndices)Transforms an instance feature vector.voidtransformInstances(DyadRankingDataset dataset, java.util.List<java.lang.Integer> ignoredIndices)Transforms only the instances of each dyad in aDyadRankingDatasetaccording to the mean and standard deviation of the data the scaler has been fit to.voidtransformInstances(Dyad dyad, java.util.List<java.lang.Integer> ignoredIndices)Transforms only the instances of each dyad according to the mean and standard deviation of the data the scaler has been fit to.-
Methods inherited from class ai.libs.jaicore.ml.dyadranking.util.AbstractDyadScaler
fitTransform, getPrettyMeansString, getPrettySTDString, getStatsX, getStatsY, transform, transformAlternatives, transformAlternatives, transformInstances, transformInstances, transformInstances
-
-
-
-
Method Detail
-
fit
public void fit(DyadRankingDataset dataset)
Description copied from class:AbstractDyadScalerFits the standard scaler to the dataset.- Overrides:
fitin classAbstractDyadScaler- Parameters:
dataset- The dataset the scaler should be fit to.
-
transformInstances
public void transformInstances(DyadRankingDataset dataset, java.util.List<java.lang.Integer> ignoredIndices)
Description copied from class:AbstractDyadScalerTransforms only the instances of each dyad in aDyadRankingDatasetaccording to the mean and standard deviation of the data the scaler has been fit to. The attributes with indices contained in ignoredIndices are not transformed. {- Overrides:
transformInstancesin classAbstractDyadScaler- Parameters:
dataset- The dataset of which the alternatives are to be standardized.ignoredIndices- TheListof indices that are been ignored by the scaler.
-
transformAlternatives
public void transformAlternatives(DyadRankingDataset dataset, java.util.List<java.lang.Integer> ignoredIndices)
Description copied from class:AbstractDyadScalerTransforms only the alternatives of each dyad in aDyadRankingDatasetaccording to the mean and standard deviation of the data the scaler has been fit to. The attributes with indices contained in ignoredIndices are not transformed. {- Overrides:
transformAlternativesin classAbstractDyadScaler- Parameters:
dataset- The dataset of which the alternatives are to be standardized.ignoredIndices- TheListof indices that are been ignored by the scaler.
-
transformInstaceVector
public void transformInstaceVector(ai.libs.jaicore.math.linearalgebra.Vector vector, java.util.List<java.lang.Integer> ignoredIndices)Description copied from class:AbstractDyadScalerTransforms an instance feature vector.- Specified by:
transformInstaceVectorin classAbstractDyadScaler
-
transformInstances
public void transformInstances(Dyad dyad, java.util.List<java.lang.Integer> ignoredIndices)
Description copied from class:AbstractDyadScalerTransforms only the instances of each dyad according to the mean and standard deviation of the data the scaler has been fit to. The attributes with indices contained in ignoredIndices are not transformed. {- Specified by:
transformInstancesin classAbstractDyadScalerignoredIndices- TheListof indices that are been ignored by the scaler.
-
transformAlternatives
public void transformAlternatives(Dyad dyad, java.util.List<java.lang.Integer> ignoredIndices)
Description copied from class:AbstractDyadScalerTransforms only the alternatives of each dyad according to the mean and standard deviation of the data the scaler has been fit to.- Specified by:
transformAlternativesin classAbstractDyadScalerignoredIndices- TheListof indices that are been ignored by the scaler.
-
-