Skip to content

Commit ac20b3f

Browse files
edwardjkimlaurenyu
andauthored
Update doc/frameworks/xgboost/using_xgboost.rst
Co-authored-by: Lauren Yu <[email protected]>
1 parent a19c99c commit ac20b3f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

doc/frameworks/xgboost/using_xgboost.rst

+2-5
Original file line numberDiff line numberDiff line change
@@ -422,12 +422,9 @@ and then call its ``deploy()`` method to deploy your model for inference.
422422

423423
.. code:: python
424424
425-
from sagemaker import get_execution_role
426-
role = get_execution_role()
427-
428-
xgboos_model = XGBoostModel(
425+
xgboost_model = XGBoostModel(
429426
model_data="s3://my-bucket/my-path/model.tar.gz",
430-
role=role,
427+
role="my-role",
431428
entry_point="inference.py",
432429
framework_version="1.0-1"
433430
)

0 commit comments

Comments
 (0)