f70c7b7b1e246e32e322ba059f8bf0e5d01a22be,tests/python/unittest/test_optimizer.py,,test_sparse_sgd,#,281

Before Change


                for rg_option in rg_options:
                    for wd_option in wd_options:
                        for mp_option in mp_options:
                            kwarg = {}
                            kwarg.update(mom_option)
                            kwarg.update(cg_option)
                            kwarg.update(rg_option)
                            kwarg.update(wd_option)
                            kwarg.update(mp_option)
                            compare_optimizer(opt1(**kwarg), opt2(**kwarg), shape, dtype,

After Change


    for dtype in [np.float32]:
        for params in itertools.product(mom_options, cg_options, rg_options,
                                        wd_options, agg_options):
            kwarg = {k: v for param in params for k, v in param.items()}
            compare_optimizer(opt1(**kwarg),
                              opt2(use_fused_step=True, lazy_update=True, **kwarg), shapes, dtype,
                              w_stype="row_sparse", g_stype="row_sparse")
            compare_optimizer(opt1(**kwarg),
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 7

Instances


Project Name: apache/incubator-mxnet
Commit Name: f70c7b7b1e246e32e322ba059f8bf0e5d01a22be
Time: 2020-02-29
Author: szhengac@users.noreply.github.com
File Name: tests/python/unittest/test_optimizer.py
Class Name:
Method Name: test_sparse_sgd


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: d32f8acd01027cff01fccf351d9c3c1926f68379
Time: 2020-05-09
Author: irinutza.n@gmail.com
File Name: art/poison_detection/poison_filtering_defence.py
Class Name: PoisonFilteringDefence
Method Name: get_params


Project Name: cesium-ml/cesium
Commit Name: 15f09fbeb534cb7b68cf1c928ea6ced85f606de3
Time: 2015-11-12
Author: brettnaul@gmail.com
File Name: mltsp/featurize_tools.py
Class Name:
Method Name: featurize_single_ts


Project Name: ncullen93/torchsample
Commit Name: eb5e1166e5919dc2842f39886151fd229fb6c321
Time: 2017-04-27
Author: ncullen@modv-vlan533.0919.apn.wlan.wireless-pennnet.upenn.edu
File Name: torchsample/metrics.py
Class Name: MetricsModule
Method Name: __call__