Core ML API

11 篇文章 0 订阅

Core ML API

Use the Core ML API directly to support custom workflows and advanced use cases.

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 MLFeatureProvider protocol.

To use the Core ML APIs directly:

  • Adopt the MLFeatureProvider protocol in a class or structure in your app.

  • Use MLModel methods with your MLFeatureProvider.

Topics

Machine Learning Model

MLModel

An encapsulation of all the details of your machine learning model.

Downloading and Compiling a Model on the User's Device

Distribute Core ML models to the user's device after the app is installed.

Making Predictions with a Sequence of Inputs

Integrate a recurrent neural network model to process sequences of inputs.

Model Features

MLFeatureValue

A feature's value and its type bundled as a read-only instance.

MLFeatureProvider

An interface that represents a collection of values for either a model's input or its output.

MLDictionaryFeatureProvider

A convenience wrapper for the given dictionary of data.

MLBatchProvider

An interface that represents a collection of feature providers.

MLArrayBatchProvider

A convenience wrapper for batches of feature providers.

Model Updates

MLUpdateTask

A task that updates a model with additional training data.

Personalizing a Model with On-Device Updates

Modify an updatable Core ML model by running an update task with labeled data.

Customization

Integrating Custom Layers

Integrate custom neural network layers into your Core ML app.

Creating a Custom Layer

Make your own custom layer for Core ML models.

MLCustomLayer

An interface that defines the behavior of a custom layer in your neural network model.

MLCustomModel

An interface that defines the behavior of a custom model.

Errors

MLModelError

The categories of model-specific errors.

MLModelErrorDomain

The domain for Core ML errors.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值