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 -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

c# SetCompatibleTextRenderingDefault must be called before the first -