<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'>> + mc.Recover();
> +
> + const double err =
> + arma::norm(Xorig - mc.Recovered(), "fro") /
> + arma::norm(Xorig, "fro");
> + BOOST_REQUIRE_SMALL(err, 1e-5);
> +
> + for (size_t i = 0; i < indices.n_cols; ++i)
> + {
> + BOOST_REQUIRE_CLOSE(
> + mc.Recovered()(indices(0, i), indices(1, i)),
> + Xorig(indices(0, i), indices(1, i)),
> + 1e-5);
> + }
> +}
> +
</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;">—<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>