yzhao062 / pyod

A Python Library for Outlier and Anomaly Detection, Integrating Classical and Deep Learning Techniques
http://pyod.readthedocs.io
BSD 2-Clause "Simplified" License
8.27k stars 1.35k forks source link

QMCD normalization fix #551

Closed KulikDM closed 2 weeks ago

KulikDM commented 2 months ago

All Submissions Basics:

All Submissions Cores:

Hi, this PR addresses the Issue https://github.com/yzhao062/pyod/issues/549 All the previous functionality still exists. Notable changes include: returned decision scores are no longer normalized, better criterion for switching the scores when necessary, exposing the decision_function to correctly handle new data not seen during the OD fitting.

Note that the last change above will cause the model to hold more memory as the original dataset must be stored as variable with which to compare the new data to. This will affect a stored joblib model size if created.

If there are any issues let me know and am happy to make the necessary changes.

coveralls commented 2 months ago

Pull Request Test Coverage Report for Build 8786241040

Details


Changes Missing Coverage Covered Lines Changed/Added Lines %
pyod/models/qmcd.py 17 21 80.95%
<!-- Total: 17 21 80.95% -->
Totals Coverage Status
Change from base Build 8309419980: -0.009%
Covered Lines: 9006
Relevant Lines: 9607

💛 - Coveralls
yzhao062 commented 2 weeks ago

sorry for being late on this...

KulikDM commented 2 weeks ago

@yzhao062 no worries at all, glad this could be merged!