Book Image

Machine Learning for Mobile

By : Revathi Gopalakrishnan, Avinash Venkateswarlu
Book Image

Machine Learning for Mobile

By: Revathi Gopalakrishnan, Avinash Venkateswarlu

Overview of this book

Machine learning presents an entirely unique opportunity in software development. It allows smartphones to produce an enormous amount of useful data that can be mined, analyzed, and used to make predictions. This book will help you master machine learning for mobile devices with easy-to-follow, practical examples. You will begin with an introduction to machine learning on mobiles and grasp the fundamentals so you become well-acquainted with the subject. You will master supervised and unsupervised learning algorithms, and then learn how to build a machine learning model using mobile-based libraries such as Core ML, TensorFlow Lite, ML Kit, and Fritz on Android and iOS platforms. In doing so, you will also tackle some common and not-so-common machine learning problems with regard to Computer Vision and other real-world domains. By the end of this book, you will have explored machine learning in depth and implemented on-device machine learning with ease, thereby gaining a thorough understanding of how to run, create, and build real-time machine-learning applications on your mobile devices.
Table of Contents (19 chapters)
Title Page
Copyright and Credits
About Packt
Contributors
Preface
Question and Answers
Index

Hand-on samples using Fritz


In this section, we will try using Fritz and the models that we've already created for iOS and Android using Core ML and TensorFlow for mobile and build iOS and Android mobile applications using Fritz. Along with this, we will see how to use the Fritz built-in models, such as object detection and image labeling.

Using the existing TensorFlow for mobile model in an Android application using Fritz

In this section, we are going to see how to use a TensorFlow for mobile model that we already have created in an Android mobile application using the Fritz toolkit. We are going to take the sample model that we created using TensorFlow for mobile to do the summation (a+b). We will go through the detailed steps required to achieve this objective.

Registering with Fritz

In order to use Fritz, you must sign up for an account at the Fritz web portal:

  1. Go to https://fritz.ai/
  2. Click on Login on the top menu 
  3. Click on Create an account
  4. Enter your details and submit
  5. Create a new project...