|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.flow.transformer.WekaAccumulatedError.SortablePrediction
public static class WekaAccumulatedError.SortablePrediction
Container for a classifier prediction, used for sorting.
| Field Summary | |
|---|---|
protected weka.classifiers.evaluation.Prediction |
m_Prediction
the wrapped prediction. |
| Constructor Summary | |
|---|---|
WekaAccumulatedError.SortablePrediction(weka.classifiers.evaluation.Prediction pred)
Initializes the container. |
|
| Method Summary | |
|---|---|
int |
compareTo(Object o)
Compares this object with the specified object for order. |
double |
getAbsoluteDifference()
Returns the absolute difference between actual and predicted value. |
weka.classifiers.evaluation.Prediction |
getPrediction()
Returns the stored prediction. |
String |
toString()
Returns a string representation of the wrapped prediction. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected weka.classifiers.evaluation.Prediction m_Prediction
| Constructor Detail |
|---|
public WekaAccumulatedError.SortablePrediction(weka.classifiers.evaluation.Prediction pred)
pred - the prediction to wrap| Method Detail |
|---|
public weka.classifiers.evaluation.Prediction getPrediction()
public double getAbsoluteDifference()
public int compareTo(Object o)
compareTo in interface Comparableo - the object to be compared.
ClassCastException - if the specified object's type prevents it
from being compared to this object.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||