public class MutualInfoFS extends RemoveAttributeTransform
MutualInfoFS.NumericalHandeling
Modifier and Type | Class and Description |
---|---|
static class |
MutualInfoFS.NumericalHandeling
The definition for mutual information for continuous attributes requires
an integration of an unknown function, as such requires some form of
approximation.
|
catIndexMap, numIndexMap
Modifier | Constructor and Description |
---|---|
|
MutualInfoFS()
Creates a new Mutual Information feature selection object that attempts
to select up to 100 features.
|
|
MutualInfoFS(ClassificationDataSet dataSet,
int featureCount)
Creates a new Mutual Information feature selection object.
|
|
MutualInfoFS(ClassificationDataSet dataSet,
int featureCount,
MutualInfoFS.NumericalHandeling numericHandling)
Creates a new Mutual Information feature selection object.
|
|
MutualInfoFS(int featureCount)
Creates a new Mutual Information feature selection object.
|
|
MutualInfoFS(int featureCount,
MutualInfoFS.NumericalHandeling numericHandling)
Creates a new Mutual Information feature selection object.
|
protected |
MutualInfoFS(MutualInfoFS toCopy)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
MutualInfoFS |
clone() |
void |
fit(DataSet data)
Fits this transform to the given dataset.
|
int |
getFeatureCount()
Returns the number of features to select
|
MutualInfoFS.NumericalHandeling |
getHandling()
Returns the method of numericHandling numeric features
|
void |
setFeatureCount(int featureCount)
Sets the number of features to select
|
void |
setHandling(MutualInfoFS.NumericalHandeling handling)
Sets the method of numericHandling numeric features
|
consolidate, getKeptNominal, getKeptNumeric, getReverseNominalMap, getReverseNumericMap, setUp, transform
public MutualInfoFS()
MutualInfoFS.NumericalHandeling.BINARY
public MutualInfoFS(int featureCount)
MutualInfoFS.NumericalHandeling.BINARY
featureCount
- the number of features to selectpublic MutualInfoFS(ClassificationDataSet dataSet, int featureCount)
MutualInfoFS.NumericalHandeling.BINARY
dataSet
- the classification data set to perform feature selection
fromfeatureCount
- the number of features to selectprotected MutualInfoFS(MutualInfoFS toCopy)
toCopy
- the object to copypublic MutualInfoFS(int featureCount, MutualInfoFS.NumericalHandeling numericHandling)
featureCount
- the number of features to selectnumericHandling
- the way to handle the computation of mutual
information for numeric attributespublic MutualInfoFS(ClassificationDataSet dataSet, int featureCount, MutualInfoFS.NumericalHandeling numericHandling)
dataSet
- the classification data set to perform feature selection
fromfeatureCount
- the number of features to selectnumericHandling
- the way to handle the computation of mutual
information for numeric attributespublic void fit(DataSet data)
DataTransform
FailedToFitException
exception may be
thrown.fit
in interface DataTransform
fit
in class RemoveAttributeTransform
data
- the dataset to fir this transform topublic MutualInfoFS clone()
clone
in interface DataTransform
clone
in class RemoveAttributeTransform
public void setFeatureCount(int featureCount)
featureCount
- the number of features to selectpublic int getFeatureCount()
public void setHandling(MutualInfoFS.NumericalHandeling handling)
handling
- the numeric numericHandlingpublic MutualInfoFS.NumericalHandeling getHandling()
Copyright © 2017. All rights reserved.