Up and Running
Google AutoML
and
AI Platform
Building Machine Learning and
NLP Models Using AutoML and
AI Platform for Production Environment
Navin Sabharwal
Amit Agrawal
www.bpbonline.com
FIRST EDITION 2021
Copyright BPB Publications, India
ISBN: 978-93-88511-926
All Rights Reserved. No part of this publication may be reproduced, distributed or transmitted in any form or by any means or stored in a database or retrieval system, without the prior written permission of the publisher with the exception to the program listings which may be entered, stored and executed in a computer system, but they can not be reproduced by the means of publication, photocopy, recording, or by any electronic and mechanical means.
LIMITS OF LIABILITY AND DISCLAIMER OF WARRANTY
The information contained in this book is true to correct and the best of authors and publishers knowledge. The author has made every effort to ensure the accuracy of these publications, but publisher cannot be held responsible for any loss or damage arising from any information in this book.
All trademarks referred to in the book are acknowledged as properties of their respective owners but BPB Publications cannot guarantee the accuracy of this information.
Distributors:
BPB PUBLICATIONS
20, Ansari Road, Darya Ganj
New Delhi-110002
Ph: 23254990/23254991
MICRO MEDIA
Shop No. 5, Mahendra Chambers,
DN Rd. Next to Capital Cinema,
V.T. (C.S.T.) Station, MUMBAI-400
Ph: 22078296/22078297
DECCAN AGENCIES
4-3-329, Bank Street,
Hyderabad-500195
Ph: 24756967/24756400
BPB BOOK CENTRE
Old Lajpat Rai Market,
Delhi-110006
Ph: 23861747
Published by Manish Jain for BPB Publications, Ansari Road, Darya Ganj, New Delhi-110002 and Printed by him at Repro India Ltd, Mumbai
www.bpbonline.com
Dedicated to
The people I love and the God I trust.
Navin Sabharwal
My family and friends.
Amit Agrawal
About the Authors
Navin Sabharwal is an Innovator, Thought Leader, Author and Consultant in areas of AI and Machine Learning, Cloud Computing, Big Data Analytics, Software Product Development, Engineering, and R&D. He has authored books on technologies such as GCP, AWS, Azure, AI and Machine learning systems, IBM Watson, chef, GKE, Containers, and Microservices He is reachable at
Amit Agrawal holds a master degree in Computer Science & Engineering from MNNIT (Motilal Nehru National Institute of Technology, Allahabad), one of the premier institutes of Engineering in India. He is working as a principal Data Scientist and researcher delivering solutions in the fields of AI and Machine Learning. He is responsible for designing an end-to-end solutions and an architecture for enterprise products. He is reachable at
About the Reviewer
Riya Naval is a Senior Data Scientist practicing the latest AI Technologies. She is responsible for designing, developing, and delivering end-to-end solutions based on AI. She is reachable at
Acknowledgements
To my family, Shweta and Soumil, for being always there by my side, for letting me sacrifice your time for my intellectual and spiritual pursuits, and for taking care of everything while I was immersed in authoring this book. This and other accomplishments of my life wouldnt have been possible without your love and support. To my mom and my sister for the love and support as always; without your blessings, nothing is possible.
To my coauthor, Amit, thank you for the hard work and quick turnarounds you took to deliver this book. It was an enriching experience, and I look forward to working with you again soon. To Ayush and Pallavi for making this publication happen.
To all my team members who have been a source of inspiration with their hard work, their ever-engaging technical conversations, and their technical depth. Your always flowing ideas are a source of happiness and excitement every single day. To Piyush Pandey, Sarvesh Pandey, Amit Agrawal, Vasand Kumar, Punith Krishnamurthy, Sandeep Sharma, Amit Dwivedi, Gaurav Bhardwaj, Nitin Narotra, Shakuntala, Divjot, and Vivek, thank you, for being there and making technology a fun.
To all my other coauthors, colleagues, managers, mentors, and guides, in this world of billion, it was a coincidence that brought us together, but it has been an enriching experience to be associated with you and learn from you. All the ideas and paths are an assimilation of conversations that I have had and experiences that I have shared. Thank you.
Navin
To my parents, brothers, and wife, Riya, for being always an inspiration for me.
To my coauthor, Navin, thank you for your guidance and feedback.
To my colleagues, Ayush Agarwal and Pallavi Aggarwal, thank you for your technical support.
Amit
Thank you, goddess Saraswati, for guiding me to the path of knowledge and spirituality.
Asato Ma Sad Gamaya, Tamaso Ma JyotirGamaya, Mrityor Ma AmritamGamaya
Lead us from ignorance to truth, lead us from darkness to light, lead us from Illusion to Reality
Preface
Google AutoML and AI Platform are power tools offered by Google Compute Platform for developers to create a compelling AI and Machine Learning applications with ease. Machine learning and deep-learning models are getting mature and accurate with a large amount of data that is being used into these models every day. With easier availability of out of the box functionality on a cloud platform, more and more developers are shifting their focus on developing analytics and machine learning based applications on the cloud platforms.
Googles AI technologies are continuously learning through enormous amounts of data such as Wikipedia Articles for QuestionAnswering Systems, Text Classification Systems, and so on.
The trickiest parts of developing and testing machine learning models and selecting the best ones that work in a particular use case are simplified by GCP for the developer community.
With the advent of Googles Architecture search algorithms that enable AutoML to automatically search and find the best model for your dataset, it is possible for a developer to design AI systems by providing an abstraction over data scientist activities such as Data Analysis, Model Identification, Training, Evaluation, and so on.
Google AutoML is one of the services from Google Cloud Platform that makes it easy for the developers to design and build machine learning models and use them across various applications. As an example, Text Classification can be used for Intent identification while designing conversation systems.