public class LogisticRegressionSummaryImpl extends Object implements LogisticRegressionSummary
param: predictions dataframe output by the model's transform
method.
param: probabilityCol field in "predictions" which gives the probability of
each class as a vector.
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: featuresCol field in "predictions" which gives the features of each instance as a vector.
Constructor and Description |
---|
LogisticRegressionSummaryImpl(Dataset<Row> predictions,
String probabilityCol,
String predictionCol,
String labelCol,
String featuresCol) |
Modifier and Type | Method and Description |
---|---|
String |
featuresCol()
Field in "predictions" which gives the features of each instance as a vector.
|
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 |
probabilityCol()
Field in "predictions" which gives the probability of each class as a vector.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accuracy, asBinary, falsePositiveRateByLabel, fMeasureByLabel, fMeasureByLabel, labels, multiclassMetrics, precisionByLabel, recallByLabel, truePositiveRateByLabel, weightedFalsePositiveRate, weightedFMeasure, weightedFMeasure, weightedPrecision, weightedRecall, weightedTruePositiveRate
public String featuresCol()
LogisticRegressionSummary
featuresCol
in interface LogisticRegressionSummary
public String labelCol()
LogisticRegressionSummary
labelCol
in interface LogisticRegressionSummary
public String predictionCol()
LogisticRegressionSummary
predictionCol
in interface LogisticRegressionSummary
public Dataset<Row> predictions()
LogisticRegressionSummary
transform
method.predictions
in interface LogisticRegressionSummary
public String probabilityCol()
LogisticRegressionSummary
probabilityCol
in interface LogisticRegressionSummary