Doc AWS SDK Examples リポジトリには、他にも SDK の例があります。 AWS GitHub
翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。
AWS SDK SageMaker を使用して でモデルを作成する
次のコード例は、 でモデルを作成する方法を示しています SageMaker。
アクション例は、より大きなプログラムからのコードの抜粋であり、コンテキスト内で実行する必要があります。次のコード例で、このアクションのコンテキストを確認できます。
- SAP ABAP
-
- SDK for SAP ABAP
-
DATA lo_primarycontainer TYPE REF TO /aws1/cl_sgmcontainerdefn.
"Create an ABAP object for the container image based on input variables."
CREATE OBJECT lo_primarycontainer
EXPORTING
iv_image = iv_container_image
iv_modeldataurl = iv_model_data_url.
"Create an Amazon SageMaker model."
TRY.
oo_result = lo_sgm->createmodel( " oo_result is returned for testing purposes. "
iv_executionrolearn = iv_execution_role_arn
iv_modelname = iv_model_name
io_primarycontainer = lo_primarycontainer
).
MESSAGE 'Model created.' TYPE 'I'.
CATCH /aws1/cx_sgmresourcelimitexcd.
MESSAGE 'You have reached the limit on the number of resources.' TYPE 'E'.
ENDTRY.