Class LinearSVCSummaryImpl
Object
org.apache.spark.ml.classification.LinearSVCSummaryImpl
- All Implemented Interfaces:
 Serializable,BinaryClassificationSummary,ClassificationSummary,LinearSVCSummary,scala.Serializable
- Direct Known Subclasses:
 LinearSVCTrainingSummaryImpl
LinearSVC results for a given model.
 
 param:  predictions dataframe output by the model's transform method.
 param:  scoreCol field in "predictions" which gives the rawPrediction of each instance.
 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 TypeMethodDescriptiondoubleComputes the area under the receiver operating characteristic (ROC) curve.Returns a dataframe with two fields (threshold, F-Measure) curve with beta = 1.0.labelCol()Field in "predictions" which gives the true label of each instance (if available).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.Field in "predictions" which gives the prediction of each class.Dataframe output by the model'stransformmethod.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.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, weightedTruePositiveRate 
- 
Constructor Details
- 
LinearSVCSummaryImpl
 
 - 
 - 
Method Details
- 
areaUnderROC
public double areaUnderROC()Description copied from interface:BinaryClassificationSummaryComputes the area under the receiver operating characteristic (ROC) curve.- Specified by:
 areaUnderROCin interfaceBinaryClassificationSummary- Returns:
 - (undocumented)
 
 - 
fMeasureByThreshold
Description copied from interface:BinaryClassificationSummaryReturns a dataframe with two fields (threshold, F-Measure) curve with beta = 1.0.- Specified by:
 fMeasureByThresholdin interfaceBinaryClassificationSummary- Returns:
 - (undocumented)
 
 - 
labelCol
Description copied from interface:ClassificationSummaryField in "predictions" which gives the true label of each instance (if available).- Specified by:
 labelColin interfaceClassificationSummary
 - 
pr
Description 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 interfaceBinaryClassificationSummary- Returns:
 - (undocumented)
 
 - 
precisionByThreshold
Description 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 interfaceBinaryClassificationSummary- Returns:
 - (undocumented)
 
 - 
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)
 
 - 
recallByThreshold
Description 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 interfaceBinaryClassificationSummary- Returns:
 - (undocumented)
 
 - 
roc
Description 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 interfaceBinaryClassificationSummary- Returns:
 - (undocumented)
 
 - 
scoreCol
Description copied from interface:BinaryClassificationSummaryField in "predictions" which gives the probability or rawPrediction of each class as a vector.- Specified by:
 scoreColin interfaceBinaryClassificationSummary- Returns:
 - (undocumented)
 
 - 
weightCol
Description copied from interface:ClassificationSummaryField in "predictions" which gives the weight of each instance.- Specified by:
 weightColin interfaceClassificationSummary
 
 -