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

c# SetCompatibleTextRenderingDefault must be called before the first -

c++ - Fill runtime data at compile time with templates -

C#.NET Oracle.ManagedDataAccess ConfigSchema.xsd -