|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.myra.datamining.io.Exporter
net.sf.myra.datamining.io.HierarchicalExporter
public class HierarchicalExporter
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 | |
---|---|
HierarchicalExporter()
|
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 HierarchicalExporter()
Method Detail |
---|
public void initialize(java.io.File file, Metadata metadata) throws java.io.IOException
initialize
in class Exporter
file
- the output file.metadata
- the dataset metadata information.
java.io.IOException
public void write(Dataset testSet, Model discovered)
write
in class Exporter
testSet
- the set of test instances.discovered
- the discovered model.protected void writeHeader(Metadata metadata)
writeHeader
in class Exporter
metadata
- the dataset metadata information.protected void export(Instance instance, Label predicted)
export
in class Exporter
instance
- the instance reference.predicted
- the predicted label.public void close()
close
in class Exporter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |