调整plot_importance图片大小,保存图片,解决savefig()打开图片空白的情况
代码如下
fig, ax = pyplot.subplots(figsize=(12,18))
plot_importance(model, max_num_features=85, height=0.4,ax=ax)
pyplot.savefig("FeatureImpotance1.jpg")
pyplot.show()
调整plot_importance图片大小,保存图片,解决savefig()打开图片空白的情况
代码如下
fig, ax = pyplot.subplots(figsize=(12,18))
plot_importance(model, max_num_features=85, height=0.4,ax=ax)
pyplot.savefig("FeatureImpotance1.jpg")
pyplot.show()