org.apache.mahout.df.callback
Class MultiCallback

java.lang.Object
  extended by org.apache.mahout.df.callback.MultiCallback
All Implemented Interfaces:
PredictionCallback

public class MultiCallback
extends java.lang.Object
implements PredictionCallback

Combines many callbacks, that will be called when a prediction is done.


Constructor Summary
MultiCallback(PredictionCallback... callbacks)
           
 
Method Summary
 void prediction(int treeId, int instanceId, int prediction)
          called when an instance has been classified
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiCallback

public MultiCallback(PredictionCallback... callbacks)
Method Detail

prediction

public void prediction(int treeId,
                       int instanceId,
                       int prediction)
Description copied from interface: PredictionCallback
called when an instance has been classified

Specified by:
prediction in interface PredictionCallback
Parameters:
treeId - tree that classified the instance
instanceId - classified instance
prediction - predicted label


Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.