davechallis / rust-xgboost

Rust bindings for XGBoost.
MIT License
102 stars 37 forks source link

Incorrect sequence of updaters #7

Closed infinite-Joy closed 2 years ago

infinite-Joy commented 5 years ago

When using the xgboost module with the basic example I am getting the below warning

[12:49:10] DANGER AHEAD: You have manually specified `updater` parameter. The `tree_method` parameter will be ignored. Incorrect sequence of updaters will produce undefined behavior. For common uses, we recommend using `tree_method` parameter instead.
[12:49:10] src/tree/updater_prune.cc:74: tree pruning end, 1 roots, 0 extra nodes, 0 pruned nodes, max_depth=0
[0] test-error:0    train-error:0.2
[12:49:10] src/tree/updater_prune.cc:74: tree pruning end, 1 roots, 0 extra nodes, 0 pruned nodes, max_depth=0
[1] test-error:0    train-error:0.2
davechallis commented 5 years ago

Good spot, I think that's a new warning from a recent xgboost patch version update.

I'll work on fixing this when I start work on getting things working with xgboost 0.82 - this has quite a few API/parameter changes too.