net.sf.myra.datamining.io
Class ProbabilisticExporter

java.lang.Object
  extended by net.sf.myra.datamining.io.Exporter
      extended by net.sf.myra.datamining.io.HierarchicalExporter
          extended by net.sf.myra.datamining.io.ProbabilisticExporter
Direct Known Subclasses:
ClassFrequencyExporter, ConfidenceExporter, FrequencyExporter

public abstract class ProbabilisticExporter
extends HierarchicalExporter

Version:
$Revision$ $Date:: #$
Author:
Fernando Esteban Barril Otero

Field Summary
 
Fields inherited from class net.sf.myra.datamining.io.HierarchicalExporter
hierarchy, writer
 
Constructor Summary
ProbabilisticExporter()
           
 
Method Summary
protected  void export(Instance instance, double[] probability)
          Writes the instance informations.
abstract  void write(Dataset testSet, Model discovered)
          Writes the predictions to the file.
 
Methods inherited from class net.sf.myra.datamining.io.HierarchicalExporter
close, export, initialize, writeHeader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProbabilisticExporter

public ProbabilisticExporter()
Method Detail

write

public abstract void write(Dataset testSet,
                           Model discovered)
Description copied from class: HierarchicalExporter
Writes the predictions to the file.

Overrides:
write in class HierarchicalExporter
Parameters:
testSet - the set of test instances.
discovered - the discovered model.

export

protected void export(Instance instance,
                      double[] probability)
Writes the instance informations.

Parameters:
instance - the instance reference.
probability - the predicted class probability array.


Copyright © 2013. All Rights Reserved.