Class BinaryRandomForestClassificationSummaryImpl
Object
org.apache.spark.ml.classification.RandomForestClassificationSummaryImpl
org.apache.spark.ml.classification.BinaryRandomForestClassificationSummaryImpl
- All Implemented Interfaces:
- Serializable,- BinaryClassificationSummary,- BinaryRandomForestClassificationSummary,- ClassificationSummary,- RandomForestClassificationSummary,- Summary
- Direct Known Subclasses:
- BinaryRandomForestClassificationTrainingSummaryImpl
public class BinaryRandomForestClassificationSummaryImpl
extends RandomForestClassificationSummaryImpl
implements BinaryRandomForestClassificationSummary
Binary RandomForestClassification for a given model.
 
 param:  predictions dataframe output by the model's transform method.
 param:  scoreCol field in "predictions" which gives the prediction of
                 each class as a vector.
 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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiondoubleComputes the area under the receiver operating characteristic (ROC) curve.Returns a dataframe with two fields (threshold, F-Measure) curve with beta = 1.0.pr()Returns the precision-recall curve, which is a Dataframe containing two fields recall, precision with (0.0, 1.0) prepended to it.Returns a dataframe with two fields (threshold, precision) curve.Returns a dataframe with two fields (threshold, recall) curve.roc()Returns the receiver operating characteristic (ROC) curve, which is a Dataframe having two fields (FPR, TPR) with (0.0, 0.0) prepended and (1.0, 1.0) appended to it.scoreCol()Field in "predictions" which gives the probability or rawPrediction of each class as a vector.Methods inherited from class org.apache.spark.ml.classification.RandomForestClassificationSummaryImpllabelCol, predictionCol, predictions, weightColMethods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.spark.ml.classification.ClassificationSummaryaccuracy, falsePositiveRateByLabel, fMeasureByLabel, fMeasureByLabel, labelCol, labels, precisionByLabel, predictionCol, predictions, recallByLabel, truePositiveRateByLabel, weightCol, weightedFalsePositiveRate, weightedFMeasure, weightedFMeasure, weightedPrecision, weightedRecall, weightedTruePositiveRateMethods inherited from interface org.apache.spark.ml.classification.RandomForestClassificationSummaryasBinary
- 
Constructor Details- 
BinaryRandomForestClassificationSummaryImpl
 
- 
- 
Method Details- 
areaUnderROCpublic double areaUnderROC()Description copied from interface:BinaryClassificationSummaryComputes the area under the receiver operating characteristic (ROC) curve.- Specified by:
- areaUnderROCin interface- BinaryClassificationSummary
- Returns:
- (undocumented)
 
- 
fMeasureByThresholdDescription copied from interface:BinaryClassificationSummaryReturns a dataframe with two fields (threshold, F-Measure) curve with beta = 1.0.- Specified by:
- fMeasureByThresholdin interface- BinaryClassificationSummary
- Returns:
- (undocumented)
 
- 
prDescription copied from interface:BinaryClassificationSummaryReturns the precision-recall curve, which is a Dataframe containing two fields recall, precision with (0.0, 1.0) prepended to it.- Specified by:
- prin interface- BinaryClassificationSummary
- Returns:
- (undocumented)
 
- 
precisionByThresholdDescription copied from interface:BinaryClassificationSummaryReturns a dataframe with two fields (threshold, precision) curve. Every possible probability obtained in transforming the dataset are used as thresholds used in calculating the precision.- Specified by:
- precisionByThresholdin interface- BinaryClassificationSummary
- Returns:
- (undocumented)
 
- 
recallByThresholdDescription copied from interface:BinaryClassificationSummaryReturns a dataframe with two fields (threshold, recall) curve. Every possible probability obtained in transforming the dataset are used as thresholds used in calculating the recall.- Specified by:
- recallByThresholdin interface- BinaryClassificationSummary
- Returns:
- (undocumented)
 
- 
rocDescription copied from interface:BinaryClassificationSummaryReturns the receiver operating characteristic (ROC) curve, which is a Dataframe having two fields (FPR, TPR) with (0.0, 0.0) prepended and (1.0, 1.0) appended to it. See http://en.wikipedia.org/wiki/Receiver_operating_characteristic- Specified by:
- rocin interface- BinaryClassificationSummary
- Returns:
- (undocumented)
 
- 
scoreColDescription copied from interface:BinaryClassificationSummaryField in "predictions" which gives the probability or rawPrediction of each class as a vector.- Specified by:
- scoreColin interface- BinaryClassificationSummary
- Returns:
- (undocumented)
 
 
-