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

Ryan Curtin notifications at github.com
Fri Jan 9 16:17:00 EST 2015


> +   * @param m Number of rows of original matrix.
> +   * @param n Number of columns of original matrix.
> +   * @param indices Matrix containing the indices of the known entries (must be
> +   *    [2 x p]).
> +   * @param values Vector containing the values of the known entries (must be
> +   *    length p).
> +   */
> +  MatrixCompletion(const size_t m,
> +                   const size_t n,
> +                   const arma::umat& indices,
> +                   const arma::vec& values);
> +
> +  /**
> +   * Solve the underlying SDP to fill in the remaining values.
> +   */
> +  void Recover();

Personall I think `void Recover(arma::mat& output)` is a better option here, and maybe we ought to call it `Apply` and attempt to make it similar to the interface required by CF's FactorizerType class: http://mlpack.org/doxygen.php?doc=classmlpack_1_1cf_1_1CF.html#_details .  That may take a little more thinking, though, and would probably require refactoring the class so the LRSDP constraints are set when `Recover()` is called.

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


More information about the mlpack-git mailing list