How to Get Feature Importances from Any Sklearn Pipeline
I use them in basically every data science project I work on. But, easily getting the feature importance is way more difficult than it needs to be. In this tutorial, I'll walk through how to access individual feature names and their coefficients from a Pipeline. Let's start with a super simple pipeline that applies a single featurization step followed by a classifier. Here we use the excellent datasets python package to quickly access the imdb sentiment data.
Oct-12-2020, 15:15:15 GMT
- Technology: