Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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!"