You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Xiangrui Meng (JIRA)" <ji...@apache.org> on 2015/05/18 06:19:00 UTC

[jira] [Closed] (SPARK-7694) Use getOrElse for getting the threshold of LR model

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

Xiangrui Meng closed SPARK-7694.
--------------------------------
          Resolution: Fixed
       Fix Version/s: 1.4.0
            Assignee: Shuo Xiang
    Target Version/s: 1.4.0

> Use getOrElse for getting the threshold of LR model 
> ----------------------------------------------------
>
>                 Key: SPARK-7694
>                 URL: https://issues.apache.org/jira/browse/SPARK-7694
>             Project: Spark
>          Issue Type: Bug
>          Components: MLlib
>            Reporter: Shuo Xiang
>            Assignee: Shuo Xiang
>            Priority: Minor
>             Fix For: 1.4.0
>
>
> The toString method of LogisticRegressionModel calls get method on an Option (threshold) without a safeguard. In spark-shell, the following code 
> {code:title=lbfgs.scala|borderStyle=solid}
> val model = algorithm.run(data).clearThreshold()
> {code}
>  in lbfgs code will fail as toString method will be called right after clearThreshold() to show the results in the REPL.



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