Community Tools for CoreML
Core ML is an Apple framework which allows developers to simply and easily integrate machine learning (ML) models into apps running on Apple devices (including iOS, watchOS, macOS, and tvOS). Core ML introduces a public file format (.mlmodel) for a broad set of ML methods including deep neural networks (both convolutional and recurrent), tree ensembles with boosting, and generalized linear models. Models in this format can be directly integrated into apps through Xcode.
coremltools in a python package for creating, examining, and testing models in the .mlmodel format. In particular, it can be used to:
- Convert existing models to .mlmodel format from popular machine learning tools including Keras, Caffe, scikit-learn, libsvm, and XGBoost.
- Express models in .mlmodel format through a simple API.
- Make predictions with an .mlmodel (on select platforms for testing purposes).
The method for installing
coremltools follows the
standard python package installation steps.
Once you have set up a python environment, run:
pip install -U coremltools
The package documentation contains more details on how to use coremltools.
coremltools has the following dependencies:
- numpy (1.12.1+)
- protobuf (3.1.0+)
In addition, it has the following soft dependencies that are only needed when you are converting models of these formats:
- Keras (==1.2.2) with Tensorflow (1.0.x, 1.1.x)
- Xgboost (0.6+)
- scikit-learn (0.15+)
Copyright (c) 2017, Apple Inc. All rights reserved.
Use of this source code is governed by the 3-Clause BSD License that can be found in the LICENSE.txt file.
Release history Release notifications
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size coremltools-0.3.0-py2.7-none-any.whl (1.4 MB)||File type Wheel||Python version py2.7||Upload date||Hashes View hashes|
Hashes for coremltools-0.3.0-py2.7-none-any.whl