06279f054fcfa03517b1bd51ef156a9182af146f,PyPi/utils/parameters.py,Parameter,__call__,#Parameter#Any#,13

Before Change


                                 axis=1).ravel()
        else:
            idx = idx.astype(np.int)
        assert idx.ndim == 1

        idx = tuple(idx) if idx.size == self._n_updates.ndim else 0

        self._n_updates[idx] += 1

After Change



    def __call__(self, idx, **kwargs):
        if not isinstance(idx, tuple):
            idx = tuple(idx.ravel())

        idx = idx if self._n_updates.size > 1 else 0

        self._n_updates[idx] += 1
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: AIRLab-POLIMI/mushroom
Commit Name: 06279f054fcfa03517b1bd51ef156a9182af146f
Time: 2017-06-16
Author: carlo.deramo@gmail.com
File Name: PyPi/utils/parameters.py
Class Name: Parameter
Method Name: __call__


Project Name: biolab/orange3
Commit Name: 3721aada353b474d5b5ce726fa65de4968fb6b5e
Time: 2013-06-02
Author: jure.zbontar@gmail.com
File Name: Orange/classification/logistic.py
Class Name:
Method Name:


Project Name: nilearn/nilearn
Commit Name: f2248a7b41dc0ab56486a5e9cab35afda227a4e9
Time: 2013-03-12
Author: abraham.alexandre@gmail.com
File Name: nisl/decomposition/tests/test_canica.py
Class Name:
Method Name: test_canica_square_img


Project Name: metric-learn/metric-learn
Commit Name: f407bacc796320196269a5254443bd705acca166
Time: 2019-05-24
Author: 31916524+wdevazelhes@users.noreply.github.com
File Name: metric_learn/itml.py
Class Name: _BaseITML
Method Name: _fit