798882c255701943d530d7024d0da2db22e33cc0,pyod/models/abod.py,ABOD,fit,#ABOD#Any#,20
Before Change
self.decision_scores[i, 0] = np.var(wcos_list)
self.decision_scores = self.decision_scores.ravel() * -1
self.threshold_ = scoreatpercentile(self.decision_scores,
100 * (1 - self.contamination))
self.y_pred = (self.decision_scores > self.threshold_).astype("int")
def decision_function(self, X):
if not self._isfitted:
After Change
self.decision_scores[i, 0] = np.var(wcos_list)
self.decision_scores = self.decision_scores.ravel() * -1
self._process_decision_scores()
return self
def decision_function(self, X):
check_is_fitted(self,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 15
Instances
Project Name: yzhao062/pyod
Commit Name: 798882c255701943d530d7024d0da2db22e33cc0
Time: 2018-05-28
Author: yuezhao@cs.toronto.edu
File Name: pyod/models/abod.py
Class Name: ABOD
Method Name: fit
Project Name: yzhao062/pyod
Commit Name: 798882c255701943d530d7024d0da2db22e33cc0
Time: 2018-05-28
Author: yuezhao@cs.toronto.edu
File Name: pyod/models/hbos.py
Class Name: HBOS
Method Name: fit
Project Name: yzhao062/pyod
Commit Name: 798882c255701943d530d7024d0da2db22e33cc0
Time: 2018-05-28
Author: yuezhao@cs.toronto.edu
File Name: pyod/models/abod.py
Class Name: ABOD
Method Name: fit
Project Name: yzhao062/pyod
Commit Name: 798882c255701943d530d7024d0da2db22e33cc0
Time: 2018-05-28
Author: yuezhao@cs.toronto.edu
File Name: pyod/models/iforest.py
Class Name: IForest
Method Name: fit