Please note that this repository is not being maintained anymore.
This is the code repository for Mastering TensorFlow 1.x, published by Packt. It contains all the supporting project files necessary to work through the book from start to finish.
TensorFlow is the most popular numerical computation library built from the ground up for distributed, cloud, and mobile environments. TensorFlow represents the data as tensors and the computation as graphs.
This book is a comprehensive guide that lets you explore the advanced features of TensorFlow 1.x. Gain insight into TensorFlow Core, Keras, TF Estimators, TFLearn, TF Slim, Pretty Tensor, and Sonnet. Leverage the power of TensorFlow and Keras to build deep learning models, using concepts such as transfer learning, generative adversarial networks, and deep reinforcement learning. Throughout the book, you will obtain hands-on experience with varied datasets, such as MNIST, CIFAR-10, PTB, text8, and COCO-Images.
You will learn the advanced features of TensorFlow1.x, such as distributed TensorFlow with TF Clusters, deploy production models with TensorFlow Serving, and build and deploy TensorFlow models for mobile and embedded devices on Android and iOS platforms. You will see how to call TensorFlow and Keras API within the R statistical software, and learn the required techniques for debugging when the TensorFlow API-based code does not work as expected.
The book helps you obtain in-depth knowledge of TensorFlow, making you the go-to person for solving artificial intelligence problems. By the end of this guide, you will have mastered the offerings of TensorFlow and Keras, and gained the skills you need to build smarter, faster, and efficient machine learning and deep learning systems.
The code relies on datasetslib, that is added as a submodule and available in datasetslib folder. To checkout the code with the submoudles use the --recurse-submoudles switch as follows:
git clone --recurse-submodules [email protected]:armando-fandango/Mastering-TensorFlow.git
All of the code is organized into folders. Each folder starts with a number followed by the application name. For example, Chapter02.
The code will look like the following:
from datasetslib.ptb import PTBSimple
ptb = PTBSimple()
ptb.load_data()
print('Train :',ptb.part['train'][0:5])
print('Test: ',ptb.part['test'][0:5])
print('Valid: ',ptb.part['valid'][0:5])
print('Vocabulary Length = ',ptb.vocab_len)
- We assume that you are familiar with coding in Python and the basics of TensorFlow and Keras.
- If you haven't done already, then install Jupyter Notebooks, TensorFlow, and Keras.
- Download the code bundle for this book that contains the Python, R, and notebook code files.
- Practice with the code as you read along the text and try exploring by modifying the provided sample code.
- To practice the Android chapter, you will need Android Studio and an Andrioid device.
- To practice the iOS chapter, you will need an Apple computer with Xcode and an Apple device.
- To practice the TensorFlow chapter, you will need Docker and Kubernetes installed. Instruction for installing Kubernetes and Docker on Ubuntu are provided in the book.