e2f51920215f2c3be39de713626d1288c607eb75,test/test_auto_encoder.py,,test_rank1_auto_encoder,#,6
Before Change
for j in range(XY.shape[1]):
expected = XY[i, j]
predicted = XY_completed[i, j]
assert abs(expected - predicted) < 0.1, \
"Expected %0.4f but got %0.4f at XY[%d,%d]" % (
expected,
predicted,
i,
j)
if __name__ == "__main__":
test_rank1_auto_encoder()
After Change
print(XY)
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__":
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: iskandr/fancyimpute
Commit Name: e2f51920215f2c3be39de713626d1288c607eb75
Time: 2015-12-28
Author: alex.rubinsteyn@gmail.com
File Name: test/test_auto_encoder.py
Class Name:
Method Name: test_rank1_auto_encoder
Project Name: fgnt/pb_bss
Commit Name: b8b967868bb34dc9d39af010833d3bd6a1242ee7
Time: 2019-08-06
Author: mail@lukas-drude.de
File Name: paderbox/speech_enhancement/beamformer_wrapper.py
Class Name:
Method Name: get_multi_source_bf_vector_from_masks
Project Name: rasbt/mlxtend
Commit Name: b46079a21209220f92ee274f4498e120e9a1b762
Time: 2018-09-23
Author: kmori05@gmail.com
File Name: mlxtend/regressor/tests/test_stacking_regression.py
Class Name:
Method Name: test_weight_ones