Update document. (#5572)

This commit is contained in:
Jiaming Yuan 2020-04-22 02:37:37 +08:00 committed by GitHub
parent c355ab65ed
commit f27b6f9ba6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 5 deletions

View File

@ -133,7 +133,8 @@ Most of the objective functions implemented in XGBoost can be run on GPU. Follo
Objective will run on GPU if GPU updater (``gpu_hist``), otherwise they will run on CPU by
default. For unsupported objectives XGBoost will fall back to using CPU implementation by
default.
default. Note that when using GPU ranking objective, the result is not deterministic due
to the non-associative aspect of floating point summation.
Metric functions
===================

View File

@ -296,10 +296,6 @@ class XGBModel(XGBModelBase):
# 2. Return whatever in `**kwargs`.
# 3. Merge them.
params = super().get_params(deep)
if hasattr(self, '__copy__'):
warnings.warn('Calling __copy__ on Scikit-Learn wrapper, ' +
'which may disable data cache and result in ' +
'lower performance.')
cp = copy.copy(self)
cp.__class__ = cp.__class__.__bases__[0]
params.update(cp.__class__.get_params(cp, deep))