decision_function() returns a numeric score for every supplied test record after an anomaly detector has been fitted. Unlike predict(), which returns binary labels, it preserves score differences that can help rank records by anomalousness. section 6.1
Use the score alongside related PyOD outputs:
- Compare decision_function() scores with predict() labels when a binary decision is also needed. section 6.1
- Use decision_scores_ for numeric scores on the training data; decision_function() applies to supplied test data. section 6.1
- Do not interpret predict_proba() as true probability merely because it rescales decision scores to values between zero and one. section 6.1
