ParallelModelEnsembleClient.SendAsync<TRequest> method
Submits an ensemble job for the specified model.
public Task<JsonElement> SendAsync<TRequest>(Guid modelId, TRequest request, string computeSize,
string trainEncryptionKey, string testEncryptionKey, string outputEncryptionKey,
TimeSpan? timeout = default, CancellationToken cancellationToken = default)
where TRequest : class, IParallelModelEnsembleSendRequest
| parameter | description |
|---|---|
| TRequest | The type of the job submission request. |
| modelId | The model identifier. |
| request | The job submission request containing the input and output configuration. |
| computeSize | The compute size identifier sent with the request. |
| trainEncryptionKey | The Base64 encryption key for the training data. |
| testEncryptionKey | The Base64 encryption key for the test data. |
| outputEncryptionKey | The Base64 encryption key for the output data or artifact. |
| timeout | An optional timeout for the API request. |
| cancellationToken | A token used to cancel the asynchronous operation. |
Return Value
A task that returns the job submission response.
Exceptions
| exception | condition |
|---|---|
| ParallelModelConfigurationException | A required identifier, compute size or supplied encryption key is invalid. |
| ArgumentNullException | The request is null. |
See Also
- interface IParallelModelEnsembleSendRequest
- class ParallelModelEnsembleClient
- namespace ParallelModel.Sdk.ML.Ensemble