Machine Learning

A few years ago when I still used a Tom-Tom for car navigation, I was a little freaked out when it started offering suggestions on where to go to when I started the car – guessing, usually correctly, where I wanted to go. Like – how did it know I was leaving school for band practice two towns over?

Clearly, is must have been collecting data on times/days and departure locations to learn some of my habits. It felt quite invasive, but I thought it must have been on-device since I had the wifi turned off in the unit.

In Day 27 of 100 Days of Swift UI we CoreML and use a dataset to train a model, then incorporate it in an App. The most shocking thing about it was how straightforward it was. In the example, the model was trained in CreateML from XCode and only used on the device, rather than trained on it, but current iPhones have the power to do that.

Obviously there’s some amazing things that can be done with machine learning, but I’m actually more excited about the small things – perhaps just offering better defaults for user inputs.

There’s a great intro to machine learning for Apple developers here.

Leave a comment