Note
Go to the end to download the full example code or to run this example in your browser via Binder
Plot feature importance with Randomforest#
plot the features importance with RandomForest estimator
# Author: L.Kouadio
# Licence: BSD-3-clause
import matplotlib.pyplot as plt
plt.style.use ('classic')
from watex.datasets import fetch_data
from watex.exlib.sklearn import RandomForestClassifier
from watex.utils.plotutils import plot_rf_feature_importances
X, y = fetch_data ('bagoue analysed' )
plot_rf_feature_importances (
RandomForestClassifier(), X=X, y=y , sns_style=False)

Total running time of the script: ( 0 minutes 0.976 seconds)