|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.attributeSelection.ASEvaluation
weka.attributeSelection.SubsetEvaluator
weka.attributeSelection.ConsistencySubsetEval
Consistency attribute subset evaluator.
For more information see:
Liu, H., and Setiono, R., (1996). A probabilistic approach to feature
selection - A filter solution. In 13th International Conference on
Machine Learning (ICML'96), July 1996, pp. 319-327. Bari, Italy.
Nested Class Summary | |
class |
ConsistencySubsetEval.hashKey
Class providing keys to the hash table. |
Field Summary | |
private int |
m_classIndex
class index |
private Discretize |
m_disTransform
Discretise numeric attributes |
private int |
m_numAttribs
number of attributes in the training data |
private int |
m_numInstances
number of instances in the training data |
private java.util.Hashtable |
m_table
Hash table for evaluating feature subsets |
private Instances |
m_trainInstances
training instances |
Constructor Summary | |
ConsistencySubsetEval()
Constructor. |
Method Summary | |
void |
buildEvaluator(Instances data)
Generates a attribute evaluator. |
private double |
consistencyCount()
calculates the level of consistency in a dataset using a subset of features. |
double |
evaluateSubset(java.util.BitSet subset)
Evaluates a subset of attributes |
java.lang.String |
globalInfo()
Returns a string describing this search method |
private void |
insertIntoTable(Instance inst,
double[] instA)
Inserts an instance into the hash table |
static void |
main(java.lang.String[] args)
Main method for testing this class. |
private void |
resetOptions()
reset to defaults |
java.lang.String |
toString()
returns a description of the evaluator |
Methods inherited from class weka.attributeSelection.ASEvaluation |
forName, makeCopies, postProcess |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private Instances m_trainInstances
private int m_classIndex
private int m_numAttribs
private int m_numInstances
private Discretize m_disTransform
private java.util.Hashtable m_table
Constructor Detail |
public ConsistencySubsetEval()
Method Detail |
public java.lang.String globalInfo()
private void resetOptions()
public void buildEvaluator(Instances data) throws java.lang.Exception
buildEvaluator
in class ASEvaluation
data
- set of instances serving as training data
java.lang.Exception
- if the evaluator has not been
generated successfullypublic double evaluateSubset(java.util.BitSet subset) throws java.lang.Exception
evaluateSubset
in class SubsetEvaluator
subset
- a bitset representing the attribute subset to be
evaluated
java.lang.Exception
- if the subset could not be evaluatedprivate double consistencyCount()
private void insertIntoTable(Instance inst, double[] instA) throws java.lang.Exception
inst
- instance to be insertedinstA
- the instance to be inserted as an array of attribute
values.
java.lang.Exception
- if the instance can't be insertedpublic java.lang.String toString()
public static void main(java.lang.String[] args)
args
- the options
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |