294989ae6def6962bdb54574ac38abbb68d6f4ed,test/test_parameters.py,,test_parameters_Add,#,1854
Before Change
def test_parameters_Add():
reseed()
eps = np.finfo(np.float32).eps
values_int = [-100, -54, -1, 0, 1, 54, 100]
values_float = [-100.0, -54.3, -1.0, 0.1, 0.0, 0.1, 1.0, 54.4, 100.0]
After Change
for v1 in values_float:
for v2 in values_float:
p = iap.Add(iap.Deterministic(v1), v2)
sample = p.draw_sample()
assert v1 + v2 - _eps(sample) < sample < v1 + v2 + _eps(sample)
samples = p.draw_samples((2, 3))
assert samples.dtype == np.float64
assert np.allclose(samples, np.zeros((2, 3), dtype=np.float64) + v1 + v2)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 6
Instances
Project Name: aleju/imgaug
Commit Name: 294989ae6def6962bdb54574ac38abbb68d6f4ed
Time: 2019-01-28
Author: kontakt@ajung.name
File Name: test/test_parameters.py
Class Name:
Method Name: test_parameters_Add
Project Name: aleju/imgaug
Commit Name: 294989ae6def6962bdb54574ac38abbb68d6f4ed
Time: 2019-01-28
Author: kontakt@ajung.name
File Name: test/test_parameters.py
Class Name:
Method Name: test_parameters_Subtract
Project Name: aleju/imgaug
Commit Name: 294989ae6def6962bdb54574ac38abbb68d6f4ed
Time: 2019-01-28
Author: kontakt@ajung.name
File Name: test/test_parameters.py
Class Name:
Method Name: test_parameters_Multiply
Project Name: aleju/imgaug
Commit Name: 294989ae6def6962bdb54574ac38abbb68d6f4ed
Time: 2019-01-28
Author: kontakt@ajung.name
File Name: test/test_parameters.py
Class Name:
Method Name: test_parameters_Power