a1ffcada5b90540eb10187f632f1947eae0849a2,pyimgaug/augmenters2.py,Multiply,__init__,#Multiply#Any#Any#Any#Any#Any#,739
Before Change
if isinstance(mul, (float, int)):
assert mul >= 0.0, "Expected multiplier to have range [0, inf), got value %.4f." % (mul,)
self.mul = Deterministic(mul)
elif isinstance(mul, (tuple, list)):
assert len(mul) == 2, "Expected tuple/list with 2 entries, got %d entries." % (str(len(mul)),)
self.mul = Uniform(mul[0], mul[1])
elif isinstance(mul, StochasticParameter):
After Change
self.loc = Deterministic(loc)
elif ia.is_iterable(loc):
assert len(loc) == 2, "Expected tuple/list with 2 entries for argument "loc", got %d entries." % (str(len(scale)),)
self.loc = Uniform(loc[0], loc[1])
elif isinstance(loc, StochasticParameter):
self.loc = loc
else:
raise Exception("Expected float, int, tuple/list with 2 entries or StochasticParameter for argument "loc". Got %s." % (type(loc),))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: aleju/imgaug
Commit Name: a1ffcada5b90540eb10187f632f1947eae0849a2
Time: 2016-11-20
Author: kontakt@ajung.name
File Name: pyimgaug/augmenters2.py
Class Name: Multiply
Method Name: __init__
Project Name: aleju/imgaug
Commit Name: a1ffcada5b90540eb10187f632f1947eae0849a2
Time: 2016-11-20
Author: kontakt@ajung.name
File Name: pyimgaug/augmenters2.py
Class Name: Dropout
Method Name: __init__
Project Name: chainer/chainer
Commit Name: e125f807797c53ad3c8de16f9f25124671a0a0f6
Time: 2019-12-10
Author: himkt@cookpad.com
File Name: tests/chainer_tests/links_tests/rnn_tests/test_link_n_step_rnn.py
Class Name: TestInitialization
Method Name: setUp