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

Ryan Curtin notifications at github.com
Wed Sep 30 09:25:44 EDT 2015


> @@ -141,13 +140,8 @@ class SoftmaxRegression
>     * @param numClasses Number of classes for classification.
>     * @return Objective value of the final point.
>     */
> -  double Train(const arma::mat &data, const arma::vec& labels,
> -               const size_t numClasses);
> -
> -  //! Sets the size of the input vector.
> -  size_t& InputSize() { return inputSize; }
> -  //! Gets the size of the input vector.
> -  size_t InputSize() const { return inputSize; }

Sure, I'll go ahead and merge this and change `InputSize()` to `FeatureSize()`.  It should be `n_rows`, not `n_cols` -- Armadillo matrices are column-major, so each column corresponds to an observation and each row corresponds to a feature.

---
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/457/files#r40792244
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20150930/677fcbb2/attachment.html>


More information about the mlpack-git mailing list