151b5f9778b4c2d2d75a46bcc438349b7659e743,keras/legacy/interfaces.py,,,#,142
Before Change
"`" + new_arg + "`. Stick to the latter!")
legacy_dense_support = generate_legacy_interface(
allowed_positional_args=["units"],
conversions=[("output_dim", "units"),
("init", "kernel_initializer"),
("W_regularizer", "kernel_regularizer"),
("b_regularizer", "bias_regularizer"),
("W_constraint", "kernel_constraint"),
("b_constraint", "bias_constraint"),
("bias", "use_bias")])
legacy_dropout_support = generate_legacy_interface(
allowed_positional_args=["rate", "noise_shape", "seed"],
conversions=[("p", "rate")])
After Change
return legacy_support
generate_legacy_method_interface = functools.partial(generate_legacy_interface,
object_type="method")
def raise_duplicate_arg_error(old_arg, new_arg):
raise TypeError("For the `" + new_arg + "` argument, "
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances
Project Name: keras-team/keras
Commit Name: 151b5f9778b4c2d2d75a46bcc438349b7659e743
Time: 2017-03-12
Author: francois.chollet@gmail.com
File Name: keras/legacy/interfaces.py
Class Name:
Method Name:
Project Name: Pinafore/qb
Commit Name: 75d90b82e1b25d88bc94add57964df2879d024ad
Time: 2017-05-24
Author: sjtufs@gmail.com
File Name: qanta/util/multiprocess.py
Class Name:
Method Name: _multiprocess
Project Name: dask/dask-image
Commit Name: f9aea094643fb3240193b0bc0f1908d5b84d82ab
Time: 2018-09-30
Author: jakirkham@gmail.com
File Name: dask_image/ndmeasure/__init__.py
Class Name:
Method Name: center_of_mass
Project Name: tensorflow/magenta
Commit Name: b1d84fbbae7b49d99bb6f1292c7f05ae064a2590
Time: 2017-08-10
Author: iansimon@users.noreply.github.com
File Name: magenta/models/performance_rnn/performance_model.py
Class Name: PerformanceRnnModel
Method Name: generate_performance