From the training output below, it looks like R squared is not calculated by the traditional formula 1 - SSE/SST, since lower error rate has lower R squared. So how is it calculated?
colsample_bytree min_child_weight RMSE Rsquared
0.4 3 16963.39 0.8799191
0.4 5 16813.24 0.8788395