Closed
Description
Description
The docstrings for multiple methods in the Pipeline
class state that the methods "Apply transformers/samplers...". However, most of the methods ignore the samplers e.g. the predict method:
imbalanced-learn/imblearn/pipeline.py
Lines 349 to 350 in eafae67
imbalanced-learn/imblearn/pipeline.py
Lines 367 to 368 in eafae67
The behaviour appears to be correct (sampling should only be applied when fitting) but the docstrings are misleading.
Affected Methods
- predict
- predict_proba
- decision_function
- predict_log_proba
- score