Update Python documents. (#6376)

This commit is contained in:
Jiaming Yuan
2020-11-12 17:51:32 +08:00
committed by GitHub
parent c5645180a6
commit c90f968d92
4 changed files with 18 additions and 11 deletions

View File

@@ -510,7 +510,8 @@ class XGBModel(XGBModelBase):
.. code-block:: python
[xgb.callback.reset_learning_rate(custom_rates)]
callbacks = [xgb.callback.EarlyStopping(rounds=early_stopping_rounds,
save_best=True)]
"""
self.n_features_in_ = X.shape[1]
@@ -1249,7 +1250,8 @@ class XGBRanker(XGBModel):
.. code-block:: python
[xgb.callback.reset_learning_rate(custom_rates)]
callbacks = [xgb.callback.EarlyStopping(rounds=early_stopping_rounds,
save_best=True)]
"""
# check if group information is provided