Core ML

Nadia Ahmadian
Nerd For Tech
Published in
2 min readAug 6, 2021

CoreML is Apple’s almost new machine learning framework that enables us to make our apps more intelligent.

What’s machine learning?

ML is simultaneously a problem as well as a solution.

It’s simply a field of study that allows computers to learn without being explicitly programmed.

__Arthur Samuel

Supervised Learning

It’s like computer has a teacher and in a handholding way it is told step by step what is right and what is wrong and …

An example of this is teaching a computer what is a cat. The training data is always and clearly labeled and is fed to the machine learning model and the machine learns through this data and begins to be able to do the classification that is needed. And we can us our testing data to fortunately get the desired output. Classification tends to work on discrete data. When we are working with continuous data we are more likely to use Regression.

Unsupervised Learning

Here we just feed our model a whole bunch of data and let it work them out and make a sense out of them like clustering.

Reinforcement Learning

It’s based on rewarding machines.

Core ML

Core ML essentially allows us to do two things that makes it easy to integrate machine learning into our iOS projects:

  1. Load a pre-trained model(whether it’s Caffe or torch or keras it will convert it into a .ml model file)
  2. Make predictions

It’s limited to classification & regression.

  • We can’t use user data to train our model further on the fly (No training)!
  • it’s Static
  • it’s Not Encrypted

For implementing the core ML file(.ml) into our iOS project all we have to do is to drag and drop it into our file structure and make sure that the check box of “copy items if needed is checked”. Don’t forget to import your needed frameworks like coreML and Vision.

The Vision framework performs face and face landmark detection, text detection, barcode recognition, image registration, and general feature tracking. Vision also allows the use of custom Core ML models for tasks like classification or object detection.

--

--

Nerd For Tech
Nerd For Tech

Published in Nerd For Tech

NFT is an Educational Media House. Our mission is to bring the invaluable knowledge and experiences of experts from all over the world to the novice. To know more about us, visit https://www.nerdfortech.org/.

Nadia Ahmadian
Nadia Ahmadian

Written by Nadia Ahmadian

a crazy gemini who believes in magic, aliens and impossible dreams and converts coffee into iOS apps and soon web apps

No responses yet