You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Guo-Xun Yuan (JIRA)" <ji...@apache.org> on 2016/10/12 20:32:22 UTC
[jira] [Comment Edited] (SPARK-12664) Expose raw prediction scores
in MultilayerPerceptronClassificationModel
[ https://issues.apache.org/jira/browse/SPARK-12664?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15569792#comment-15569792 ]
Guo-Xun Yuan edited comment on SPARK-12664 at 10/12/16 8:31 PM:
----------------------------------------------------------------
I would also vote this as an important feature. Also, Is there any reason why MultilayerPerceptronClassifier is derived from `Predictor` and MultilayerPerceptronClassificationModel is derived from `PredictionModel` rather than `Classifier` and `ClassificationModel` ??
Btw, the same things also happen to GBTClassifier and GBTClassificationModel.
was (Author: eaudex):
I would also vote this as an important features. Also, Is there any reason why MultilayerPerceptronClassifier is derived from `Predictor` and MultilayerPerceptronClassificationModel is derived from `PredictionModel` rather than `Classifier` and `ClassificationModel` ??
Btw, the same things also happen to GBTClassifier and GBTClassificationModel.
> Expose raw prediction scores in MultilayerPerceptronClassificationModel
> -----------------------------------------------------------------------
>
> Key: SPARK-12664
> URL: https://issues.apache.org/jira/browse/SPARK-12664
> Project: Spark
> Issue Type: Improvement
> Components: ML
> Reporter: Robert Dodier
>
> In org.apache.spark.ml.classification.MultilayerPerceptronClassificationModel, there isn't any way to get raw prediction scores; only an integer output (from 0 to #classes - 1) is available via the `predict` method.
> `mplModel.predict` is called within the class to get the raw score, but `mlpModel` is private so that isn't available to outside callers.
> The raw score is useful when the user wants to interpret the classifier output as a probability.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org