Documentation of 'jsat.datatransform.Imputer' Java class
Imputer
jsat.datatransform

Class Imputer

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, DataTransform, InPlaceTransform


    public class Imputer
    extends java.lang.Object
    implements InPlaceTransform
    Imputes missing values in a dataset by finding reasonable default values. For categorical features, the mode will always be used for imputing. Numeric values can change how the imputing value is selected by using the Imputer.NumericImputionMode enum.
    See Also:
    Serialized Form
    • Method Detail

      • fit

        public void fit(DataSet d)
        Description copied from interface: DataTransform
        Fits this transform to the given dataset. Some transforms can only be learned from classification or regression datasets. If an incompatible dataset type is given, a FailedToFitException exception may be thrown.
        Specified by:
        fit in interface DataTransform
        Parameters:
        d - the dataset to fir this transform to
      • mutatesNominal

        public boolean mutatesNominal()
        Description copied from interface: InPlaceTransform
        By default returns false. Only returns true if this transform will mutableTransform the nominal feature values of a data point.
        Specified by:
        mutatesNominal in interface InPlaceTransform
        Returns:
        true if nominal feature values are mutated, false otherwise.
      • transform

        public DataPoint transform(DataPoint dp)
        Description copied from interface: DataTransform
        Returns a new data point that is a transformation of the original data point. This new data point is a different object, but may contain the same references as the original data point. It is not guaranteed that you can mutate the transformed point without having a side effect on the original point.
        Specified by:
        transform in interface DataTransform
        Parameters:
        dp - the data point to apply a transformation to
        Returns:
        a transformed data point
      • clone

        public Imputer clone()
        Specified by:
        clone in interface DataTransform
        Overrides:
        clone in class java.lang.Object

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.