[ 
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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to