<p>In <a href="https://github.com/mlpack/mlpack/pull/694#discussion_r71076094">src/mlpack/tests/imputation_test.cpp</a>:</p>
<pre style='color:#555'>&gt; +  // MissingPolicy should convert strings to nans
&gt; +  BOOST_REQUIRE(std::isnan(input(0, 0)) == true);
&gt; +  BOOST_REQUIRE_CLOSE(input(0, 1), 5.0, 1e-5);
&gt; +  BOOST_REQUIRE_CLOSE(input(0, 2), 8.0, 1e-5);
&gt; +  BOOST_REQUIRE_CLOSE(input(1, 0), 2.0, 1e-5);
&gt; +  BOOST_REQUIRE_CLOSE(input(1, 1), 6.0, 1e-5);
&gt; +  BOOST_REQUIRE_CLOSE(input(1, 2), 9.0, 1e-5);
&gt; +  BOOST_REQUIRE_CLOSE(input(2, 0), 3.0, 1e-5);
&gt; +  BOOST_REQUIRE(std::isnan(input(2, 1)) == true);
&gt; +  BOOST_REQUIRE_CLOSE(input(2, 2), 10.0, 1e-5);
&gt; +
&gt; +  CustomImputation&lt;double&gt; customStrategy(99); // convert missing vals to 99.
&gt; +  Imputer&lt;double,
&gt; +          DatasetMapper&lt;MissingPolicy&gt;,
&gt; +          CustomImputation&lt;double&gt;&gt; imputer(info, customStrategy);
&gt; +  imputer.Impute(input, output, &quot;a&quot;, 0); // convert a -&gt; 99 for dimension 0
</pre>
<p>I think the comments should be</p>

<p><code>// convert a or nan to 99 for dimension 0</code></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/e5d591e511ae449eae1523a80346357b93b968d1#r71076094">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJ4bFKzj5Lr_7SLCY1G88wZUp68ay6hJks5qWajJgaJpZM4I07W-">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFCSavbaZCCdilmK0wl_LnuTGxE7aks5qWajJgaJpZM4I07W-.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/e5d591e511ae449eae1523a80346357b93b968d1#r71076094"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>