public class MultilabelMetrics
extends Object
Constructor and Description |
---|
MultilabelMetrics(RDD<scala.Tuple2<double[],double[]>> predictionAndLabels) |
Modifier and Type | Method and Description |
---|---|
double |
accuracy()
Returns accuracy
|
double |
f1Measure()
Returns document-based f1-measure averaged by the number of documents
|
double |
f1Measure(double label)
Returns f1-measure for a given label (category)
|
double |
hammingLoss()
Returns Hamming-loss
|
double[] |
labels() |
double |
microF1Measure() |
double |
microPrecision() |
double |
microRecall() |
double |
precision()
Returns document-based precision averaged by the number of documents
|
double |
precision(double label)
Returns precision for a given label (category)
|
double |
recall()
Returns document-based recall averaged by the number of documents
|
double |
recall(double label)
Returns recall for a given label (category)
|
double |
subsetAccuracy()
Returns subset accuracy
(for equal sets of labels)
|
public MultilabelMetrics(RDD<scala.Tuple2<double[],double[]>> predictionAndLabels)
public double accuracy()
public double f1Measure()
public double f1Measure(double label)
label
- the label.public double hammingLoss()
public double[] labels()
public double microF1Measure()
public double microPrecision()
public double microRecall()
public double precision()
public double precision(double label)
label
- the label.public double recall()
public double recall(double label)
label
- the label.public double subsetAccuracy()