How to Safely Perform Feature Neutralization

For some time I have been investigating feature neutralization as the final step in a prediction pipeline. The idea has been, instead of just sprinkling on feature neutralization using some arbitrary neutralization proportion and testing with the validation set, or worse, live, to find the value of the proportion that optimizes for the metric I am working with. In all of my attempts so far just using the standard formulas given in various posts that can be found on chat, in the hints notebook and here in the forum, that effort has been disappointing. Those runs always end with the optimization picking a value of zero for the feature neutralization proportion, pretty much proving that standard feature neutralization is no good for my models. It does not seem to matter if the feature neutralization is performed grossly or by era.

Before @mdo made his post about a different FN take, I started to get some clues that not all linearity is bad and recently switched to using a regularized linear model to calculate the exposed components of my models. That is the trick, the optimization converges on a value of the FN proportion that is significantly greater than zero (or 0.1 for that matter).

I am not going to share any code, sorry. But I will just quickly summarize: Dont use numpy or scipy versions of pinv. Instead find, or better create, a simple linear algorithm that is regularized using both L1 and L2 constraints.

1 Like

Well then, perhaps it’s time to consider building better models, and stop throwing away entire feature groups as your user name suggests. :slight_smile:

There has got to be an art to piling one presumption on top of another presumption. Can we stick to the data science discussion, please? I would be very happy if you said something like, “that doesn’t work”, here’s why, etc. I am sure its not hard for you to quickly cook up some regularization code schemes that other people can easily utilize. I am sure people would applaud you for that.

Hit the poll I made on data science using any models pre - @mdo FN alternative take, just not using a metric that explicitly takes into account the feature exposure.

I’ll just follow suit.

1 Like