f78ace3e3b7fe04a449b97cbddf3c4e66937b3c7,pyod/models/lof.py,LOF,decision_function,#LOF#Any#,176

Before Change



        // Invert outlier scores. Outliers comes with higher outlier scores
        // noinspection PyProtectedMember
        if _sklearn_version_20():
            return invert_order(self.detector_._score_samples(X))
        else:
            return invert_order(self.detector_._decision_function(X))

After Change



        // Invert outlier scores. Outliers comes with higher outlier scores
        // noinspection PyProtectedMember
        if _get_sklearn_version() > 19:
            return invert_order(self.detector_._score_samples(X))
        else:
            return invert_order(self.detector_._decision_function(X))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: yzhao062/pyod
Commit Name: f78ace3e3b7fe04a449b97cbddf3c4e66937b3c7
Time: 2019-12-19
Author: zhaoy@cmu.edu
File Name: pyod/models/lof.py
Class Name: LOF
Method Name: decision_function


Project Name: yzhao062/pyod
Commit Name: 85028f28bb22d3e67ba7d9de60976f6b4a69b8a4
Time: 2019-12-18
Author: zhaoy@cmu.edu
File Name: pyod/models/lof.py
Class Name: LOF
Method Name: decision_function


Project Name: yzhao062/pyod
Commit Name: f78ace3e3b7fe04a449b97cbddf3c4e66937b3c7
Time: 2019-12-19
Author: zhaoy@cmu.edu
File Name: pyod/models/iforest.py
Class Name: IForest
Method Name: fit


Project Name: yzhao062/pyod
Commit Name: 85028f28bb22d3e67ba7d9de60976f6b4a69b8a4
Time: 2019-12-18
Author: zhaoy@cmu.edu
File Name: pyod/models/iforest.py
Class Name: IForest
Method Name: fit