|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.myra.datamining.io.Exporter
public class Exporter
This class is used to output the individual predictions of each test instance.
Field Summary | |
---|---|
protected ClassHierarchy |
hierarchy
The class hierarchy reference. |
protected java.io.PrintWriter |
writer
The output writer. |
Constructor Summary | |
---|---|
Exporter()
|
Method Summary | |
---|---|
void |
close()
Closes the output file. |
protected void |
export(Instance instance,
Label predicted)
Writes the instance informations. |
void |
initialize(java.io.File file,
Metadata metadata)
Default constructor. |
void |
write(Dataset testSet,
Model discovered)
Writes the predictions to the file. |
protected void |
writeHeader(Metadata metadata)
Writes the output file header. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.io.PrintWriter writer
protected ClassHierarchy hierarchy
Constructor Detail |
---|
public Exporter()
Method Detail |
---|
public void initialize(java.io.File file, Metadata metadata) throws java.io.IOException
file
- the output file.metadata
- the dataset metadata information.
java.io.IOException
public void write(Dataset testSet, Model discovered)
testSet
- the set of test instances.discovered
- the discovered model.protected void writeHeader(Metadata metadata)
metadata
- the dataset metadata information.protected void export(Instance instance, Label predicted)
instance
- the instance reference.predicted
- the predicted label.public void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |