41e44f86351cee490fea0bb728a3e0eb1e7670f2,pyod/models/abod.py,ABOD,fit,#ABOD#Any#Any#,94

Before Change


        self.n_train_ = X.shape[0]
        self.decision_scores_ = np.zeros([self.n_train_, 1])

        self.classes_ = 2  // default as binary classification
        if y is not None:
            check_classification_targets(y)
            self.classes_ = len(np.unique(y))
            warnings.warn(
                "y should not be presented in unsupervised learning.")

        if self.method == "fast":
            self._fit_fast()
        elif self.method == "default":
            self._fit_default()

After Change



        // Validate inputs X and y (optional)
        X = check_array(X)
        self._set_n_classes(y)

        self.X_train_ = X
        self.n_train_ = X.shape[0]
        self.decision_scores_ = np.zeros([self.n_train_, 1])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 12

Instances


Project Name: yzhao062/pyod
Commit Name: 41e44f86351cee490fea0bb728a3e0eb1e7670f2
Time: 2018-06-02
Author: yuezhao@cs.toronto.edu
File Name: pyod/models/abod.py
Class Name: ABOD
Method Name: fit


Project Name: yzhao062/pyod
Commit Name: 41e44f86351cee490fea0bb728a3e0eb1e7670f2
Time: 2018-06-02
Author: yuezhao@cs.toronto.edu
File Name: pyod/models/hbos.py
Class Name: HBOS
Method Name: fit


Project Name: yzhao062/pyod
Commit Name: 41e44f86351cee490fea0bb728a3e0eb1e7670f2
Time: 2018-06-02
Author: yuezhao@cs.toronto.edu
File Name: pyod/models/knn.py
Class Name: KNN
Method Name: fit