|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.experiment.DeduperSplitEvaluator
A SplitEvaluator that produces results for a deduper scheme
on a nominal class attribute.
-W classname
Specify the full class name of the deduper to evaluate.
Field Summary | |
protected Deduper |
m_deduper
The deduper used for evaluation |
protected java.lang.String |
m_deduperOptions
The deduper options (if any) |
protected java.lang.String |
m_deduperVersion
The deduper version |
protected java.lang.String |
m_result
Holds the statistics for the most recent application of the deduper |
Constructor Summary | |
DeduperSplitEvaluator()
No args constructor. |
Method Summary | |
java.lang.String |
deduperTipText()
Returns the tip text for this property |
Deduper |
getDeduper()
Get the value of Deduper. |
java.lang.Object[] |
getKey()
Gets the key describing the current SplitEvaluator. |
java.lang.String[] |
getKeyNames()
Gets the names of each of the key columns produced for a single run. |
java.lang.Object[] |
getKeyTypes()
Gets the data types of each of the key columns produced for a single run. |
java.lang.String[] |
getOptions()
Gets the current settings of the Deduper. |
java.lang.String |
getRawResultOutput()
Gets the raw output from the deduper |
java.lang.Object[] |
getResult(Instances trainData,
Instances testData)
Gets the results for the supplied train and test datasets. |
java.lang.String[] |
getResultNames()
Gets the names of each of the result columns produced for a single run. |
java.lang.Object[] |
getResultTypes()
Gets the data types of each of the result columns produced for a single run. |
java.lang.String |
globalInfo()
Returns a string describing this split evaluator |
java.util.Enumeration |
listOptions()
Returns an enumeration describing the available options.. |
void |
setAdditionalMeasures(java.lang.String[] additionalMeasures)
Does nothing, since deduping evaluation does not allow additional measures |
void |
setDeduper(Deduper newDeduper)
Sets the deduper. |
void |
setDeduperName(java.lang.String newDeduperName)
Set the Deduper to use, given it's class name. |
void |
setOptions(java.lang.String[] options)
Parses a given list of options. |
java.lang.String |
toString()
Returns a text description of the split evaluator. |
protected void |
updateOptions()
Updates the options that the current deduper is using. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected Deduper m_deduper
protected java.lang.String m_result
protected java.lang.String m_deduperOptions
protected java.lang.String m_deduperVersion
Constructor Detail |
public DeduperSplitEvaluator()
Method Detail |
public java.lang.String globalInfo()
public void setAdditionalMeasures(java.lang.String[] additionalMeasures)
setAdditionalMeasures
in interface SplitEvaluator
additionalMeasures
- a list of method namespublic java.util.Enumeration listOptions()
listOptions
in interface OptionHandler
public void setOptions(java.lang.String[] options) throws java.lang.Exception
-W classname
Specify the full class name of the deduper to evaluate.
All option after -- will be passed to the deduper.
setOptions
in interface OptionHandler
options
- the list of options as an array of strings
java.lang.Exception
- if an option is not supportedpublic java.lang.String[] getOptions()
getOptions
in interface OptionHandler
public java.lang.Object[] getKeyTypes()
getKeyTypes
in interface SplitEvaluator
public java.lang.String[] getKeyNames()
getKeyNames
in interface SplitEvaluator
public java.lang.Object[] getKey()
getKey
in interface SplitEvaluator
public java.lang.Object[] getResultTypes()
getResultTypes
in interface SplitEvaluator
public java.lang.String[] getResultNames()
getResultNames
in interface SplitEvaluator
public java.lang.Object[] getResult(Instances trainData, Instances testData) throws java.lang.Exception
getResult
in interface SplitEvaluator
trainData
- the training Instances.testData
- the testing Instances.
java.lang.Exception
- if a problem occurs while getting the resultspublic java.lang.String deduperTipText()
public Deduper getDeduper()
public void setDeduper(Deduper newDeduper)
newDeduper
- the new deduper to use.protected void updateOptions()
public void setDeduperName(java.lang.String newDeduperName) throws java.lang.Exception
java.lang.Exception
- if the class name is invalid.public java.lang.String getRawResultOutput()
getRawResultOutput
in interface SplitEvaluator
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |