24d96c7ec2d80322ceb7a084199b891c9ebf88b9,pyod/models/sod.py,SOD,_snn,#SOD#,118

Before Change


            // it has the max possible value: 65535 (max unsigned int16)
            // so it"ll be always as first index
            _count[i:, range(i+1)] = list(_count[range(i), i]) + [np.iinfo(np.uint16).max]
            for j in range(i+1, n):
                _count[i, j] = _dist(ind[i], ind[j])

        return np.flip(np.argsort(_count), axis=1)[:, range(1, self.ref_set+1)]

    def _sod(self):
        

After Change


            // but we need it temporarily to maintain indices order,
            // it has the max possible value: 65535 (max unsigned int16)
            // so it"ll be always as first index
            temp = np.sum(np.isin(ind, ind[i]), axis=1).ravel()
            temp[i] = np.iinfo(np.uint16).max
            _count[i] = temp

        return np.flip(np.argsort(_count), axis=1)[:, range(1, self.ref_set + 1)]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: yzhao062/pyod
Commit Name: 24d96c7ec2d80322ceb7a084199b891c9ebf88b9
Time: 2019-03-12
Author: yalmardeny@tssg,org
File Name: pyod/models/sod.py
Class Name: SOD
Method Name: _snn


Project Name: uqfoundation/mystic
Commit Name: 5aa02316482e48940e1b79423b713337b4911fb7
Time: 2015-10-13
Author: mmckerns@968178ea-60bd-409e-af13-df8a517b6005
File Name: mystic/svmtools.py
Class Name:
Method Name: KernelMatrix


Project Name: scikit-image/scikit-image
Commit Name: b8a5e5db6c2c0ff9540d84c11c05b21fc6023ae6
Time: 2020-05-04
Author: rfezzani@gmail.com
File Name: skimage/color/colorconv.py
Class Name:
Method Name: rgba2rgb