Retrieve list of training features names from classifier
问题 Is there a way to retrieve the list of feature names used for training of a classifier, once it has been trained with the fit method? I would like to get this information before applying to unseen data. The data used for training is a pandas DataFrame and in my case, the classifier is a RandomForestClassifier . 回答1: Based on the documentation and previous experience, there is no way to get a list of the features considered at least at one of the splitting. Is your concern that you do not want