CatBoost gradient descent with increasing iterations
(Note: the discussion below involveurs the Chn_Modelling.csv dataset, the same as discussed in the XGBoost lecture for R, in the Machine Learning A-Z course.)
While training, CatBoost generates the following output during training in R:
Learning rate set to 0.5
0: learn: 0.3569667 total: 11.5ms remaining: 218ms
1: learn: 0.3420180 total: 18.1ms remaining: 163ms
2: learn: 0.3307936 total: 24ms remaining: 136ms
3: learn: 0.3261735 total: 28.1ms remaining: 113ms
4: learn: 0.3246431 total: 31.1ms remaining: 93.4ms
5: learn: 0.3213904 total: 38.4ms remaining: 89.7ms
6: learn: 0.3192931 total: 41.3ms remaining: 76.7ms
7: learn: 0.3182655 total: 47.6ms remaining: 71.3ms
...The Python lecture mentions that the Logloss error is being displayed in the left column, but I think it’s something else, at least for training in R. I believe that the "learn:" output is the size of the gradient descent step. Thoughts?
I allowed CatBoost to run for 100,000 iterations and found that the "Learn Rate" / gradient descent step doesn't yet converge.
If unspecified, the default number of iterations for CatBoost is 1000, but maximal accuracy is achieved well before that:
CatBoost
nruns allacc
1 0.811125
2 0.847000
5 0.858625
10 0.859750
20 0.859625
50 0.857000
100 0.860000
200 0.858875
500 0.861625
1000 0.861000
1500 0.861375
2000 0.860375At 10 iterations, we already have achieved an accuracy of 0.86 after K-fold validation (with K=10 and RMSE as the loss function). After that, the accuracy fluctuates around 0.86, without any significant improvement:
You can't outperform what's in the data; i.e., the dataset itself limits the predictive power, even if a very good algorithm is chosen.