f3b74fa85ff628de673e3a652a04d30880646487,GPy/models/mrd.py,MRD,__init__,#MRD#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,48

Before Change


            from ..kern import RBF
            self.kern = [RBF(input_dim, ARD=1, lengthscale=fracs[i], name="rbf".format(i)) for i in range(len(Ylist))]
        elif isinstance(kernel, Kern):
            self.kern = [kernel.copy(name="{}".format(kernel.name, i)) for i in range(len(Ylist))]
        else:
            assert len(kernel) == len(Ylist), "need one kernel per output"
            assert all([isinstance(k, Kern) for k in kernel]), "invalid kernel object detected!"

After Change


        elif isinstance(kernel, Kern):
            self.kern = []
            for i in range(len(Ylist)):
                k = kernel.copy()
                self.kern.append(k)
        else:
            assert len(kernel) == len(Ylist), "need one kernel per output"
            assert all([isinstance(k, Kern) for k in kernel]), "invalid kernel object detected!"
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: SheffieldML/GPy
Commit Name: f3b74fa85ff628de673e3a652a04d30880646487
Time: 2014-03-31
Author: ibinbei@gmail.com
File Name: GPy/models/mrd.py
Class Name: MRD
Method Name: __init__


Project Name: ray-project/ray
Commit Name: d192ef06119f3eccf569a844b30976db99cfa0f6
Time: 2020-03-10
Author: rliaw@berkeley.edu
File Name: python/ray/util/sgd/torch/torch_trainer.py
Class Name: TorchTrainer
Method Name: _start_workers


Project Name: dask/dask-ml
Commit Name: 68c9bab4a5c6821c2a4395763c676ba796406c49
Time: 2020-08-17
Author: TomAugspurger@users.noreply.github.com
File Name: dask_ml/preprocessing/_encoders.py
Class Name: OneHotEncoder
Method Name: _transform


Project Name: open-mmlab/mmdetection
Commit Name: 050614a9b8528de4f8e453aa42d9265206738eb1
Time: 2020-03-11
Author: xvjiarui0826@gmail.com
File Name: mmdet/models/utils/conv_module.py
Class Name: ConvModule
Method Name: __init__