[Breaking] Update sklearn interface. (#4929)

* Remove nthread, seed, silent. Add tree_method, gpu_id, num_parallel_tree. Fix #4909.
* Check data shape. Fix #4896.
* Check element of eval_set is tuple. Fix #4875
*  Add doc for random_state with hogwild. Fixes #4919
This commit is contained in:
Jiaming Yuan
2019-10-12 02:50:09 -04:00
committed by GitHub
parent c2cce4fac3
commit 4bbf062ed3
5 changed files with 177 additions and 128 deletions

View File

@@ -601,7 +601,7 @@ class LearnerImpl : public Learner {
gbm_->Configure(args);
if (this->gbm_->UseGPU()) {
if (cfg_.find("gpu_id") == cfg_.cend()) {
if (generic_param_.gpu_id == -1) {
generic_param_.gpu_id = 0;
}
}