Deep Learning with R Cookbook
Over 45 unique recipes to delve into neural network techniques using R 3.5.x
Swarna Gupta
Rehan Ali Ansari
Dipayan Sarkar
BIRMINGHAM - MUMBAI
Deep Learning with R Cookbook
Copyright 2020 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the authors, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
Commissioning Editor: Sunith Shetty
Acquisition Editor: Yogesh Deokar
Content Development Editor: Nathanya Dias
Senior Editor: Ayaan Hoda
Technical Editor: Joseph Sunil
Copy Editor: Safis Editing
Project Coordinator: Aishwarya Mohan
Proofreader: Safis Editing
Indexer: Priyanka Dhadke
Production Designer: Jyoti Chauhan
First published: February 2020
Production reference: 1210220
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.
ISBN 978-1-78980-567-3
www.packt.com
This book is dedicated to my mother, Mrs. Purnima Gupta; my father, Mr. Nandkumar Gupta; my sister, Rashmi Gupta; my brother, Rajat Gupta; and my husband, Rehan Ali Ansari. None of this would have been possible without their eternal support and motivation.
-Swarna Gupta
This book is dedicated to my mother, Mrs. Shama Rukhsana Parveen; my father, Mr. Yunus Ali Ansari; my sisters, Rubina and Shamina; my wife, Swarna; and the joy of my life, my nieces, Alvina and Fatima. Words are not sufficient to express my gratitude to all of them for cheering me and raising my spirit.
-Rehan Ali Ansari
This book is dedicated to Debomitra Kodak, Felicia Leow, Pravalika Aitipamula, and Rangarajan Narayanan who have been my support and inspiration throughout this journey. Without them, this book would not have been possible. A special thanks to Neelima Jauhari and Pravalika Aitipamula.
-Dipayan Sarkar
Packt.com
Subscribe to our online digital library for full access to over 7,000 books and videos, as well as industry-leading tools to help you plan your personal development and advance your career. For more information, please visit our website.
Why subscribe?
Spend less time learning and more time coding with practical eBooks and Videos from over 4,000 industry professionals
Improve your learning with Skill Plans built especially for you
Get a free eBook or video every month
Fully searchable for easy access to vital information
Copy and paste, print, and bookmark content
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.packt.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at customercare@packtpub.com for more details.
At www.packt.com , you can also read a collection of free technical articles, sign up for a range of free newsletters, and receive exclusive discounts and offers on Packt books and eBooks.
Foreword
Data and AI give the best hope to the toughest problems that the world faces today. Am I making a sweeping statement? Not reallyit's a modest statement of fact. From robotics to self-driving cars, farming that alleviates world hunger, to finding a solution to early diagnostics to critical illnessdeep learning is one of the most enthralling areas of discovery and disruption. It has also fuelled the transformation of numerous businesses such as media and entertainment, insurance, healthcare, retail, education, and information technology.
This book is the perfect material for every data science enthusiast who wants to understand the concepts of deep learning: with R codes explained comprehensibly, it is the best place to start. The authors have maintained a perfect balance between theoretical and practical aspects of deep learning algorithms and applications. It turned out to be a great readthanks to the easy flow of various sections such as Getting Ready, How to Do it, and How it Works.
After starting with some good insights on how to set up a deep learning environment in a local system, the authors address how the reader can leverage various cloud platforms such as AWS, Microsoft Azure, and Google Cloud to scale deep learning applications. If you are looking for some quick thoughts on any topic, you can read any chapter individually without getting bogged about the sequence.
An interesting fact about this book is that it not only covers the generic topics of deep learning such as CNN, RNN, GAN, Autoencoders but also throws light on specific state-of-the-art techniques such as transfer learning and reinforcement learning. I like the practical examples in the chapters: Working with Convolutional Networks, Deep Generative models, Working with Text and Audio and NLP. They are bound to kindle some thought-starters on what can be done using image and text data. The data sets are very aptly chosen for the examples provided.
Overall, this book is an engaging and inspiring read. I congratulate the writers of the book- Swarna, Rehan, and Dipayan for their contribution to this field of study and I look forward to more such works from them.
Pradeep Jayaraman
Head of Analytics, Adani Ports & SEZ
Contributors
About the authors
Swarna Gupta holds a BE in computer science and has 6 years' experience in data science. She is currently working with Rolls Royce as a data scientist. Her work revolves around leveraging deep learning and machine learning to create value for the business. She has extensively worked on IoT-based projects in the vehicle telematics and solar manufacturing industries. During her current association with Rolls Royce, she implemented various deep learning techniques to build advanced analytics capabilities in the aerospace domain. Swarna also manages to find the time in her busy schedule to be a regular pro-bono contributor to social organizations, helping them to solve specific business problems with the help of data science and machine learning.
Next page