python - Retrieve list of training features names from classifier -


is there way retrieve list of feature names used training of classifier, once has been trained fit method? information before applying unseen data. data used training pandas dataframe , in case, classifier randomforestclassifier.

based on documentation , previous experience, there no way list of features considered @ least @ 1 of splitting.

is concern not want use features prediction, ones used training? in case suggest list feature_importances_ after fitting , eliminate features not seem relevant. train new model relevant features , use features prediction well.


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - IE9 error '$'is not defined -