1def plot_feature_importances(model):
2 n_features = data_train.shape[1]
3 plt.figure(figsize=(20,20))
4 plt.barh(range(n_features), model.feature_importances_, align='center')
5 plt.yticks(np.arange(n_features), data_train.columns.values)
6 plt.xlabel('Feature importance')
7 plt.ylabel('Feature')
8