How to use the fancyimpute.ConvexSolver function in fancyimpute

To help you get started, we’ve selected a few fancyimpute examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github iskandr / fancyimpute / test / test_rank1.py View on Github external
def test_rank1_symmetric_convex_solver():
    completed = ConvexSolver(require_symmetric_solution=True).complete(
        XYXY_missing)
    assert abs(completed[1, 2] - XYXY[1, 2]) < 0.001, \
        "Expected %0.4f but got %0.4f" % (
            XYXY[1, 2], completed[1, 2])
github iskandr / fancyimpute / test / test_rank1.py View on Github external
def test_rank1_convex_solver():
    XY_completed = ConvexSolver().complete(XY_missing)
    assert abs(XY_completed[1, 2] - XY[1, 2]) < 0.001, \
        "Expected %0.4f but got %0.4f" % (
            XY[1, 2], XY_completed[1, 2])