public interface ClassificationSummary
extends scala.Serializable
| Modifier and Type | Method and Description | 
|---|---|
| double | accuracy()Returns accuracy. | 
| double[] | falsePositiveRateByLabel()Returns false positive rate for each label (category). | 
| double[] | fMeasureByLabel()Returns f1-measure for each label (category). | 
| double[] | fMeasureByLabel(double beta)Returns f-measure for each label (category). | 
| String | labelCol()Field in "predictions" which gives the true label of each instance (if available). | 
| double[] | labels()Returns the sequence of labels in ascending order. | 
| double[] | precisionByLabel()Returns precision for each label (category). | 
| String | predictionCol()Field in "predictions" which gives the prediction of each class. | 
| Dataset<Row> | predictions()Dataframe output by the model's  transformmethod. | 
| double[] | recallByLabel()Returns recall for each label (category). | 
| double[] | truePositiveRateByLabel()Returns true positive rate for each label (category). | 
| String | weightCol()Field in "predictions" which gives the weight of each instance. | 
| double | weightedFalsePositiveRate()Returns weighted false positive rate. | 
| double | weightedFMeasure()Returns weighted averaged f1-measure. | 
| double | weightedFMeasure(double beta)Returns weighted averaged f-measure. | 
| double | weightedPrecision()Returns weighted averaged precision. | 
| double | weightedRecall()Returns weighted averaged recall. | 
| double | weightedTruePositiveRate()Returns weighted true positive rate. | 
double accuracy()
double[] fMeasureByLabel(double beta)
double[] fMeasureByLabel()
double[] falsePositiveRateByLabel()
String labelCol()
double[] labels()
Note: In most cases, it will be values {0.0, 1.0, ..., numClasses-1}, However, if the training set is missing a label, then all of the arrays over labels (e.g., from truePositiveRateByLabel) will be of length numClasses-1 instead of the expected numClasses.
double[] precisionByLabel()
String predictionCol()
Dataset<Row> predictions()
transform method.double[] recallByLabel()
double[] truePositiveRateByLabel()
String weightCol()
double weightedFMeasure(double beta)
double weightedFMeasure()
double weightedFalsePositiveRate()
double weightedPrecision()
double weightedRecall()
double weightedTruePositiveRate()