1c30a6f487afaeef73464a98320e35961b11873f,pymc3/variational/inference.py,,fit,#Any#Any#Any#Any#Any#Any#Any#,682
Before Change
elif isinstance(method, Inference):
inference = method
else:
raise TypeError("method should be one of %s "
"or Inference instance" %
set(_select.keys()))
return inference.fit(n, **kwargs)
After Change
inference = _select[method](model=model, **inf_kwargs)
else:
raise KeyError(
f"method should be one of {set(_select.keys())} or Inference instance"
)
elif isinstance(method, Inference):
inference = method
else:
raise TypeError(
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: pymc-devs/pymc3
Commit Name: 1c30a6f487afaeef73464a98320e35961b11873f
Time: 2019-12-09
Author: aloctavodia@gmail.com
File Name: pymc3/variational/inference.py
Class Name:
Method Name: fit
Project Name: open-mmlab/mmcv
Commit Name: b7e8d7d7fb49ae7a66fce7e6ee1f0cbaf561e7d6
Time: 2020-04-25
Author: yhcao6@gmail.com
File Name: mmcv/utils/registry.py
Class Name: Registry
Method Name: _register_module
Project Name: open-mmlab/mmcv
Commit Name: b7e8d7d7fb49ae7a66fce7e6ee1f0cbaf561e7d6
Time: 2020-04-25
Author: yhcao6@gmail.com
File Name: mmcv/utils/registry.py
Class Name:
Method Name: build_from_cfg