feature_engine/arbitrary-outlier-capper-empty
| Pack | Severity | Fix | Versions |
|---|---|---|---|
| Feature-engine | error | none, edit by hand | All versions |
ArbitraryOutlierCapper raises ValueError("Please provide at least 1 dictionary with the capping values.") when both max_capping_dict and min_capping_dict are omitted, None, or empty.
capper = ArbitraryOutlierCapper()capper = ArbitraryOutlierCapper(max_capping_dict={"age": 100})What the rule reports
Section titled “What the rule reports”Calls to ArbitraryOutlierCapper that do not supply a non-empty max_capping_dict or min_capping_dict.
How to fix it
Section titled “How to fix it”Provide a column-to-bound mapping in max_capping_dict, min_capping_dict, or both.
Diagnostic message
Section titled “Diagnostic message”ArbitraryOutlierCapper requires at least one of max_capping_dict or min_capping_dict and raises ValueError when both are omitted or empty.See all rules in the Feature-engine pack.