GitHub user coderxiang opened a pull request:

    https://github.com/apache/spark/pull/6224

    se getOrElse for getting the threshold of LR model

    The `toString` method of `LogisticRegressionModel` calls `get` method on an 
Option (threshold) without a safeguard. In spark-shell, the following code `val 
model = algorithm.run(data).clearThreshold()` in lbfgs code will fail as 
`toString `method will be called right after `clearThreshold()` to show the 
results in the REPL.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/coderxiang/spark getorelse

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/6224.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #6224
    
----
commit 98804c9816b5fc5d650ae9670d5b8b340068690d
Author: Shuo Xiang <[email protected]>
Date:   2015-05-07T21:52:36Z

    fix bug in topBykey and update test

commit c5c5bfe92c3ba4f5de24bc89bc4b8c0fafc1c834
Author: Shuo Xiang <[email protected]>
Date:   2015-05-08T16:12:22Z

    Merge remote-tracking branch 'upstream/master'

commit 5f109b4d46cc6e65ceccf89c076895a4c889872f
Author: Shuo Xiang <[email protected]>
Date:   2015-05-17T23:51:30Z

    Merge remote-tracking branch 'upstream/master'

commit d5f53c91bb56fd53cc67f7dc0a677b72e4d9fc36
Author: Shuo Xiang <[email protected]>
Date:   2015-05-18T00:05:56Z

    use getOrElse for getting the threshold of LR model

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to