[mlpack-git] [mlpack] add a wrapper for the matrix completion SDP (#374)

Ryan Curtin notifications at github.com
Fri Jan 9 16:31:40 EST 2015


> +  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);
> +  }
> +}
> +

If you choose to refactor this so it can work as a `FactorizerType` to the `CF` class, we can write another easy test which is just one of the CF tests using `MatrixCompletion` as a factorizer.

---
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/374/files#r22744563
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20150109/4debd52a/attachment.html>


More information about the mlpack-git mailing list