public class CorrelationAttributeEval extends ASEvaluation implements AttributeEvaluator, OptionHandler
-D Output detailed info for nominal attributes
| Constructor and Description |
|---|
CorrelationAttributeEval() |
| Modifier and Type | Method and Description |
|---|---|
void |
buildEvaluator(Instances data)
Initializes an information gain attribute evaluator.
|
double |
evaluateAttribute(int attribute)
Evaluates an individual attribute by measuring the correlation (Pearson's)
between it and the class.
|
Capabilities |
getCapabilities()
Returns the capabilities of this evaluator.
|
java.lang.String[] |
getOptions()
Gets the current settings of WrapperSubsetEval.
|
boolean |
getOutputDetailedInfo()
Get whether to output per-value correlation for nominal attributes
|
java.lang.String |
getRevision()
Returns the revision string.
|
java.lang.String |
globalInfo()
Returns a string describing this attribute evaluator
|
java.util.Enumeration<Option> |
listOptions()
Returns an enumeration describing the available options.
|
static void |
main(java.lang.String[] args)
Main method for testing this class.
|
java.lang.String |
outputDetailedInfoTipText()
Returns the tip text for this property
|
void |
setOptions(java.lang.String[] options)
Parses a given list of options.
|
void |
setOutputDetailedInfo(boolean d)
Set whether to output per-value correlation for nominal attributes
|
java.lang.String |
toString()
Describe the attribute evaluator
|
clean, doNotCheckCapabilitiesTipText, forName, getDoNotCheckCapabilities, makeCopies, postExecution, postProcess, preExecution, run, runEvaluator, setDoNotCheckCapabilitiespublic java.lang.String globalInfo()
public Capabilities getCapabilities()
getCapabilities in interface CapabilitiesHandlergetCapabilities in class ASEvaluationCapabilitiespublic java.util.Enumeration<Option> listOptions()
listOptions in interface OptionHandlerpublic void setOptions(java.lang.String[] options)
throws java.lang.Exception
-D Output detailed info for nominal attributes
setOptions in interface OptionHandleroptions - the list of options as an array of stringsjava.lang.Exception - if an option is not supportedpublic java.lang.String[] getOptions()
getOptions in interface OptionHandlerpublic java.lang.String outputDetailedInfoTipText()
public void setOutputDetailedInfo(boolean d)
d - true if detailed (per-value) correlation is to be output for
nominal attributespublic boolean getOutputDetailedInfo()
public double evaluateAttribute(int attribute)
throws java.lang.Exception
evaluateAttribute in interface AttributeEvaluatorattribute - the index of the attribute to be evaluatedjava.lang.Exception - if the attribute could not be evaluatedpublic java.lang.String toString()
toString in class java.lang.Objectpublic void buildEvaluator(Instances data) throws java.lang.Exception
buildEvaluator in class ASEvaluationdata - set of instances serving as training datajava.lang.Exception - if the evaluator has not been generated successfullypublic java.lang.String getRevision()
getRevision in interface RevisionHandlergetRevision in class ASEvaluationpublic static void main(java.lang.String[] args)
args - the options