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
2 changed files with 2 additions and 5 deletions

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))