bff3a821338448dbec209163b1eff1096ad4f3f8,pyod/models/ocsvm.py,OCSVM,fit,#OCSVM#Any#Any#Any#,112
Before Change
**params)
// invert decision_scores_. Outliers comes with higher outlier scores
self.decision_scores_ = self.detector_.decision_function(X) * -1
self._process_decision_scores()
return self
def decision_function(self, X):
After Change
**params)
// Invert decision_scores_. Outliers comes with higher outlier scores
self.decision_scores_ = invert_order(
self.detector_.decision_function(X))
self._process_decision_scores()
return self
def decision_function(self, X):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances
Project Name: yzhao062/pyod
Commit Name: bff3a821338448dbec209163b1eff1096ad4f3f8
Time: 2018-06-09
Author: yuezhao@cs.toronto.edu
File Name: pyod/models/ocsvm.py
Class Name: OCSVM
Method Name: fit
Project Name: yzhao062/pyod
Commit Name: bff3a821338448dbec209163b1eff1096ad4f3f8
Time: 2018-06-09
Author: yuezhao@cs.toronto.edu
File Name: pyod/models/iforest.py
Class Name: IForest
Method Name: fit
Project Name: yzhao062/pyod
Commit Name: bff3a821338448dbec209163b1eff1096ad4f3f8
Time: 2018-06-09
Author: yuezhao@cs.toronto.edu
File Name: pyod/models/ocsvm.py
Class Name: OCSVM
Method Name: decision_function
Project Name: yzhao062/pyod
Commit Name: bff3a821338448dbec209163b1eff1096ad4f3f8
Time: 2018-06-09
Author: yuezhao@cs.toronto.edu
File Name: pyod/models/iforest.py
Class Name: IForest
Method Name: decision_function