AttributeError: module 'xgboost' has no attribute 'feature_importance_'

使用xgboost时出现了问题:AttributeError: module 'xgboost' has no attribute 'feature_importance_',

经多方查找,发现为版本问题,新版本中已用get_fscore()替代了feature_importance_属性

你可能感兴趣的:(ML)