0e7f26c9ac0f1707b42b757327ab4b9db2a57b5c,pyod/models/base.py,BaseDetector,predict_proba,#BaseDetector#Any#Any#,60
Before Change
return (pred_score > self.threshold_).astype("int").ravel()
def predict_proba(self, X_test, method="linear"):
if not self._isfitted:
NotFittedError("Model is not fitted yet")
test_scores = self.decision_function(X_test)
train_scores = self.decision_scores
if method == "linear":
After Change
in [0,1]
:rtype: array, shape (n_samples,)
check_is_fitted(self, ["decision_scores", "threshold_", "y_pred"])
test_scores = self.decision_function(X)
train_scores = self.decision_scores
In pattern: SUPERPATTERN
Frequency: 7
Non-data size: 6
Instances
Project Name: yzhao062/pyod
Commit Name: 0e7f26c9ac0f1707b42b757327ab4b9db2a57b5c
Time: 2018-05-28
Author: yuezhao@cs.toronto.edu
File Name: pyod/models/base.py
Class Name: BaseDetector
Method Name: predict_proba
Project Name: yzhao062/pyod
Commit Name: ff73b740cfabaf1e12c51a265f4fa94a346218aa
Time: 2018-05-28
Author: yuezhao@cs.toronto.edu
File Name: pyod/models/iforest.py
Class Name: IForest
Method Name: decision_function
Project Name: yzhao062/pyod
Commit Name: 0e7f26c9ac0f1707b42b757327ab4b9db2a57b5c
Time: 2018-05-28
Author: yuezhao@cs.toronto.edu
File Name: pyod/models/base.py
Class Name: BaseDetector
Method Name: predict
Project Name: yzhao062/pyod
Commit Name: 0e7f26c9ac0f1707b42b757327ab4b9db2a57b5c
Time: 2018-05-28
Author: yuezhao@cs.toronto.edu
File Name: pyod/models/base.py
Class Name: BaseDetector
Method Name: predict_rank
Project Name: yzhao062/pyod
Commit Name: ff73b740cfabaf1e12c51a265f4fa94a346218aa
Time: 2018-05-28
Author: yuezhao@cs.toronto.edu
File Name: pyod/models/lof.py
Class Name: LOF
Method Name: decision_function
Project Name: yzhao062/pyod
Commit Name: c2cc41d7cb37722ff285679176e8fae5987858c2
Time: 2018-05-28
Author: yuezhao@cs.toronto.edu
File Name: pyod/models/ocsvm.py
Class Name: OCSVM
Method Name: decision_function
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: decision_function