|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.attributeSelection.ASEvaluation
weka.attributeSelection.IGgaussian
public class IGgaussian
Computes IG between a numerical attribute X and a multinomial class C without performing any discretization. see: "Supervised classification with conditional Gaussian networks: Increasing the structure complexity from Naive Bayes. Aritz Perez, Pedro Larraņaga, Iņaki Inza." If X is numerical: InfoGain(X,C) = 1/2(log(variance(X)) - sum_c=1^r P(c)log(variance(X|c)) if X is nominal: InfoGain(X,C) = H(X) - H(X|C)";
Field Summary | |
---|---|
private double[] |
m_InfoGains
The info gain for each attribute |
(package private) static long |
serialVersionUID
for serialisation |
Constructor Summary | |
---|---|
IGgaussian()
|
Method Summary | |
---|---|
void |
buildEvaluator(weka.core.Instances data)
Initialises an information gain attribute evaluator. |
double |
evaluateAttribute(int attribute)
evaluates an individual attribute by measuring the amount of information gained about the class given the attribute. |
weka.core.Capabilities |
getCapabilities()
Returns the capabilities of this evaluator. |
java.lang.String[] |
getOptions()
|
java.lang.String |
getRevision()
Returns the revision string. |
java.lang.String |
globalInfo()
Returns a string describing this attribute evaluator |
java.util.Enumeration |
listOptions()
|
static void |
main(java.lang.String[] args)
Main method for testing this class. |
protected void |
resetOptions()
Reset options to their default values |
void |
setOptions(java.lang.String[] options)
|
java.lang.String |
toString()
Describe the attribute evaluator |
Methods inherited from class weka.attributeSelection.ASEvaluation |
---|
forName, makeCopies, postProcess, runEvaluator |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
static final long serialVersionUID
private double[] m_InfoGains
Constructor Detail |
---|
public IGgaussian()
Method Detail |
---|
public java.lang.String globalInfo()
public java.util.Enumeration listOptions()
listOptions
in interface weka.core.OptionHandler
public void setOptions(java.lang.String[] options) throws java.lang.Exception
setOptions
in interface weka.core.OptionHandler
java.lang.Exception
public java.lang.String[] getOptions()
getOptions
in interface weka.core.OptionHandler
protected void resetOptions()
public weka.core.Capabilities getCapabilities()
getCapabilities
in interface weka.core.CapabilitiesHandler
getCapabilities
in class weka.attributeSelection.ASEvaluation
Capabilities
public void buildEvaluator(weka.core.Instances data) throws java.lang.Exception
buildEvaluator
in class weka.attributeSelection.ASEvaluation
data
- set of instances serving as training data
java.lang.Exception
- if the evaluator has not been generated successfullypublic double evaluateAttribute(int attribute) throws java.lang.Exception
evaluateAttribute
in interface weka.attributeSelection.AttributeEvaluator
attribute
- the index of the attribute to be evaluated
java.lang.Exception
- if the attribute could not be evaluatedpublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getRevision()
getRevision
in interface weka.core.RevisionHandler
getRevision
in class weka.attributeSelection.ASEvaluation
public static void main(java.lang.String[] args)
args
- the options [-i,fileRoute]
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |