Error get_features_name_out in getting back the feature name
I want to know the feature importance to my data, so I use permutation_importance. When I get the result, it seems the feature already decoded, and I want to know the name of my feauture using get_features_name_out
. It turns an error 'StandardScaler' object has no attribute 'get_feature_names_out'
. If I tried to interprest manually, I am afraid there is a mistake in order. It should be (3,0,1,2) in order. Smoker, age, bmi, sex .
Here is the code