<p>In <a href="https://github.com/mlpack/mlpack/pull/694#discussion_r69907772">src/mlpack/core/data/load_impl.hpp</a>:</p>
<pre style='color:#555'>&gt; @@ -446,16 +409,16 @@ bool Load(const std::string&amp; filename,
&gt;      if (transpose)
&gt;      {
&gt;        matrix.set_size(cols, rows);
&gt; -      info = DatasetInfo(cols);
&gt; +      info = DatasetMapper&lt;PolicyType&gt;(info.Policy(), cols);
</pre>
<p>I think it's possible the problem I am thinking of existed in earlier versions of mlpack, but what happens if I do this:</p>

<pre><code>arma::mat trainingSet, testSet;
DatasetInfo d;
data::Load("training_set.csv", trainingSet, d);
data::Load("test_set.csv", testSet, d);
</code></pre>

<p>Ideally the mappings from the first load should be preserved and used for the second load, but the lines here make me think that is not what is happening.  I think probably we should add a test for this situation, to ensure that mapping information from a previous load is not destroyed.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/mlpack/mlpack/pull/694/files/a8818316a04506530e2269a2e0a32ba2f6a1c83b#r69907772">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFIDw2cbFFW5yCKF-CQ5SoX14jFLAks5qTQImgaJpZM4I07W-">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFCBiZh8h2lLnOIWqD_eQARIDsIWaks5qTQImgaJpZM4I07W-.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/694/files/a8818316a04506530e2269a2e0a32ba2f6a1c83b#r69907772"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>