mlpack
Functions
matrix_completion_test.cpp File Reference
#include <mlpack/core.hpp>
#include <mlpack/methods/matrix_completion/matrix_completion.hpp>
#include "catch.hpp"
Include dependency graph for matrix_completion_test.cpp:

Functions

 TEST_CASE ("UniformMatrixCompletionSDP", "[MatrixCompletionTest]")
 A matrix completion test. More...
 

Detailed Description

Author
Stephen Tu

Tests for matrix completion

mlpack is free software; you may redistribute it and/or modify it under the terms of the 3-clause BSD license. You should have received a copy of the 3-clause BSD license along with mlpack. If not, see http://www.opensource.org/licenses/BSD-3-Clause for more information.

Function Documentation

◆ TEST_CASE()

TEST_CASE ( "UniformMatrixCompletionSDP"  ,
""  [MatrixCompletionTest] 
)

A matrix completion test.

The matrix X = F1 F2^T was generated such that the entries of Fi were iid from the uniform distribution on [0, 1]. Then, enough random samples (without replacement) were taking from X such that exact recovered was possible.

X is stored in the file "completion_X.csv" and the indices are stored in the file "completion_indices.csv". Recovery was verified by solving the SDP with Mosek.