MLModel
abstract class MLModel
Last updated
Was this helpful?
abstract class MLModel
Last updated
Was this helpful?
The MLModel
class abstracts a self-contained machine learning model, containing a computation graph for making predictions along with feature type information and metadata.
NatML offers two types of models depending on where predictions are made:
which performs predictions in the Hub cloud.
which performs predictions locally.
Models provide information about their expected input and output feature types. This type information is crucial for writing some model predictors.
The model provides its expected input feature types. Typically, a predictor will handle any necessary conversions of your input feature so that it matches the type that the model expects.
instances do not report any inputs
.
The model provides its output feature types. This information is crucial in order to convert the model's raw outputs into more usable forms by predictors.
Models expose metadata that was defined when they were created.
Models create native and/or server resources. As a result, you must dispose of the model once you are done using it.
Do not use a model once it has been disposed. Doing so will lead to undefined behaviour.
instances to not report any
outputs
.
instances to not report any
metadata
.