NatML
Search…
IMLAsyncPredictor
interface NatSuite.ML.IMLAsyncPredictor<TOutput> : IDisposable
Async predictors are lightweight primitives for making asynchronous predictions with one or more MLModel instances. The IMLAsyncPredictor interface is designed specifically for working with Cloud ML models, which make predictions server-side with NatML Hub.

Making Predictions

1
/// <summary>
2
/// Make a prediction on one or more input features.
3
/// </summary>
4
/// <param name="inputs">Input features.</param>
5
/// <returns>Prediction output.</returns>
6
Task<TOutput> Predict (params MLFeature[] inputs);
Copied!
This is where the magic happens. The predictor should convert input features into MLCloudFeature instances, make predictions with one or more MLCloudModel instances, then transform the output MLCloudFeature instances into types that are easily used by applications.
See MLCloudModel for more information on implementing Cloud predictors.
Copy link