84cd78bfa60bff9526c1010cd55cea61e9567d7f,pyod/models/sod.py,SOD,_snn,#SOD#Any#,148
Before Change
ind = knn.kneighbors(return_distance=False)
_count = np.zeros(shape=(ind.shape[0], self.ref_set_), dtype=np.uint16)
// Count the distance
for i in range(ind.shape[0]):
temp = np.sum(np.isin(ind, ind[i]), axis=1).ravel()
temp[i] = np.iinfo(np.uint16).max
_count[i] = np.argsort(temp)[::-1][1:self.ref_set_ + 1]
return _count
def _sod(self, X):
This function is called internally to perform subspace outlier
After Change
knn.fit(X)
// Get the knn index
ind = knn.kneighbors(return_distance=False)
return _snn_imp(ind, self.ref_set_)
def _sod(self, X):
This function is called internally to perform subspace outlier
detection algorithm.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: yzhao062/pyod
Commit Name: 84cd78bfa60bff9526c1010cd55cea61e9567d7f
Time: 2019-10-15
Author: yalmardeny@tssg,org
File Name: pyod/models/sod.py
Class Name: SOD
Method Name: _snn
Project Name: yzhao062/pyod
Commit Name: d9a3e2e8d7d879223613c25995907518ff1f245c
Time: 2019-06-18
Author: yalmardeny@tssg,org
File Name: pyod/models/sod.py
Class Name: SOD
Method Name: _snn
Project Name: yzhao062/pyod
Commit Name: 84cd78bfa60bff9526c1010cd55cea61e9567d7f
Time: 2019-10-15
Author: yalmardeny@tssg,org
File Name: pyod/models/sod.py
Class Name: SOD
Method Name: _snn
Project Name: shaypal5/pdpipe
Commit Name: a3e7204855a76e143a40073236c6254609f2303a
Time: 2020-02-05
Author: shaypal5@gmail.com
File Name: pdpipe/basic_stages.py
Class Name: ValDrop
Method Name: _transform