2024-05-15 17:57:42 发布
网友
xgboost.plot_importance(model, importance_type='gain')
我不能改变这个情节的大小。我想用适当的大小保存这个数字,以便在pdf中使用它。我想要类似的figize
figize
看起来像plot_importancereturn an ^{} object
plot_importance
ax = xgboost.plot_importance(...) fig = ax.figure fig.set_size_inches(h, w)
看起来你还可以把一个轴
fig, ax = plt.subplots(figsize=(h, w)) xgboost.plot_importance(..., ax=ax)
看起来像} object
plot_importance
return an ^{看起来你还可以把一个轴
相关问题 更多 >
编程相关推荐