|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--milk.experiment.MICSVResultListener
|
+--milk.experiment.MIInstancesResultListener
InstancesResultListener outputs the received results in arff format to a Writer. All results must be received before the instances can be written out.
| Field Summary | |
protected int[] |
m_AttributeTypes
Stores the attribute types for each column |
protected weka.core.FastVector |
m_Instances
Stores the instances created so far, before assigning to a header |
protected java.util.Hashtable[] |
m_NominalIndexes
For lookup of indices given a string value for each nominal attribute |
protected weka.core.FastVector[] |
m_NominalStrings
Contains strings seen so far for each nominal attribute |
| Fields inherited from class milk.experiment.MICSVResultListener |
m_Out, m_OutputFile, m_RP |
| Constructor Summary | |
MIInstancesResultListener()
|
|
| Method Summary | |
void |
acceptResult(MIResultProducer rp,
java.lang.Object[] key,
java.lang.Object[] result)
Collects each instance and adjusts the header information. |
java.lang.String |
globalInfo()
Returns a string describing this result listener |
void |
postProcess(MIResultProducer rp)
Perform any postprocessing. |
void |
preProcess(MIResultProducer rp)
Prepare for the results to be received. |
| Methods inherited from class milk.experiment.MICSVResultListener |
determineColumnConstraints, getOptions, getOutputFile, isResultRequired, listOptions, outputFileTipText, setOptions, setOutputFile |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected transient weka.core.FastVector m_Instances
protected transient int[] m_AttributeTypes
protected transient java.util.Hashtable[] m_NominalIndexes
protected transient weka.core.FastVector[] m_NominalStrings
| Constructor Detail |
public MIInstancesResultListener()
| Method Detail |
public java.lang.String globalInfo()
globalInfo in class MICSVResultListener
public void preProcess(MIResultProducer rp)
throws java.lang.Exception
preProcess in interface MIResultListenerpreProcess in class MICSVResultListenerrp - the ResultProducer that will generate the results
java.lang.Exception - if an error occurs during preprocessing.
public void postProcess(MIResultProducer rp)
throws java.lang.Exception
postProcess in interface MIResultListenerpostProcess in class MICSVResultListenerrp - the ResultProducer that generated the results
java.lang.Exception - if an error occurs
public void acceptResult(MIResultProducer rp,
java.lang.Object[] key,
java.lang.Object[] result)
throws java.lang.Exception
acceptResult in interface MIResultListeneracceptResult in class MICSVResultListenerrp - the ResultProducer that generated the resultkey - The key for the results.result - The actual results.
java.lang.Exception - if the result could not be accepted.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||