interface NatML.IMLPredictor<TOutput> : IDisposable
Predictors are lightweight primitives for making predictions with one or more MLModel instances. The IMLPredictor interface is designed specifically for working with Edge ML models, which make predictions on-device.

Making Predictions

/// <summary>
/// Make a prediction on one or more input features.
/// </summary>
/// <param name="inputs">Input features.</param>
/// <returns>Prediction output.</returns>
TOutput Predict (params MLFeature[] inputs);
This is where the magic happens. The predictor should convert input features into MLEdgeFeature instances, make predictions with one or more MLEdgeModel instances, then transform the output MLEdgeFeature instances into types that are easily used by applications.
See MLEdgeModel for more information on implementing Edge predictors.