|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mahout.df.callback.MultiCallback
public class MultiCallback
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 |
---|
public MultiCallback(PredictionCallback... callbacks)
Method Detail |
---|
public void prediction(int treeId, int instanceId, int prediction)
PredictionCallback
prediction
in interface PredictionCallback
treeId
- tree that classified the instanceinstanceId
- classified instanceprediction
- predicted label
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |