[mlpack-git] [mlpack] issue332 - add intercept term to softmax regression (#418)

QiaoAn Chen notifications at github.com
Thu Mar 5 03:14:17 EST 2015


In issue332, data points from Gaussian distribution (base [1, 1, 1]) and points from base [9, 9, 9] can't not be well separating using softmax regression. The implementation of softmax regression haven't add the intercept term, which means the hypothesis space only contains 3-d planes crossing the origin. This patch try to fixed this problem by adding the intercept term to it.
You can view, comment on, or merge this pull request online at:

  https://github.com/mlpack/mlpack/pull/418

-- Commit Summary --

  * add intercept term to softmax regression

-- File Changes --

    M src/mlpack/methods/softmax_regression/softmax_regression.hpp (12)
    M src/mlpack/methods/softmax_regression/softmax_regression_function.cpp (75)
    M src/mlpack/methods/softmax_regression/softmax_regression_function.hpp (25)
    M src/mlpack/methods/softmax_regression/softmax_regression_impl.hpp (25)
    M src/mlpack/tests/softmax_regression_test.cpp (44)

-- Patch Links --

https://github.com/mlpack/mlpack/pull/418.patch
https://github.com/mlpack/mlpack/pull/418.diff

---
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/418
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20150305/68a8d332/attachment-0001.html>


More information about the mlpack-git mailing list