Class 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void fit​(org.api4.java.ai.ml.ranking.dyad.dataset.IDyadRankingDataset dataset)
      Fits the standard scaler to the dataset.
      void transformAlternatives​(org.api4.java.ai.ml.ranking.dyad.dataset.IDyadRankingDataset 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​(org.api4.java.ai.ml.ranking.dyad.dataset.IDyad 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 transformInstaceVector​(org.api4.java.common.math.IVector vector, java.util.List<java.lang.Integer> ignoredIndices)
      Transforms an instance feature vector.
      void transformInstances​(org.api4.java.ai.ml.ranking.dyad.dataset.IDyadRankingDataset 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​(org.api4.java.ai.ml.ranking.dyad.dataset.IDyad 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 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DyadUnitIntervalScaler

        public DyadUnitIntervalScaler()
    • Method Detail

      • fit

        public void fit​(org.api4.java.ai.ml.ranking.dyad.dataset.IDyadRankingDataset dataset)
        Description copied from class: AbstractDyadScaler
        Fits the standard scaler to the dataset.
        Overrides:
        fit in class AbstractDyadScaler
        Parameters:
        dataset - The dataset the scaler should be fit to.
      • transformInstances

        public void transformInstances​(org.api4.java.ai.ml.ranking.dyad.dataset.IDyadRankingDataset dataset,
                                       java.util.List<java.lang.Integer> ignoredIndices)
        Description copied from class: AbstractDyadScaler
        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. The attributes with indices contained in ignoredIndices are not transformed. {
        Overrides:
        transformInstances in class AbstractDyadScaler
        Parameters:
        dataset - The dataset of which the alternatives are to be standardized.
        ignoredIndices - The List of indices that are been ignored by the scaler.
      • transformAlternatives

        public void transformAlternatives​(org.api4.java.ai.ml.ranking.dyad.dataset.IDyadRankingDataset dataset,
                                          java.util.List<java.lang.Integer> ignoredIndices)
        Description copied from class: AbstractDyadScaler
        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. The attributes with indices contained in ignoredIndices are not transformed. {
        Overrides:
        transformAlternatives in class AbstractDyadScaler
        Parameters:
        dataset - The dataset of which the alternatives are to be standardized.
        ignoredIndices - The List of indices that are been ignored by the scaler.
      • transformInstaceVector

        public void transformInstaceVector​(org.api4.java.common.math.IVector vector,
                                           java.util.List<java.lang.Integer> ignoredIndices)
        Description copied from class: AbstractDyadScaler
        Transforms an instance feature vector.
        Specified by:
        transformInstaceVector in class AbstractDyadScaler
      • transformInstances

        public void transformInstances​(org.api4.java.ai.ml.ranking.dyad.dataset.IDyad dyad,
                                       java.util.List<java.lang.Integer> ignoredIndices)
        Description copied from class: AbstractDyadScaler
        Transforms 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:
        transformInstances in class AbstractDyadScaler
        ignoredIndices - The List of indices that are been ignored by the scaler.
      • transformAlternatives

        public void transformAlternatives​(org.api4.java.ai.ml.ranking.dyad.dataset.IDyad dyad,
                                          java.util.List<java.lang.Integer> ignoredIndices)
        Description copied from class: AbstractDyadScaler
        Transforms only the alternatives of each dyad according to the mean and standard deviation of the data the scaler has been fit to.
        Specified by:
        transformAlternatives in class AbstractDyadScaler
        ignoredIndices - The List of indices that are been ignored by the scaler.