/AWS1/IF_ML=>CREATEBATCHPREDICTION()¶
About CreateBatchPrediction¶
Generates predictions for a group of observations. The observations to process exist in one or more data files referenced
by a DataSource. This operation creates a new BatchPrediction, and uses an MLModel and the data
files referenced by the DataSource as information sources.
CreateBatchPrediction is an asynchronous operation. In response to CreateBatchPrediction,
Amazon Machine Learning (Amazon ML) immediately returns and sets the BatchPrediction status to PENDING.
After the BatchPrediction completes, Amazon ML sets the status to COMPLETED.
You can poll for status updates by using the GetBatchPrediction operation and checking the Status parameter of the result. After the COMPLETED status appears,
the results are available in the location specified by the OutputUri parameter.
Method Signature¶
METHODS /AWS1/IF_ML~CREATEBATCHPREDICTION
IMPORTING
!IV_BATCHPREDICTIONID TYPE /AWS1/ML_ENTITYID OPTIONAL
!IV_BATCHPREDICTIONNAME TYPE /AWS1/ML_ENTITYNAME OPTIONAL
!IV_MLMODELID TYPE /AWS1/ML_ENTITYID OPTIONAL
!IV_BATCHPREDICTIONDATASRCID TYPE /AWS1/ML_ENTITYID OPTIONAL
!IV_OUTPUTURI TYPE /AWS1/ML_S3URL OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ml_crebtcprediction01
RAISING
/AWS1/CX_ML_IDEMPOTENTPRMMIS00
/AWS1/CX_ML_INTERNALSERVEREX
/AWS1/CX_ML_INVALIDINPUTEX
/AWS1/CX_ML_CLIENTEXC
/AWS1/CX_ML_SERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_batchpredictionid TYPE /AWS1/ML_ENTITYID /AWS1/ML_ENTITYID¶
A user-supplied ID that uniquely identifies the
BatchPrediction.
iv_mlmodelid TYPE /AWS1/ML_ENTITYID /AWS1/ML_ENTITYID¶
The ID of the
MLModelthat will generate predictions for the group of observations.
iv_batchpredictiondatasrcid TYPE /AWS1/ML_ENTITYID /AWS1/ML_ENTITYID¶
The ID of the
DataSourcethat points to the group of observations to predict.
iv_outputuri TYPE /AWS1/ML_S3URL /AWS1/ML_S3URL¶
The location of an Amazon Simple Storage Service (Amazon S3) bucket or directory to store the batch prediction results. The following substrings are not allowed in the
s3 keyportion of theoutputURIfield: ':', '//', '/./', '/../'.Amazon ML needs permissions to store and retrieve the logs on your behalf. For information about how to set permissions, see the Amazon Machine Learning Developer Guide.
Optional arguments:¶
iv_batchpredictionname TYPE /AWS1/ML_ENTITYNAME /AWS1/ML_ENTITYNAME¶
A user-supplied name or description of the
BatchPrediction.BatchPredictionNamecan only use the UTF-8 character set.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_ml_crebtcprediction01 /AWS1/CL_ML_CREBTCPREDICTION01¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->createbatchprediction(
iv_batchpredictiondatasrcid = |string|
iv_batchpredictionid = |string|
iv_batchpredictionname = |string|
iv_mlmodelid = |string|
iv_outputuri = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_entityid = lo_result->get_batchpredictionid( ).
ENDIF.