You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2016/10/22 08:50:59 UTC

[jira] [Commented] (SPARK-18062) ProbabilisticClassificationModel.normalizeToProbabilitiesInPlace should return probabilities when given all-0 vector

    [ https://issues.apache.org/jira/browse/SPARK-18062?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15597464#comment-15597464 ] 

Sean Owen commented on SPARK-18062:
-----------------------------------

In the spirit of throwing errors on invalid input, shouldn't this be an error (perhaps earlier)? the input says all classes are impossible, and normalization can't change that.

> ProbabilisticClassificationModel.normalizeToProbabilitiesInPlace should return probabilities when given all-0 vector
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-18062
>                 URL: https://issues.apache.org/jira/browse/SPARK-18062
>             Project: Spark
>          Issue Type: Improvement
>          Components: ML
>            Reporter: Joseph K. Bradley
>            Priority: Trivial
>
> {{ProbabilisticClassificationModel.normalizeToProbabilitiesInPlace}} returns a vector of all-0 when given a rawPrediction vector of all-0.  It should return a valid probability vector with the uniform distribution.
> Note: This will be a *behavior change* but it should be very minor and affect few if any users.  But we should note it in release notes.



--
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