[mlpack-git] [mlpack] Enhance SoftmaxRegression (#457)

stereomatchingkiss notifications at github.com
Tue Sep 29 00:40:16 EDT 2015


1 : remove inputSize from the constructors and data member
2 : provide static function initializeWeight to simplify constructor task
3 : change labels from arma::vec to arma::Row<size_t>
4 : update test cases

The labels of the SoftmaxRegressionFunction still need to be stored, else InitializeWeights() do not know the number of labels
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * 1 : remove inputSize from the constructors and data member

-- File Changes --

    M src/mlpack/methods/softmax_regression/softmax_regression.hpp (21)
    M src/mlpack/methods/softmax_regression/softmax_regression_function.cpp (40)
    M src/mlpack/methods/softmax_regression/softmax_regression_function.hpp (34)
    M src/mlpack/methods/softmax_regression/softmax_regression_impl.hpp (30)
    M src/mlpack/tests/softmax_regression_test.cpp (53)

-- Patch Links --

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

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


More information about the mlpack-git mailing list