You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Joseph K. Bradley (JIRA)" <ji...@apache.org> on 2017/08/23 04:17:00 UTC

[jira] [Resolved] (SPARK-12664) Expose probability, rawPrediction in MultilayerPerceptronClassificationModel

     [ https://issues.apache.org/jira/browse/SPARK-12664?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joseph K. Bradley resolved SPARK-12664.
---------------------------------------
       Resolution: Fixed
    Fix Version/s: 2.3.0

Issue resolved by pull request 17373
[https://github.com/apache/spark/pull/17373]

> Expose probability, rawPrediction in MultilayerPerceptronClassificationModel
> ----------------------------------------------------------------------------
>
>                 Key: SPARK-12664
>                 URL: https://issues.apache.org/jira/browse/SPARK-12664
>             Project: Spark
>          Issue Type: Improvement
>          Components: ML
>            Reporter: Robert Dodier
>            Assignee: Weichen Xu
>             Fix For: 2.3.0
>
>
> 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.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org