public class RandomForestClassificationSummaryImpl extends Object implements RandomForestClassificationSummary
param: predictions dataframe output by the model's transform method.
param: predictionCol field in "predictions" which gives the prediction for a data instance as a
double.
param: labelCol field in "predictions" which gives the true label of each instance.
param: weightCol field in "predictions" which gives the weight of each instance.
| Constructor and Description |
|---|
RandomForestClassificationSummaryImpl(Dataset<Row> predictions,
String predictionCol,
String labelCol,
String weightCol) |
| Modifier and Type | Method and Description |
|---|---|
String |
labelCol()
Field in "predictions" which gives the true label of each instance (if available).
|
String |
predictionCol()
Field in "predictions" which gives the prediction of each class.
|
Dataset<Row> |
predictions()
Dataframe output by the model's
transform method. |
String |
weightCol()
Field in "predictions" which gives the weight of each instance.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasBinaryaccuracy, falsePositiveRateByLabel, fMeasureByLabel, fMeasureByLabel, labels, precisionByLabel, recallByLabel, truePositiveRateByLabel, weightedFalsePositiveRate, weightedFMeasure, weightedFMeasure, weightedPrecision, weightedRecall, weightedTruePositiveRatepublic String labelCol()
ClassificationSummarylabelCol in interface ClassificationSummarypublic String predictionCol()
ClassificationSummarypredictionCol in interface ClassificationSummarypublic Dataset<Row> predictions()
ClassificationSummarytransform method.predictions in interface ClassificationSummarypublic String weightCol()
ClassificationSummaryweightCol in interface ClassificationSummary