Skip to content

Commit

Permalink
Update docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
hcho3 committed Oct 25, 2023
1 parent ffdc96b commit bb9d0f5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/treelite/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def load(
cls, filename: str, model_format: str, allow_unknown_field: bool = False
) -> Model:
"""
Deprecated. Please use :py:meth:`~treelite.frontend.load_xgboost_model` instead.
Deprecated; please use :py:meth:`~treelite.frontend.load_xgboost_model` instead.
Load a tree ensemble model from a file.
Parameters
Expand Down Expand Up @@ -157,7 +157,7 @@ def deprecation_warning(alt: str) -> None:
@classmethod
def from_xgboost(cls, booster: Any) -> Model:
"""
Deprecated. Please use :py:meth:`~treelite.frontend.from_xgboost` instead.
Deprecated; please use :py:meth:`~treelite.frontend.from_xgboost` instead.
Load a tree ensemble model from an XGBoost Booster object.
Parameters
Expand Down Expand Up @@ -187,7 +187,7 @@ def from_xgboost_json(
allow_unknown_field: bool = False,
) -> Model:
"""
Deprecated. Please use :py:meth:`~treelite.frontend.from_xgboost_json` instead.
Deprecated; please use :py:meth:`~treelite.frontend.from_xgboost_json` instead.
Load a tree ensemble model from a string containing XGBoost JSON.
Parameters
Expand Down Expand Up @@ -218,7 +218,7 @@ def from_xgboost_json(
@classmethod
def from_lightgbm(cls, booster):
"""
Deprecated. Please use :py:meth:`~treelite.frontend.from_lightgbm` instead.
Deprecated; please use :py:meth:`~treelite.frontend.from_lightgbm` instead.
Load a tree ensemble model from a LightGBM Booster object.
Parameters
Expand Down

0 comments on commit bb9d0f5

Please sign in to comment.