AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

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.


For .NET Core and PCL this operation is only available in asynchronous form. Please refer to CreateBatchPredictionAsync.

Namespace: Amazon.MachineLearning
Assembly: AWSSDK.MachineLearning.dll
Version: 3.x.y.z


public virtual CreateBatchPredictionResponse CreateBatchPrediction(
         CreateBatchPredictionRequest request
Type: Amazon.MachineLearning.Model.CreateBatchPredictionRequest

Container for the necessary parameters to execute the CreateBatchPrediction service method.

Return Value
The response from the CreateBatchPrediction service method, as returned by MachineLearning.


IdempotentParameterMismatchException A second request to use or change an object was not allowed. This can result from retrying a request using a parameter that was not present in the original request.
InternalServerException An error on the server occurred when trying to process a request.
InvalidInputException An error on the client occurred. Typically, the cause is an invalid input value.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms

See Also