LinearSVCTrainingSummaryImpl (Spark 3.5.5 JavaDoc) (original) (raw)
Object
- org.apache.spark.ml.classification.LinearSVCSummaryImpl
- org.apache.spark.ml.classification.LinearSVCTrainingSummaryImpl
All Implemented Interfaces:
java.io.Serializable, BinaryClassificationSummary, ClassificationSummary, LinearSVCSummary, LinearSVCTrainingSummary, TrainingSummary
public class LinearSVCTrainingSummaryImpl
extends LinearSVCSummaryImpl
implements LinearSVCTrainingSummary
LinearSVC training results.
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. param: objectiveHistory objective function (scaled loss + regularization) at each iteration.
See Also:
Serialized Form
Constructor Summary
Constructors
Constructor and Description LinearSVCTrainingSummaryImpl(Dataset<Row> predictions, String scoreCol, String predictionCol, String labelCol, String weightCol, double[] objectiveHistory) Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type Method and Description double[] objectiveHistory() objective function (scaled loss + regularization) at each iteration. * ### Methods inherited from class org.apache.spark.ml.classification.[LinearSVCSummaryImpl](../../../../../org/apache/spark/ml/classification/LinearSVCSummaryImpl.html "class in org.apache.spark.ml.classification") `[areaUnderROC](../../../../../org/apache/spark/ml/classification/LinearSVCSummaryImpl.html#areaUnderROC--), [fMeasureByThreshold](../../../../../org/apache/spark/ml/classification/LinearSVCSummaryImpl.html#fMeasureByThreshold--), [labelCol](../../../../../org/apache/spark/ml/classification/LinearSVCSummaryImpl.html#labelCol--), [pr](../../../../../org/apache/spark/ml/classification/LinearSVCSummaryImpl.html#pr--), [precisionByThreshold](../../../../../org/apache/spark/ml/classification/LinearSVCSummaryImpl.html#precisionByThreshold--), [predictionCol](../../../../../org/apache/spark/ml/classification/LinearSVCSummaryImpl.html#predictionCol--), [predictions](../../../../../org/apache/spark/ml/classification/LinearSVCSummaryImpl.html#predictions--), [recallByThreshold](../../../../../org/apache/spark/ml/classification/LinearSVCSummaryImpl.html#recallByThreshold--), [roc](../../../../../org/apache/spark/ml/classification/LinearSVCSummaryImpl.html#roc--), [scoreCol](../../../../../org/apache/spark/ml/classification/LinearSVCSummaryImpl.html#scoreCol--), [weightCol](../../../../../org/apache/spark/ml/classification/LinearSVCSummaryImpl.html#weightCol--)` * ### Methods inherited from class Object `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait` * ### Methods inherited from interface org.apache.spark.ml.classification.[BinaryClassificationSummary](../../../../../org/apache/spark/ml/classification/BinaryClassificationSummary.html "interface in org.apache.spark.ml.classification") `[areaUnderROC](../../../../../org/apache/spark/ml/classification/BinaryClassificationSummary.html#areaUnderROC--), [fMeasureByThreshold](../../../../../org/apache/spark/ml/classification/BinaryClassificationSummary.html#fMeasureByThreshold--), [pr](../../../../../org/apache/spark/ml/classification/BinaryClassificationSummary.html#pr--), [precisionByThreshold](../../../../../org/apache/spark/ml/classification/BinaryClassificationSummary.html#precisionByThreshold--), [recallByThreshold](../../../../../org/apache/spark/ml/classification/BinaryClassificationSummary.html#recallByThreshold--), [roc](../../../../../org/apache/spark/ml/classification/BinaryClassificationSummary.html#roc--), [scoreCol](../../../../../org/apache/spark/ml/classification/BinaryClassificationSummary.html#scoreCol--)` * ### Methods inherited from interface org.apache.spark.ml.classification.[ClassificationSummary](../../../../../org/apache/spark/ml/classification/ClassificationSummary.html "interface in org.apache.spark.ml.classification") `[accuracy](../../../../../org/apache/spark/ml/classification/ClassificationSummary.html#accuracy--), [falsePositiveRateByLabel](../../../../../org/apache/spark/ml/classification/ClassificationSummary.html#falsePositiveRateByLabel--), [fMeasureByLabel](../../../../../org/apache/spark/ml/classification/ClassificationSummary.html#fMeasureByLabel--), [fMeasureByLabel](../../../../../org/apache/spark/ml/classification/ClassificationSummary.html#fMeasureByLabel-double-), [labelCol](../../../../../org/apache/spark/ml/classification/ClassificationSummary.html#labelCol--), [labels](../../../../../org/apache/spark/ml/classification/ClassificationSummary.html#labels--), [precisionByLabel](../../../../../org/apache/spark/ml/classification/ClassificationSummary.html#precisionByLabel--), [predictionCol](../../../../../org/apache/spark/ml/classification/ClassificationSummary.html#predictionCol--), [predictions](../../../../../org/apache/spark/ml/classification/ClassificationSummary.html#predictions--), [recallByLabel](../../../../../org/apache/spark/ml/classification/ClassificationSummary.html#recallByLabel--), [truePositiveRateByLabel](../../../../../org/apache/spark/ml/classification/ClassificationSummary.html#truePositiveRateByLabel--), [weightCol](../../../../../org/apache/spark/ml/classification/ClassificationSummary.html#weightCol--), [weightedFalsePositiveRate](../../../../../org/apache/spark/ml/classification/ClassificationSummary.html#weightedFalsePositiveRate--), [weightedFMeasure](../../../../../org/apache/spark/ml/classification/ClassificationSummary.html#weightedFMeasure--), [weightedFMeasure](../../../../../org/apache/spark/ml/classification/ClassificationSummary.html#weightedFMeasure-double-), [weightedPrecision](../../../../../org/apache/spark/ml/classification/ClassificationSummary.html#weightedPrecision--), [weightedRecall](../../../../../org/apache/spark/ml/classification/ClassificationSummary.html#weightedRecall--), [weightedTruePositiveRate](../../../../../org/apache/spark/ml/classification/ClassificationSummary.html#weightedTruePositiveRate--)` * ### Methods inherited from interface org.apache.spark.ml.classification.[TrainingSummary](../../../../../org/apache/spark/ml/classification/TrainingSummary.html "interface in org.apache.spark.ml.classification") `[totalIterations](../../../../../org/apache/spark/ml/classification/TrainingSummary.html#totalIterations--)`
Constructor Detail
* #### LinearSVCTrainingSummaryImpl public LinearSVCTrainingSummaryImpl([Dataset](../../../../../org/apache/spark/sql/Dataset.html "class in org.apache.spark.sql")<[Row](../../../../../org/apache/spark/sql/Row.html "interface in org.apache.spark.sql")> predictions, String scoreCol, String predictionCol, String labelCol, String weightCol, double[] objectiveHistory)
Method Detail
* #### objectiveHistory public double[] objectiveHistory() objective function (scaled loss + regularization) at each iteration. It contains one more element, the initial state, than number of iterations. Specified by: `[objectiveHistory](../../../../../org/apache/spark/ml/classification/TrainingSummary.html#objectiveHistory--)` in interface `[TrainingSummary](../../../../../org/apache/spark/ml/classification/TrainingSummary.html "interface in org.apache.spark.ml.classification")` Returns: (undocumented)