Retrieve list of training features names from classifier

前端 未结 4 1367
一整个雨季
一整个雨季 2021-01-12 03:31

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 i

4条回答
  •  温柔的废话
    2021-01-12 04:02

    You can extract feature names from a trained model as follows:

    model.get_booster().feature_names
    

提交回复
热议问题