IMLPredictor
interface NatML.IMLPredictor<TOutput> : IDisposable
Last updated
Was this helpful?
interface NatML.IMLPredictor<TOutput> : IDisposable
Last updated
Was this helpful?
Predictors are lightweight primitives for making predictions with one or more instances. The IMLPredictor
interface is designed specifically for working with Edge ML models, which make predictions on-device.
This is where the magic happens. The predictor should convert input features into MLEdgeFeature
(for edge predictions) or MLCloudFeature
instances depending on the type of the underlying model. Once the prediction is completed by the model, the predictor should then transform the output features into types that are easily consumed by applications.
See for more information on implementing edge predictors.
See for more information on implementing cloud predictors.