Integrating ML model in iOS app - (Part 1) ML model creation on Mac OS using Create ML App

Integrating ML model in iOS app - (Part 1) ML model creation on Mac OS using Create ML App

In this tutorial, we will be walking through the steps involved in creating a basic machine learning model using XCode / Create ML App and exploring how this model can be used to make predictions.

1) Open Xcode from Launch pad and create a new project

2) Click on Xcode > Open Developer Tool > Create ML

No alt text provided for this image

3) Click on Create New Document

No alt text provided for this image

4) Select Text Classification and click on Next

No alt text provided for this image

5) Enter project details and click on Next.

No alt text provided for this image

6) Click on Create

No alt text provided for this image

7) Post that screen will be displayed for Selecting training data. Select the algorithm. And choose Training data which can be either a csv file for json. For Text classifier ML model it is mandatory to have text and label as column or key name

No alt text provided for this image

8) On Training data selection classes and items identified will be shown

No alt text provided for this image

9) Click on Train button. Post that you should receive message that Training has been completed in Training tab

No alt text provided for this image

10) Once Training is completed we can evaluate our model in preview section.

No alt text provided for this image

11) Output tab shows details of ML Model along with Get button where user can save ML model

No alt text provided for this image

12) Model can be encrypted by clicking on XCode button and creating an encryption key in Utilities tab

No alt text provided for this image

13) Performance Test can be run on ML model from Performance tab

No alt text provided for this image

Note: Information shared is for educational purpose. Screen shots are from personal device

要查看或添加评论,请登录

Amit Kumar A.的更多文章

社区洞察

其他会员也浏览了