{"action":"created","issue":{"url":"https://api.github.com/repos/mlpack/mlpack/issues/466","labels_url":"https://api.github.com/repos/mlpack/mlpack/issues/466/labels{/name}","comments_url":"https://api.github.com/repos/mlpack/mlpack/issues/466/comments","events_url":"https://api.github.com/repos/mlpack/mlpack/issues/466/events","html_url":"https://github.com/mlpack/mlpack/pull/466","id":113977218,"number":466,"title":"implement command line programs of softmaxRegression","user":{"login":"stereomatchingkiss","id":1801914,"avatar_url":"https://avatars.githubusercontent.com/u/1801914?v=3","gravatar_id":"","url":"https://api.github.com/users/stereomatchingkiss","html_url":"https://github.com/stereomatchingkiss","followers_url":"https://api.github.com/users/stereomatchingkiss/followers","following_url":"https://api.github.com/users/stereomatchingkiss/following{/other_user}","gists_url":"https://api.github.com/users/stereomatchingkiss/gists{/gist_id}","starred_url":"https://api.github.com/users/stereomatchingkiss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stereomatchingkiss/subscriptions","organizations_url":"https://api.github.com/users/stereomatchingkiss/orgs","repos_url":"https://api.github.com/users/stereomatchingkiss/repos","events_url":"https://api.github.com/users/stereomatchingkiss/events{/privacy}","received_events_url":"https://api.github.com/users/stereomatchingkiss/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-10-29T04:18:43Z","updated_at":"2015-11-09T02:01:08Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mlpack/mlpack/pulls/466","html_url":"https://github.com/mlpack/mlpack/pull/466","diff_url":"https://github.com/mlpack/mlpack/pull/466.diff","patch_url":"https://github.com/mlpack/mlpack/pull/466.patch"},"body":"Create a command line program for softmax regression"},"comment":{"url":"https://api.github.com/repos/mlpack/mlpack/issues/comments/154902110","html_url":"https://github.com/mlpack/mlpack/pull/466#issuecomment-154902110","issue_url":"https://api.github.com/repos/mlpack/mlpack/issues/466","id":154902110,"user":{"login":"rcurtin","id":1845039,"avatar_url":"https://avatars.githubusercontent.com/u/1845039?v=3","gravatar_id":"","url":"https://api.github.com/users/rcurtin","html_url":"https://github.com/rcurtin","followers_url":"https://api.github.com/users/rcurtin/followers","following_url":"https://api.github.com/users/rcurtin/following{/other_user}","gists_url":"https://api.github.com/users/rcurtin/gists{/gist_id}","starred_url":"https://api.github.com/users/rcurtin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rcurtin/subscriptions","organizations_url":"https://api.github.com/users/rcurtin/orgs","repos_url":"https://api.github.com/users/rcurtin/repos","events_url":"https://api.github.com/users/rcurtin/events{/privacy}","received_events_url":"https://api.github.com/users/rcurtin/received_events","type":"User","site_admin":false},"created_at":"2015-11-09T02:01:08Z","updated_at":"2015-11-09T02:01:08Z","body":"> why arma::vec& but not arma::Row?\r\n\r\nThe Armadillo storage format is column-major, so inside mlpack C++ code, a column (either arma::mat::col() or arma::vec, arma::Col<T>, etc.) refers to a data point.\r\n\r\n> To work with SGD, I have to implement three more functions\r\n\r\nNah, you shouldn't have to do anything at all.  You can use the SoftmaxRegression class with the L-BFGS optimizer like this:\r\n\r\n`SoftmaxRegression<L_BFGS>`\r\n\r\nand with the SGD optimizer like this:\r\n\r\n`SoftmaxRegression<SGD>`\r\n\r\nSo you shouldn't need to modify any of the existing code.  Take a look at `src/mlpack/methods/nca/nca_main.cpp` and how the --optimizer option is implemented there; it should be like that, pretty straightforward.  I hope that clarifies things a bit.\r\n\r\n> We could rely on the huge libraries developed by NVDIA and other open source community. Like  mshadow(https://github.com/dmlc/mshadow) and Thrust(http://docs.nvidia.com/cuda/thrust/).\r\n\r\n> mshadow provide high level api for matrix operation like armadillo, Thrust provide stl like general purpose algorithms.\r\n\r\nExcellent, I will take a look into these when I have some time.  Thanks for the links!"}}