MultilayerPerceptronClassificationSummaryImpl (Spark 3.5.5 JavaDoc) (original) (raw)
Object
- org.apache.spark.ml.classification.MultilayerPerceptronClassificationSummaryImpl
All Implemented Interfaces:
java.io.Serializable, ClassificationSummary, MultilayerPerceptronClassificationSummary
Direct Known Subclasses:
MultilayerPerceptronClassificationTrainingSummaryImpl
public class MultilayerPerceptronClassificationSummaryImpl
extends Object
implements MultilayerPerceptronClassificationSummary
MultilayerPerceptronClassification results for a given model.
param: predictions dataframe output by the model's transform
method. 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:
Serialized Form
Constructor Summary
Constructors
Constructor and Description MultilayerPerceptronClassificationSummaryImpl(Dataset<Row> predictions, String predictionCol, String labelCol, String weightCol) Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type Method and Description 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 weightCol() Field in "predictions" which gives the weight of each instance. * ### Methods inherited from class Object `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait` * ### 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-), [labels](../../../../../org/apache/spark/ml/classification/ClassificationSummary.html#labels--), [precisionByLabel](../../../../../org/apache/spark/ml/classification/ClassificationSummary.html#precisionByLabel--), [recallByLabel](../../../../../org/apache/spark/ml/classification/ClassificationSummary.html#recallByLabel--), [truePositiveRateByLabel](../../../../../org/apache/spark/ml/classification/ClassificationSummary.html#truePositiveRateByLabel--), [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--)`
Constructor Detail
* #### MultilayerPerceptronClassificationSummaryImpl public MultilayerPerceptronClassificationSummaryImpl([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 predictionCol, String labelCol, String weightCol)
Method Detail
* #### labelCol public String labelCol() Field in "predictions" which gives the true label of each instance (if available). Specified by: `[labelCol](../../../../../org/apache/spark/ml/classification/ClassificationSummary.html#labelCol--)` in interface `[ClassificationSummary](../../../../../org/apache/spark/ml/classification/ClassificationSummary.html "interface in org.apache.spark.ml.classification")` * #### predictionCol public String predictionCol() Field in "predictions" which gives the prediction of each class. Specified by: `[predictionCol](../../../../../org/apache/spark/ml/classification/ClassificationSummary.html#predictionCol--)` in interface `[ClassificationSummary](../../../../../org/apache/spark/ml/classification/ClassificationSummary.html "interface in org.apache.spark.ml.classification")` * #### predictions public [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() Dataframe output by the model's `transform` method. Specified by: `[predictions](../../../../../org/apache/spark/ml/classification/ClassificationSummary.html#predictions--)` in interface `[ClassificationSummary](../../../../../org/apache/spark/ml/classification/ClassificationSummary.html "interface in org.apache.spark.ml.classification")` Returns: (undocumented) * #### weightCol public String weightCol() Field in "predictions" which gives the weight of each instance. Specified by: `[weightCol](../../../../../org/apache/spark/ml/classification/ClassificationSummary.html#weightCol--)` in interface `[ClassificationSummary](../../../../../org/apache/spark/ml/classification/ClassificationSummary.html "interface in org.apache.spark.ml.classification")`