ea80e4bf2033628822e2b0f92e2e373d1b3c147b,test/test_auto_encoder.py,,test_auto_encoder_with_low_rank_random_matrix,#,7
Before Change
print(XY_completed)
print(missing_mask)
diff = XY - XY_completed
missing_mse = np.mean(diff[missing_mask] ** 2)
missing_mae = np.mean(np.abs(diff[missing_mask]))
print("MSE: %0.4f, MAE: %0.4f" % (missing_mse, missing_mae))
assert missing_mae < 0.1, "Error too high!"
if __name__ == "__main__":
After Change
def test_auto_encoder_with_low_rank_random_matrix():
XY_completed = AutoEncoder().complete(XY_incomplete)
_, missing_mae = reconstruction_error(XY, XY_completed, missing_mask)
assert missing_mae < 0.1, "Error too high!"
if __name__ == "__main__":
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: iskandr/fancyimpute
Commit Name: ea80e4bf2033628822e2b0f92e2e373d1b3c147b
Time: 2015-12-31
Author: alex.rubinsteyn@gmail.com
File Name: test/test_auto_encoder.py
Class Name:
Method Name: test_auto_encoder_with_low_rank_random_matrix
Project Name: iskandr/fancyimpute
Commit Name: ea80e4bf2033628822e2b0f92e2e373d1b3c147b
Time: 2015-12-31
Author: alex.rubinsteyn@gmail.com
File Name: test/test_matrix_factorization.py
Class Name:
Method Name: test_matrix_factorization_with_low_rank_random_matrix
Project Name: scikit-learn-contrib/DESlib
Commit Name: 873a906cb76f0c6988d6547078103b67b73a7262
Time: 2018-04-02
Author: rafaelmenelau@gmail.com
File Name: deslib/des/des_knn.py
Class Name: DESKNN
Method Name: estimate_competence