如何放大从XGBoost功能选择中获得的图?

时间:2019-07-22 19:33:18

标签: python matplotlib xgboost feature-extraction feature-selection

我试图使用XGboost识别功能的重要性,这是我的代码:

model = XGBClassifier()
model.fit(X, y)

# plot feature importance
plot_importance(model)
pyplot.show()

然后我得到了一个这样的图(如下所示),它太小了,我想也许是因为我的数据集中有太多特征,有没有办法放大或放大图,以便检查重要性?非常感谢。

enter image description here

0 个答案:

没有答案