Fix scikit learn cls doc. (#6041)
This commit is contained in:
parent
1fd29edf66
commit
7be2e04bd4
@ -757,7 +757,10 @@ class XGBModel(XGBModelBase):
|
|||||||
|
|
||||||
@xgboost_model_doc(
|
@xgboost_model_doc(
|
||||||
"Implementation of the scikit-learn API for XGBoost classification.",
|
"Implementation of the scikit-learn API for XGBoost classification.",
|
||||||
['model', 'objective'])
|
['model', 'objective'], extra_parameters='''
|
||||||
|
n_estimators : int
|
||||||
|
Number of boosting rounds.
|
||||||
|
''')
|
||||||
class XGBClassifier(XGBModel, XGBClassifierBase):
|
class XGBClassifier(XGBModel, XGBClassifierBase):
|
||||||
# pylint: disable=missing-docstring,invalid-name,too-many-instance-attributes
|
# pylint: disable=missing-docstring,invalid-name,too-many-instance-attributes
|
||||||
def __init__(self, objective="binary:logistic", **kwargs):
|
def __init__(self, objective="binary:logistic", **kwargs):
|
||||||
@ -1041,7 +1044,10 @@ class XGBRegressor(XGBModel, XGBRegressorBase):
|
|||||||
|
|
||||||
@xgboost_model_doc(
|
@xgboost_model_doc(
|
||||||
"scikit-learn API for XGBoost random forest regression.",
|
"scikit-learn API for XGBoost random forest regression.",
|
||||||
['model', 'objective'])
|
['model', 'objective'], extra_parameters='''
|
||||||
|
n_estimators : int
|
||||||
|
Number of trees in random forest to fit.
|
||||||
|
''')
|
||||||
class XGBRFRegressor(XGBRegressor):
|
class XGBRFRegressor(XGBRegressor):
|
||||||
# pylint: disable=missing-docstring
|
# pylint: disable=missing-docstring
|
||||||
def __init__(self, learning_rate=1, subsample=0.8, colsample_bynode=0.8,
|
def __init__(self, learning_rate=1, subsample=0.8, colsample_bynode=0.8,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user