Use the Core ML API directly to support custom workflows and advanced use cases.
Framework
- Core ML
Overview
In most cases, you interact only with your model's dynamically generated interface, which is created by Xcode automatically when you add a model to your Xcode project. You can use Core ML APIs directly in cases where you need to support custom workflows or advanced use cases. As an example, if you need to make predictions while asynchronously collecting input data into a custom structure, you can adopt the MLFeature
protocol.
To use the Core ML APIs directly:
Adopt the
MLFeature
protocol in a class or structure in your app.Provider Use
MLModel
methods with yourMLFeature
.Provider