How to use the fancyimpute.AutoEncoder 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_auto_encoder.py View on Github external
def test_auto_encoder_with_low_rank_random_matrix():
    solver = AutoEncoder(
        hidden_layer_sizes=None,
        hidden_activation="tanh",
        optimizer="adam",
        recurrent_weight=0.0)
    XY_completed = solver.complete(
        XY_incomplete)
    _, missing_mae = reconstruction_error(XY, XY_completed, missing_mask)
    assert missing_mae < 0.1, "Error too high!"