Why learn algorithms?
As an iOS developer, do you really need to know about algorithms and data structures?This question comes up a lot in one of the Slack groups I hang out in. Questions about algorithms and data...
View ArticleNew Machine Learning Books for iOS
I haven’t written much for the blog lately, but I’ve definitely been writing… Not one, but two new books on machine learning with Core ML!The first book is Machine Learning by Tutorials, for people who...
View ArticleMobileNetV2 + SSDLite with Core ML
This blog post is a lightly edited chapter from my book Core ML Survival Guide.If you’re interested in adding Core ML to your app, or you’re running into trouble getting your model to work, then check...
View ArticleAn in-depth look at Core ML 3
As you may have seen in the WWDC 2019 videos, Core ML 3 adds a lot of new stuff to machine learning on iOS. The new killer feature is on-device training of models, but it can now also run many advanced...
View ArticleOn-device training with Core ML - part 1
Machine learning on mobile gets more popular every year! WWDC 2019 gave us lots of new goodies for adding ML into our apps.One of the biggest announcements was that Core ML 3 now supports training of...
View ArticleOn-device training with Core ML - part 2
In this series of blog posts we’re taking a deep dive into the new on-device model personalization features from Core ML 3. I’ll show how to create a customizable image classifier using k-Nearest...
View ArticleOn-device training with Core ML - part 3
In this series of blog posts we’re taking a deep dive into the new on-device model personalization features from Core ML 3. I’ll show how to create a customizable image classifier using k-Nearest...
View ArticleCore ML and Combine
Over the weekend I was reading Combine: Asynchronous Programming with Swift from my friends at raywenderlich.com when it occured on me that Combine and Core ML might make a nice couple.Combine lets you...
View ArticleOn-device training with Core ML - part 4
In this series of blog posts we’re taking a deep dive into the new on-device model personalization features from Core ML 3. I’ll show how to create a customizable image classifier using k-Nearest...
View ArticleHow to convert images to MLMultiArray
I see the following questions come up a lot on Stack Overflow, the Apple developer forums, and various Slack groups:My neural network works on images but the Core ML model expects an MLMultiArray...
View ArticleUpsampling in Core ML
Resizing feature maps is a common operation in many neural networks, especially those that perform some kind of image segmentation task.One issue I ran into recently while converting a neural network...
View ArticleNew mobile neural network architectures
Over the past 18 months or so, a number of new neural network achitectures were proposed specifically for use on mobile and edge devices.It seems that pretty much everyone has figured out now that...
View ArticleApple machine learning in 2020: What's new?
2020 is the year where machine learning on mobile is no longer the hot new thing. Adding some kind of intelligence to apps has become standard practice.Fortunately, that doesn’t mean Apple has stopped...
View ArticleHow to display Vision bounding boxes
One question I get a lot is:I’m using the Vision framework to run an object detection model on iOS but the predicted bounding boxes are not being drawn in the right place. Help!This is a very common...
View ArticleThe SEFR classifier
If you thought machine learning on mobile is already a bit of a stretch, how about machine learning on microcontrollers?Take the Arduino Uno. This has an 8-bit CPU running at 16 MHz, no real floating...
View Article