You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/frameworks/xgboost/using_xgboost.rst
+6-6
Original file line number
Diff line number
Diff line change
@@ -395,10 +395,10 @@ Bring your own model
395
395
396
396
You can deploy an XGBoost model that you trained outside of SageMaker by using the Amazon SageMaker XGBoost container.
397
397
Typically, you save an XGBoost model by pickling the ``Booster`` object or calling ``booster.save_model``.
398
-
The XGBoost `built-in algorithm mode<https://docs.aws.amazon.com/sagemaker/latest/dg/xgboost.html#xgboost-modes>`_
398
+
The XGBoost `built-in algorithm mode<https://docs.aws.amazon.com/sagemaker/latest/dg/xgboost.html#xgboost-modes>`_
399
399
supports both a pickled ``Booster`` object and a model produced by ``booster.save_model``.
400
400
For a sample notebook that shows to use the XGBoost built-in algorith mode to load a pre-existing XGBoost model,
401
-
see `Amazon SageMaker XGBoost Bring Your Own Model<https://github.com/awslabs/amazon-sagemaker-examples/blob/master/advanced_functionality/xgboost_bring_your_own_model/xgboost_bring_your_own_model.ipynb>`_.
401
+
see `Amazon SageMaker XGBoost Bring Your Own Model<https://github.com/awslabs/amazon-sagemaker-examples/blob/master/advanced_functionality/xgboost_bring_your_own_model/xgboost_bring_your_own_model.ipynb>`_.
402
402
403
403
You can also deploy an XGBoost model by using XGBoost as a framework.
404
404
By using XGBoost as a framework, you have more flexibility.
@@ -407,7 +407,7 @@ To deploy an XGBoost model by using XGBoost as a framework, you need to:
407
407
- Create the XGBoostModel object.
408
408
409
409
Write an inference script
410
-
"""""""""""""""""""""""""
410
+
^^^^^^^^^^^^^^^^^^^^^^^^^
411
411
412
412
You must create an inference script that implements (at least) the ``model_fn`` function that calls the loaded model to get a prediction.
413
413
@@ -417,7 +417,7 @@ For information about how to write an inference script, see `SageMaker XGBoost M
417
417
Pass the filename of the inference script as the ``entry_point`` parameter when you create the `XGBoostModel` object.
418
418
419
419
Create a XGBoostModel object
420
-
""""""""""""""""""""""""""""
420
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
421
421
422
422
Now call the ``sagemaker.xgboost.model.XGBoostModel`` constructor to create a model object,
423
423
and then call its ``deploy()`` method to deploy your model for inference.
@@ -426,14 +426,14 @@ and then call its ``deploy()`` method to deploy your model for inference.
0 commit comments