lightgbm.plot_importance — LightGBM 4.6.0.99 documentation (original) (raw)

LightGBM

lightgbm.plot_importance(booster, ax=None, height=0.2, xlim=None, ylim=None, title='Feature importance', xlabel='Feature importance', ylabel='Features', importance_type='auto', max_num_features=None, ignore_zero=True, figsize=None, dpi=None, grid=True, precision=3, **kwargs)[source]

Plot model’s feature importances.

Parameters:

Returns:

ax – The plot with model’s feature importances.

Return type:

matplotlib.axes.Axes