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, setDoNotCheckCapabilities
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
makeCopy
public java.lang.String globalInfo()
public Capabilities getCapabilities()
getCapabilities
in interface CapabilitiesHandler
getCapabilities
in class ASEvaluation
Capabilities
public java.util.Enumeration<Option> listOptions()
listOptions
in interface OptionHandler
listOptions
in class ASEvaluation
public void setOptions(java.lang.String[] options) throws java.lang.Exception
-D Output detailed info for nominal attributes
setOptions
in interface OptionHandler
setOptions
in class ASEvaluation
options
- the list of options as an array of stringsjava.lang.Exception
- if an option is not supportedpublic java.lang.String[] getOptions()
getOptions
in interface OptionHandler
getOptions
in class ASEvaluation
public 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 AttributeEvaluator
attribute
- 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.Object
public void buildEvaluator(Instances data) throws java.lang.Exception
buildEvaluator
in class ASEvaluation
data
- set of instances serving as training datajava.lang.Exception
- if the evaluator has not been generated successfullypublic java.lang.String getRevision()
getRevision
in interface RevisionHandler
getRevision
in class ASEvaluation
public static void main(java.lang.String[] args)
args
- the options