<p>In <a href="https://github.com/mlpack/mlpack/pull/374#discussion-diff-22744563">src/mlpack/tests/matrix_completion_test.cpp</a>:</p>
<pre style='color:#555'>&gt; +  mc.Recover();
&gt; +
&gt; +  const double err =
&gt; +    arma::norm(Xorig - mc.Recovered(), &quot;fro&quot;) /
&gt; +    arma::norm(Xorig, &quot;fro&quot;);
&gt; +  BOOST_REQUIRE_SMALL(err, 1e-5);
&gt; +
&gt; +  for (size_t i = 0; i &lt; indices.n_cols; ++i)
&gt; +  {
&gt; +    BOOST_REQUIRE_CLOSE(
&gt; +      mc.Recovered()(indices(0, i), indices(1, i)),
&gt; +      Xorig(indices(0, i), indices(1, i)),
&gt; +      1e-5);
&gt; +  }
&gt; +}
&gt; +
</pre>
<p>If you choose to refactor this so it can work as a <code>FactorizerType</code> to the <code>CF</code> class, we can write another easy test which is just one of the CF tests using <code>MatrixCompletion</code> as a factorizer.</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/374/files#r22744563">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFIj8WSnjXhq9_fa1tB6VV8isarqNks5ngEA8gaJpZM4DOLPX.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/374/files#r22744563"></link>
    <meta itemprop="name" content="View Pull Request"></meta>
  </div>
  <meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>