L - Type of a label (truth or prediction).public class Precision<L> extends ClassMetric<L>
clsLb| Constructor and Description |
|---|
Precision(L clsLb)
The class of interest or positive class.
|
| Modifier and Type | Method and Description |
|---|---|
String |
name()
Returns the metric's name.
|
double |
score(Iterator<LabelPair<L>> it)
Calculates score.
|
public Precision(L clsLb)
clsLb - The label.public double score(Iterator<LabelPair<L>> it)
it - Iterator that supplies pairs of truth values and predicated.public String name()
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024