public interface ClassificationScore extends Serializable
equals(java.lang.Object)
and hashCode()
methods. If a score has parameters, different
objects with different parameters must not be equal. However, different
objects with the same parameters must be equal even if their internal
states are differentModifier and Type | Method and Description |
---|---|
void |
addResult(CategoricalResults prediction,
int trueLabel,
double weight)
Adds the given result to the score
|
void |
addResults(ClassificationScore other)
The score contained in this object is augmented with the results
already accumulated in the
other object. |
ClassificationScore |
clone() |
boolean |
equals(Object obj) |
String |
getName()
Returns the name to present for this score
|
double |
getScore()
Computes the score for the results that have been enrolled via
addResult(jsat.classifiers.CategoricalResults, int, double) |
int |
hashCode() |
boolean |
lowerIsBetter()
Returns
true if a lower score is better, or false if a
higher score is better |
void |
prepare(CategoricalData toPredict)
Prepares this score to predict on the given input
|
void prepare(CategoricalData toPredict)
toPredict
- the class label information that will be evaluatedvoid addResult(CategoricalResults prediction, int trueLabel, double weight)
prediction
- the prediction for the data pointtrueLabel
- the true label for the data pointweight
- the weigh to assign to the data pointvoid addResults(ClassificationScore other)
other
object. This does not result in
an averaging, but alters the current object to have the same score it
would have had if all the results were originally inserted into this
object. other
if of the same
class as this
object.other
- the object to add the results fromdouble getScore()
addResult(jsat.classifiers.CategoricalResults, int, double)
boolean lowerIsBetter()
true
if a lower score is better, or false
if a
higher score is bettertrue
if a lower score is betterClassificationScore clone()
String getName()
Copyright © 2017. All rights reserved.