Amazon.MachineLearning.AmazonMachineLearningClient.PredictAsync C# (CSharp) Метод

PredictAsync() публичный Метод

Generates a prediction for the observation using the specified ML Model. Note

Not all response parameters will be populated. Whether a response parameter is populated depends on the type of model requested.

/// An error on the server occurred when trying to process a request. /// /// An error on the client occurred. Typically, the cause is an invalid input value. /// /// The subscriber exceeded the maximum number of operations. This exception can occur /// when listing objects such as DataSource. /// /// The exception is thrown when a predict request is made to an unmounted MLModel. /// /// A specified resource cannot be located. ///
public PredictAsync ( string mlModelId, string predictEndpoint, string>.Dictionary record, System cancellationToken = default(CancellationToken) ) : Task
mlModelId string A unique identifier of the MLModel.
predictEndpoint string A property of PredictRequest used to execute the Predict service method.
record string>.Dictionary A property of PredictRequest used to execute the Predict service method.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
Результат Task
        public Task<PredictResponse> PredictAsync(string mlModelId, string predictEndpoint, Dictionary<string, string> record, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var request = new PredictRequest();
            request.MLModelId = mlModelId;
            request.PredictEndpoint = predictEndpoint;
            request.Record = record;
            return PredictAsync(request, cancellationToken);
        }

Same methods

AmazonMachineLearningClient::PredictAsync ( PredictRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonMachineLearningClient