cimentadaj / ml_socsci

A work-in-progress of the notes/book 'Machine Learning for Social Science'
https://cimentadaj.github.io/ml_socsci/
6 stars 0 forks source link

Fix warnings from xgboost #20

Open cimentadaj opened 4 years ago

cimentadaj commented 4 years ago

There's a warning when running xgboost looking like this:

xgboost-win64_release_0.90/src/objective/regression_obj.cu:152: reg:linear is now deprecated in favor of reg:squarederror.

See for example, here https://github.com/uber/causalml/issues/88

I think this should fix itself once parsnip corrects for this in future versions but leaving it here just in case. You have to change it in two places.

Here: https://cimentadaj.github.io/ml_socsci/tree-based-methods.html#boosting Here: https://cimentadaj.github.io/ml_socsci/slides/day3_morning/boosting_pca.html#12