Apple's new iOS CoreML inference engine supports Keras models!
Developers will be able to design and train model using Keras and then convert the architecture to run on the CoreML engine. I suppose you can run TensorFlow models too if you designed them w/ Keras.
Yeah, that is surprising given that keras is not a language, but a continuously changing python class. How bug complete is the conversion? What about some new features like attention? And what about the future changes in keras?
oh, you're talking about updating parameters. Maybe sending that new data home and train a new model and then update parameters across all devices in fleet.
Federated Learning. It's something Google does at the Android level, but I don't think they provide an API for app developers to train on device.
Another use case is privacy: ship a pretrained facenet style model and let it learn to map your address book to faces in your photos without your data leaving the device.
The probably ran the same tests on Android using Pixel and S8 and then on iPhone (which leveraged CoreML). I would like to see a more detailed analysis myself.
Reinforcement Learning relates to the way you train your model. Most of the time, it ends up being a feed-forward neural net (possibly with some convolutional layers), and rarely an RNN, all of which are supported.
Is python3 shipped on OS X by default? I'm not sure why they are still shipping 2.x -- anyone know if 3.x will be shipped in high sierra?
A bit disappointed that the model conversion tool only supports an older version of Keras as well (1.2.2). Keras 2.0 is pretty new but I hope they update the conversion tools for it quickly ...
I wonder if the conversion tool will be open source ... seems like they'd want to support the widest net of external models since they don't yet have a way to produce .coreml models directly. Or maybe the intent is to augment Keras/caffe/etc to support saving .coreml directly?
Both python 2 (/usr/bin/python) and python 3 (/usr/bin/python3) are shipped by default on Ubuntu.
Right now, coremltools is only available for Python 2.7 (https://pypi.python.org/pypi/coremltools), which is annoying as the entire code base I've worked on for months at my current firm is in Python 3.6. Hopefully this is updated soon for Python 3 support.
40 comments
[ 3.6 ms ] story [ 89.3 ms ] threadThis is major, if they have managed to achieve it reasonably. But before opening a Sekt, I want to see some benchmarks. :)
https://developer.apple.com/documentation/accelerate/bnns
I'd assume Apple does not allow this.
However it could be a killer feature to have easy api's for doing personalization all on device.
Another use case is privacy: ship a pretrained facenet style model and let it learn to map your address book to faces in your photos without your data leaving the device.
But nowadays every time I see ML on HN, it happens to mean ML = Machine Learning instead of ML = programming language.
http://www.acronymfinder.com/ML.html
So, same answer.
How they actually compare?
Also, some converted Core ML Models ready to use here: developer.apple.com/machine-learning
A bit disappointed that the model conversion tool only supports an older version of Keras as well (1.2.2). Keras 2.0 is pretty new but I hope they update the conversion tools for it quickly ...
I wonder if the conversion tool will be open source ... seems like they'd want to support the widest net of external models since they don't yet have a way to produce .coreml models directly. Or maybe the intent is to augment Keras/caffe/etc to support saving .coreml directly?
Right now, coremltools is only available for Python 2.7 (https://pypi.python.org/pypi/coremltools), which is annoying as the entire code base I've worked on for months at my current firm is in Python 3.6. Hopefully this is updated soon for Python 3 support.