Documentation of 'jsat.datatransform.featureselection.MutualInfoFS' Java class
MutualInfoFS
jsat.datatransform.featureselection

Class MutualInfoFS

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


    public class MutualInfoFS
    extends RemoveAttributeTransform
    Performs greedy feature selection based on Mutual Information of the features with respect to the class values. This is an attempt to select features that are discriminative for classification tasks.
    The method of performing Mutual Information on numeric attributes is controlled by MutualInfoFS.NumericalHandeling
    See Also:
    Serialized Form
    • Constructor Detail

      • MutualInfoFS

        public MutualInfoFS()
        Creates a new Mutual Information feature selection object that attempts to select up to 100 features. Numeric attributes are handled by MutualInfoFS.NumericalHandeling.BINARY
      • MutualInfoFS

        public MutualInfoFS(int featureCount)
        Creates a new Mutual Information feature selection object. Numeric attributes are handled by MutualInfoFS.NumericalHandeling.BINARY
        Parameters:
        featureCount - the number of features to select
      • MutualInfoFS

        public MutualInfoFS(ClassificationDataSet dataSet,
                            int featureCount)
        Creates a new Mutual Information feature selection object. Numeric attributes are handled by MutualInfoFS.NumericalHandeling.BINARY
        Parameters:
        dataSet - the classification data set to perform feature selection from
        featureCount - the number of features to select
      • MutualInfoFS

        public MutualInfoFS(int featureCount,
                            MutualInfoFS.NumericalHandeling numericHandling)
        Creates a new Mutual Information feature selection object.
        Parameters:
        featureCount - the number of features to select
        numericHandling - the way to handle the computation of mutual information for numeric attributes
      • MutualInfoFS

        public MutualInfoFS(ClassificationDataSet dataSet,
                            int featureCount,
                            MutualInfoFS.NumericalHandeling numericHandling)
        Creates a new Mutual Information feature selection object.
        Parameters:
        dataSet - the classification data set to perform feature selection from
        featureCount - the number of features to select
        numericHandling - the way to handle the computation of mutual information for numeric attributes
    • Method Detail

      • fit

        public void fit(DataSet data)
        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
        Overrides:
        fit in class RemoveAttributeTransform
        Parameters:
        data - the dataset to fir this transform to
      • setFeatureCount

        public void setFeatureCount(int featureCount)
        Sets the number of features to select
        Parameters:
        featureCount - the number of features to select
      • getFeatureCount

        public int getFeatureCount()
        Returns the number of features to select
        Returns:
        the number of features to select
      • setHandling

        public void setHandling(MutualInfoFS.NumericalHandeling handling)
        Sets the method of numericHandling numeric features
        Parameters:
        handling - the numeric numericHandling
      • getHandling

        public MutualInfoFS.NumericalHandeling getHandling()
        Returns the method of numericHandling numeric features
        Returns:
        the method of numericHandling numeric features

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.