798882c255701943d530d7024d0da2db22e33cc0,pyod/models/hbos.py,HBOS,fit,#HBOS#Any#,19

Before Change


                    out_scores[j, i] = out_score[bin_ind[j] - 1]

        out_scores_sum = np.sum(out_scores, axis=1)
        self.threshold_ = scoreatpercentile(out_scores_sum,
                                            100 * (1 - self.contamination))
        self.hist = hist
        self.bin_edges = bin_edges
        self.decision_scores = out_scores_sum
        self.y_pred = (self.decision_scores > self.threshold_).astype("int")
        self._mu = np.mean(self.decision_scores)
        self._sigma = np.std(self.decision_scores)

    def decision_function(self, X):

        X = check_array(X)

After Change


        self.hist = hist
        self.bin_edges = bin_edges
        self.decision_scores = out_scores_sum
        self._process_decision_scores()
        return self

    def decision_function(self, X):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 17

Instances


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/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/knn.py
Class Name: KNN
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