public class BinaryLogisticRegressionSummary extends java.lang.Object implements LogisticRegressionSummary
transform method.
param: probabilityCol field in "predictions" which gives the calibrated probability of
each instance.
param: labelCol field in "predictions" which gives the true label of each instance.
param: featuresCol field in "predictions" which gives the features of each instance as a vector.| Modifier and Type | Method and Description |
|---|---|
double |
areaUnderROC()
Computes the area under the receiver operating characteristic (ROC) curve.
|
java.lang.String |
featuresCol()
Field in "predictions" which gives the features of each instance as a vector.
|
DataFrame |
fMeasureByThreshold()
Returns a dataframe with two fields (threshold, F-Measure) curve with beta = 1.0.
|
java.lang.String |
labelCol()
Field in "predictions" which gives the true label of each instance.
|
DataFrame |
pr()
Returns the precision-recall curve, which is an Dataframe containing
two fields recall, precision with (0.0, 1.0) prepended to it.
|
DataFrame |
precisionByThreshold()
Returns a dataframe with two fields (threshold, precision) curve.
|
DataFrame |
predictions()
Dataframe outputted by the model's `transform` method.
|
java.lang.String |
probabilityCol()
Field in "predictions" which gives the calibrated probability of each instance as a vector.
|
DataFrame |
recallByThreshold()
Returns a dataframe with two fields (threshold, recall) curve.
|
DataFrame |
roc()
Returns the receiver operating characteristic (ROC) curve,
which is an Dataframe having two fields (FPR, TPR)
with (0.0, 0.0) prepended and (1.0, 1.0) appended to it.
|
public DataFrame predictions()
LogisticRegressionSummarypredictions in interface LogisticRegressionSummarypublic java.lang.String probabilityCol()
LogisticRegressionSummaryprobabilityCol in interface LogisticRegressionSummarypublic java.lang.String labelCol()
LogisticRegressionSummarylabelCol in interface LogisticRegressionSummarypublic java.lang.String featuresCol()
LogisticRegressionSummaryfeaturesCol in interface LogisticRegressionSummarypublic DataFrame roc()
Note: This ignores instance weights (setting all to 1.0) from LogisticRegression.weightCol.
This will change in later Spark versions.
http://en.wikipedia.org/wiki/Receiver_operating_characteristicpublic double areaUnderROC()
Note: This ignores instance weights (setting all to 1.0) from LogisticRegression.weightCol.
This will change in later Spark versions.
public DataFrame pr()
Note: This ignores instance weights (setting all to 1.0) from LogisticRegression.weightCol.
This will change in later Spark versions.
public DataFrame fMeasureByThreshold()
Note: This ignores instance weights (setting all to 1.0) from LogisticRegression.weightCol.
This will change in later Spark versions.
public DataFrame precisionByThreshold()
Note: This ignores instance weights (setting all to 1.0) from LogisticRegression.weightCol.
This will change in later Spark versions.
public DataFrame recallByThreshold()
Note: This ignores instance weights (setting all to 1.0) from LogisticRegression.weightCol.
This will change in later Spark versions.