<p>In <a href="https://github.com/mlpack/mlpack/pull/456#discussion_r40552799">src/mlpack/methods/softmax_regression/softmax_regression.hpp</a>:</p>
<pre style='color:#555'>&gt; +   * @param fitIntercept add intercept term or not.
&gt; +   */
&gt; +  SoftmaxRegression(const size_t inputSize,
&gt; +                    const size_t numClasses,
&gt; +                    const bool fitIntercept = false);
&gt; +
&gt; +  /**
&gt; +   * Construct the SoftmaxRegression class with the provided data and labels.
&gt; +   * This will train the model.
&gt; +   *
&gt; +   * @param fileName name of the files saving the model contents
&gt; +   * @param name name of the structure to be save
&gt; +   * @exception If the file cannot be load, the exception will thrown
&gt; +   */
&gt; +  SoftmaxRegression(const std::string &amp;fileName,
&gt; +                    const std::string&amp; name);
</pre>
<p>I think we should avoid this constructor, because no other mlpack methods provide a constructor of this sort.  If we implemented this method here, then we'd have to implement it anywhere (for consistency).  I'd prefer that users use <code>data::Load()</code> instead (maybe we can revisit this later, but for now I don't have time to create that constructor for every mlpack method before the next release).</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/mlpack/mlpack/pull/456/files#r40552799">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFODjlGTM9ZAN-T24QRd-RPiEfxVjks5o2TvSgaJpZM4GEofU.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/mlpack/mlpack/pull/456/files#r40552799"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>