Class RandomForestClassificationSummaryImpl
Object
org.apache.spark.ml.classification.RandomForestClassificationSummaryImpl
- All Implemented Interfaces:
Serializable,ClassificationSummary,RandomForestClassificationSummary,Summary
- Direct Known Subclasses:
BinaryRandomForestClassificationSummaryImpl,RandomForestClassificationTrainingSummaryImpl
public class RandomForestClassificationSummaryImpl
extends Object
implements RandomForestClassificationSummary
Multiclass RandomForestClassification results for a given model.
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.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlabelCol()Field in "predictions" which gives the true label of each instance (if available).Field in "predictions" which gives the prediction of each class.Dataframe output by the model'stransformmethod.Field in "predictions" which gives the weight of each instance.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.spark.ml.classification.ClassificationSummary
accuracy, falsePositiveRateByLabel, fMeasureByLabel, fMeasureByLabel, labels, precisionByLabel, recallByLabel, truePositiveRateByLabel, weightedFalsePositiveRate, weightedFMeasure, weightedFMeasure, weightedPrecision, weightedRecall, weightedTruePositiveRateMethods inherited from interface org.apache.spark.ml.classification.RandomForestClassificationSummary
asBinary
-
Constructor Details
-
RandomForestClassificationSummaryImpl
-
-
Method Details
-
labelCol
Description copied from interface:ClassificationSummaryField in "predictions" which gives the true label of each instance (if available).- Specified by:
labelColin interfaceClassificationSummary
-
predictionCol
Description copied from interface:ClassificationSummaryField in "predictions" which gives the prediction of each class.- Specified by:
predictionColin interfaceClassificationSummary
-
predictions
Description copied from interface:ClassificationSummaryDataframe output by the model'stransformmethod.- Specified by:
predictionsin interfaceClassificationSummary- Returns:
- (undocumented)
-
weightCol
Description copied from interface:ClassificationSummaryField in "predictions" which gives the weight of each instance.- Specified by:
weightColin interfaceClassificationSummary
-