bc5e993ae30a59d7bcdfa03513ecc3d43b58a5f7,tests/auto/test_loss_masking.py,TestLossMasking,test_loss_masking_time,#TestLossMasking#,24
Before Change
out2 = K.eval(weighted_loss(X, Y, weights, mask))
print(out)
print(out2)
assert abs(out - out2) < 1e-8
if __name__ == "__main__":
print("Test loss masking")
After Change
out = K.eval(weighted_loss(K.variable(X),
K.variable(Y),
K.variable(weights),
K.variable(mask)))
print(out)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: keras-team/keras
Commit Name: bc5e993ae30a59d7bcdfa03513ecc3d43b58a5f7
Time: 2015-11-19
Author: francois.chollet@gmail.com
File Name: tests/auto/test_loss_masking.py
Class Name: TestLossMasking
Method Name: test_loss_masking_time
Project Name: keras-team/keras
Commit Name: 874f6db89d70b3c0221034943b2a427d88b63e81
Time: 2018-10-14
Author: gabrieldemarmiesse@gmail.com
File Name: tests/keras/backend/backend_test.py
Class Name: TestBackend
Method Name: test_logsumexp_optim
Project Name: keras-team/keras
Commit Name: ae72ea0bfe7f7041d6f7580427fa1f69158bab7e
Time: 2018-03-05
Author: me@taehoonlee.com
File Name: tests/keras/backend/backend_test.py
Class Name: TestBackend
Method Name: test_rnn_no_states
Project Name: keras-team/keras
Commit Name: bc5e993ae30a59d7bcdfa03513ecc3d43b58a5f7
Time: 2015-11-19
Author: francois.chollet@gmail.com
File Name: tests/auto/keras/test_constraints.py
Class Name: TestConstraints
Method Name: test_unitnorm