|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfeature_filtering.AbstractFeatureFiltering
feature_filtering.EntropyBasedFiltering
public class EntropyBasedFiltering
This class is used for entropy-based filtering.
Field Summary | |
---|---|
private weka.core.Instances |
descriptorDatasetFormat
The format of the dataset used to create the filter. |
private weka.filters.unsupervised.attribute.Discretize |
discretizationFilter
The discretization filter to use. |
static double[] |
percentiles
Percentile values for which thresholds have been pre-calculated. |
private double |
threshold
The threshold to apply, i.e. features with lower entropy will be filtered. |
static double[] |
thresholds
Corresponding thresholds for the percentiles above. |
Constructor Summary | |
---|---|
EntropyBasedFiltering(java.lang.String serializedFilterFileName,
java.lang.String serializedInstancesFileName,
double percentage)
Constructor |
Method Summary | |
---|---|
protected java.util.ArrayList<double[]> |
filterInternal(java.util.ArrayList<double[]> descriptors)
Subclasses should provide the implementation. |
protected double[][] |
filterInternal(double[][] descriptors)
Subclasses should provide the implementation. |
private void |
setDescriptorDatasetFormat(java.lang.String serializedInstancesFile)
|
private void |
setDiscretizationFilter(java.lang.String serializedFilterFile)
|
Methods inherited from class feature_filtering.AbstractFeatureFiltering |
---|
calculatePercentileValuesEntropy, calculatePercentileValuesVariance, entropyCalculation, filter, filter, main, varianceCalculation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static double[] percentiles
public static double[] thresholds
private weka.filters.unsupervised.attribute.Discretize discretizationFilter
private weka.core.Instances descriptorDatasetFormat
private double threshold
Constructor Detail |
---|
public EntropyBasedFiltering(java.lang.String serializedFilterFileName, java.lang.String serializedInstancesFileName, double percentage) throws java.lang.Exception
serializedFilterFileName
- a serialized filter objectserializedInstancesFileName
- a serialized instances objectpercentage
- the threshold
java.lang.Exception
Method Detail |
---|
protected double[][] filterInternal(double[][] descriptors) throws java.lang.Exception
AbstractFeatureFiltering
filterInternal
in class AbstractFeatureFiltering
java.lang.Exception
protected java.util.ArrayList<double[]> filterInternal(java.util.ArrayList<double[]> descriptors) throws java.lang.Exception
AbstractFeatureFiltering
filterInternal
in class AbstractFeatureFiltering
java.lang.Exception
private void setDescriptorDatasetFormat(java.lang.String serializedInstancesFile) throws java.lang.Exception
java.lang.Exception
private void setDiscretizationFilter(java.lang.String serializedFilterFile) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |