org.apache.mahout.df.callback
Class MultiCallback
java.lang.Object
org.apache.mahout.df.callback.MultiCallback
- All Implemented Interfaces:
- PredictionCallback
public class MultiCallback
- extends Object
- implements PredictionCallback
Combines many callbacks, that will be called when a prediction is done.
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 |
MultiCallback
public MultiCallback(PredictionCallback... callbacks)
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 instanceinstanceId
- classified instanceprediction
- predicted label
Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.