Open fabioscantamburlo opened 2 days ago
I am not super sure what you mean when you refer to the IQR technique, could you elaborate on it and also explain why it is so beneficial in ML pipelines?
Hello Vincent!
Yeah happy to do that.
IQR TRICK The idea is to use the following approach: Credits
It is a rather simple methodology but in some cases I think it is a nice starting point to get rid of some crazy values in the data without having a specific domain knowledge about the features.
In the proposed transformer, the idea is just to take the "IQR identified outliers" and replace them with some specific values.
The RobustScaler in scikit-learn is built around more or less the same idea, resulting in a scaling without considering the values flagged as outliers.
Hello,
In my Kaggle journey I use quite often the IQR technique to fill out-of-scale values with predefined or data driven values.
I already have a scikit-compatible implementation of such a method that I use in pipelines to easy validate my models against KFold.
I think that it would be a waste of code to do not include this feature in Sklego, so I'm proposing it to the community. :people_holding_hands:
Use case scenario:
In this example I decide to fill the values with the column mean (excluding the out-of-scale values detected by IQR) After transformation:
Do you think such feature will add value to the lego toolkit?