Before building the model, I do the scaling as follows:
X = StandardScaler(with_mean = 0, with_std = 1).fit_transform(X)
and after plotting the importance of functions
xgb.plot_importance(bst, color='red')
plt.title('importance', fontsize = 20)
plt.yticks(fontsize = 10)
plt.ylabel('features', fontsize = 20)

The problem is that instead of the names of the elements, we get f0, f1, f2, f3, etc. ...... How to return the names of objects?
thank
source
share