Praise for AI and Machine Learning for On-Device Development
AI and Machine Learning for On-Device Development by Laurence Moroney is exactly whats needed to inspire the next generation of ML development. ML for industry software engineers has never been more accessible than through ML Kit, and this book is an excellent intro to those methods and algorithms.
Dominic Monn, Machine Learning Engineer at Doist
This book is a must-read for mobile developers interested in learning how to implement ML models on-device. It has excellent explanations with code examples to help you choose from the various options.
Margaret Maynard-Reid, ML Google Developer Expert
If you want to get started building apps using ML and AI, I highly recommend this book. It simplifies the complexity of the world of ML/AI and provides practical approaches on common AI scenarios .
Su Fu, Lead Software Engineer, Tableau
The book starts an amazing learning journey in the world of TensorFlow. Laurence Moroney did a fantastic job on introducing TensorFlow applications for on-device development through practical use cases and detailed examples.
Jialin Huang Ph.D., Sr. Quantitative User Experience Researcher at Facebook
On-device development is the last mile for AI and machine learning technology. This book shows you how.
Pin-Yu Chen, Research Staff Member, IBM Research
Once again Laurence is sharing with his charisma, insights, and knowledge of Tensorflow ecosystem a view on how to get started on the development of ML models in the mobile world. I was able to grasp the main concepts and techniques quite quickly and without difficulties. If you have an idea for an ML application and you want to put it into action, then this book is for you.
Laura Uzcategui, Software Engineer, Microsoft
Highly recommended for AI/ML engineers working on end-to-end pipelines and projects. Laurence has covered all the necessary concepts in great detail and with enough hands-on projects to keep you engaged throughout.
Vishwesh Ravi Shrimali
This is a great book to learn about machine learning on mobile devices becauses it covers both Android and iOSshowing how to implement the same type of application in both using ML Kit. The code examples are very clear and easy to follow even if you have never developed for mobile devices before. The later chapters also dive deeper into TensorFlow lite, and the book includes a chapter on how to think responsibly about applied machine learning.
Martin Kemka, Analyst, Northraine
AI and Machine Learning for On-Device Development
by Laurence Moroney
Copyright 2021 Laurence Moroney. All rights reserved.
Printed in the United States of America.
Published by OReilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
OReilly books may be purchased for educational, business, or sales promotional use. Online editions are also available for most titles (http://oreilly.com). For more information, contact our corporate/institutional sales department: 800-998-9938 or corporate@oreilly.com .
- Acquisitions Editor: Rebecca Novack
- Development Editor: Jill Leonard
- Production Editor: Daniel Elfanbaum
- Copyeditor: Charles Roumeliotis
- Proofreader: nSight, Inc.
- Indexer: Potomac Indexing, LLC
- Interior Designer: David Futato
- Cover Designer: Karen Montgomery
- Illustrator: Kate Dullea
- August 2021: First Edition
Revision History for the First Edition
- 2021-08-11: First Release
See http://oreilly.com/catalog/errata.csp?isbn=9781098101749 for release details.
The OReilly logo is a registered trademark of OReilly Media, Inc. AI and Machine Learning for On-Device Development, the cover image, and related trade dress are trademarks of OReilly Media, Inc.
The views expressed in this work are those of the authors, and do not represent the publishers views. While the publisher and the authors have used good faith efforts to ensure that the information and instructions contained in this work are accurate, the publisher and the authors disclaim all responsibility for errors or omissions, including without limitation responsibility for damages resulting from the use of or reliance on this work. Use of the information and instructions contained in this work is at your own risk. If any code samples or other technology this work contains or describes is subject to open source licenses or the intellectual property rights of others, it is your responsibility to ensure that your use thereof complies with such licenses and/or rights.
978-1-098-10174-9
[LSI]
Preface
Welcome to AI and Machine Learning for On-Device Development. Successful authors have always told me that the best book you can write is the book you want to read. So I wrote this book because I feel its essential for all mobile developers to add machine learning to their toolbox. I hope that you find it helpful on your learning journey.
Who Should Read This Book?
If youre a mobile developer who loves to write code that executes on Android or iOS and who enjoys delighting users through apps or sites, but you always were curious about how machine learning fits into your workflow, then this book is for you! This book aims to show you how the various frameworks to get you up and running quickly are a helpful first step. It also guides you when you want to go further, customizing models and looking deeper into machine learning.
Why I Wrote This Book
My goal at Google is to make AI easy for all developers, demystify the seemingly arcane mathematics, and put AI literally into everybodys hands. One key to this is to empower mobile developers, be they Android or iOS, to open new mobile paradigms using machine learning.
Theres an old joke that in the early days of the internet, common wisdom and advice was to not talk to strangers, and you most certainly should never get into an unfamiliar car. However, nowadays, thanks to the change in paradigm, we happily summon strangers from the internet and get into their cars! This behavior was made possible by mobile internet-connected computing devices. Thus, how we do things has changed forever.
The next wave of new things that we can do with our computing devices will be powered by machine learning. I can only guess what they might be! So I wrote this book to help you, dear reader, navigate the plethora of choices available to you. And you will be the person who could write the app that could change everything. I cant wait to see what you do with it!
Navigating This Book
Its really up to you how you want to read it. If you are a mobile developer who wants to understand machine learning, you can simply start at the beginning and work your way through. If you want to sample particular getting started technologies such as ML Kit or Create ML, there are dedicated chapters for them. Towards the end of the book, I discuss technologies and techniques you need to consider when youre further along in your journey, such as multiple model hosting with Firebase and tools you need to consider for fairness in AI.
Technology You Need to Understand
This book will give you a straightforward introduction to machine learning (ML) before going deeper into using models on mobile devices. Should you want to go deeper into ML, you can use my book AI and Machine Learning for Coders