public abstract class AbstractDyadScaler
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.math3.stat.descriptive.SummaryStatistics[] |
statsX |
protected org.apache.commons.math3.stat.descriptive.SummaryStatistics[] |
statsY |
| Constructor and Description |
|---|
AbstractDyadScaler() |
| Modifier and Type | Method and Description |
|---|---|
void |
fit(DyadRankingDataset dataset)
Fits the standard scaler to the dataset.
|
void |
fitTransform(DyadRankingDataset dataset)
Fits the standard scaler to the dataset and transforms the entire dataset
according to the mean and standard deviation of the dataset.
|
java.lang.String |
getPrettyMeansString()
Returns a String for the means of all features this scaler has been fit to.
|
java.lang.String |
getPrettySTDString()
Prints the standard devations of all features this scaler has been fit to.
|
org.apache.commons.math3.stat.descriptive.SummaryStatistics[] |
getStatsX() |
org.apache.commons.math3.stat.descriptive.SummaryStatistics[] |
getStatsY() |
void |
transform(DyadRankingDataset dataset)
Transforms the entire dataset according to the mean and standard deviation of
the data the scaler has been fit to.
|
abstract void |
transformAlternatives(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.
|
void |
transformAlternatives(DyadRankingDataset dataset)
Transforms only the alternatives of each dyad according to the mean and
standard deviation of the data the scaler has been fit to.
|
void |
transformAlternatives(DyadRankingDataset dataset,
java.util.List<java.lang.Integer> ignoredIndices)
Transforms only the alternatives of each dyad in a
DyadRankingDataset according to the mean and standard
deviation of the data the scaler has been fit to. |
void |
transformAlternatives(IDyadRankingInstance drInstance,
java.util.List<java.lang.Integer> ignoredIndices)
Transforms only the alternatives of each dyad in an
IDyadRankingInstance according to the mean and standard
deviation of the data the scaler has been fit to. |
abstract void |
transformInstaceVector(ai.libs.jaicore.math.linearalgebra.Vector vector,
java.util.List<java.lang.Integer> ignoredIndices)
Transforms an instance feature vector.
|
abstract void |
transformInstances(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.
|
void |
transformInstances(DyadRankingDataset dataset)
Transforms only the instances of each dyad according to the mean and standard
of the data the scaler has been fit to.
|
void |
transformInstances(DyadRankingDataset dataset,
java.util.List<java.lang.Integer> ignoredIndices)
Transforms only the instances of each dyad in a
DyadRankingDataset according to the mean and standard
deviation of the data the scaler has been fit to. |
void |
transformInstances(DyadRankingInstance drInstance,
java.util.List<java.lang.Integer> ignoredIndices)
Transforms only the instances of each dyad in a
DyadRankingInstance according to the mean and standard
deviation of the data the scaler has been fit to. |
void |
transformInstances(SparseDyadRankingInstance drInstance,
java.util.List<java.lang.Integer> ignoredIndices)
Transforms only the instances of each dyad in a
SparseDyadRankingInstance according to the mean and standard
deviation of the data the scaler has been fit to. |
protected org.apache.commons.math3.stat.descriptive.SummaryStatistics[] statsX
protected org.apache.commons.math3.stat.descriptive.SummaryStatistics[] statsY
public org.apache.commons.math3.stat.descriptive.SummaryStatistics[] getStatsX()
public org.apache.commons.math3.stat.descriptive.SummaryStatistics[] getStatsY()
public void fit(DyadRankingDataset dataset)
dataset - The dataset the scaler should be fit to.public void transform(DyadRankingDataset dataset)
dataset - The dataset to be standardized.public void transformInstances(DyadRankingDataset dataset)
dataset - The dataset of which the instances are to be standardized.public void transformAlternatives(DyadRankingDataset dataset)
dataset - The dataset of which the alternatives are to be standardized.public abstract void transformInstances(Dyad dyad, java.util.List<java.lang.Integer> ignoredIndices)
dataset - The dataset of which the alternatives are to be
standardized.ignoredIndices - The List of indices that are been ignored by
the scaler.public abstract void transformAlternatives(Dyad dyad, java.util.List<java.lang.Integer> ignoredIndices)
dataset - The dataset of which the alternatives are to be
standardized.ignoredIndices - The List of indices that are been ignored by
the scaler.public abstract void transformInstaceVector(ai.libs.jaicore.math.linearalgebra.Vector vector,
java.util.List<java.lang.Integer> ignoredIndices)
Instance - vector to be transformedignoredIndices - public void transformInstances(SparseDyadRankingInstance drInstance, java.util.List<java.lang.Integer> ignoredIndices)
SparseDyadRankingInstance 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. {dataset - The dataset of which the alternatives are to be
standardized.ignoredIndices - The List of indices that are been ignored by
the scaler.public void transformInstances(DyadRankingInstance drInstance, java.util.List<java.lang.Integer> ignoredIndices)
DyadRankingInstance 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. {dataset - The dataset of which the alternatives are to be
standardized.ignoredIndices - The List of indices that are been ignored by
the scaler.public void transformAlternatives(IDyadRankingInstance drInstance, java.util.List<java.lang.Integer> ignoredIndices)
IDyadRankingInstance 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. {dataset - The dataset of which the alternatives are to be
standardized.ignoredIndices - The List of indices that are been ignored by
the scaler.public void transformInstances(DyadRankingDataset dataset, java.util.List<java.lang.Integer> ignoredIndices)
DyadRankingDataset 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. {dataset - The dataset of which the alternatives are to be
standardized.ignoredIndices - The List of indices that are been ignored by
the scaler.public void transformAlternatives(DyadRankingDataset dataset, java.util.List<java.lang.Integer> ignoredIndices)
DyadRankingDataset 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. {dataset - The dataset of which the alternatives are to be
standardized.ignoredIndices - The List of indices that are been ignored by
the scaler.public void fitTransform(DyadRankingDataset dataset)
dataset - The dataset to be standardized.public java.lang.String getPrettySTDString()
public java.lang.String getPrettyMeansString()