Hi.. I am trying to plot the relative importance from my XGBoost result. However, my result plot does not show the cluster/cluster colour of each variable. How can I make the culster colour show up in the plot?
#view variable importance plot
mat <- xgb.importance(feature_names = colnames(training_set), model = xgb1) xgb.plot.importance(importance_matrix = mat[1:20], xlab = "Relative importance")