Book Image

Machine Learning Using TensorFlow Cookbook

By : Luca Massaron, Alexia Audevart, Konrad Banachewicz
Book Image

Machine Learning Using TensorFlow Cookbook

By: Luca Massaron, Alexia Audevart, Konrad Banachewicz

Overview of this book

The independent recipes in Machine Learning Using TensorFlow Cookbook will teach you how to perform complex data computations and gain valuable insights into your data. Dive into recipes on training models, model evaluation, sentiment analysis, regression analysis, artificial neural networks, and deep learning - each using Google’s machine learning library, TensorFlow. This cookbook covers the fundamentals of the TensorFlow library, including variables, matrices, and various data sources. You’ll discover real-world implementations of Keras and TensorFlow and learn how to use estimators to train linear models and boosted trees, both for classification and regression. Explore the practical applications of a variety of deep learning architectures, such as recurrent neural networks and Transformers, and see how they can be used to solve computer vision and natural language processing (NLP) problems. With the help of this book, you will be proficient in using TensorFlow, understand deep learning from the basics, and be able to implement machine learning algorithms in real-world scenarios.
Table of Contents (15 chapters)
5
Boosted Trees
11
Reinforcement Learning with TensorFlow and TF-Agents
13
Other Books You May Enjoy
14
Index

To get the most out of this book

You need to have a basic understanding of neural networks, but this is not mandatory since the topics will be covered from a practical point of view and theoretical information will be provided where needed.

A working knowledge of basic machine learning algorithms and technicalities is a plus. You need a good working knowledge of Python 3. You should already know how to install packages using pip, as well as how to set up your working environment to work with TensorFlow.

The environment setup will be covered in Chapter 1, Getting Started with TensorFlow 2.x.

Download the example code files

The code bundle for the book is hosted on GitHub at https://github.com/PacktPublishing/Machine-Learning-Using-TensorFlow-Cookbook. We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing/. Check them out!

Download the color images

We also provide a PDF file that has color images of the screenshots/diagrams used in this book. You can download it here: https://static.packt-cdn.com/downloads/9781800208865_ColorImages.pdf.

Conventions used

There are a number of text conventions used throughout this book.

CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. For example; "The truncated_normal() function always picks normal values within two standard deviations of the specified mean."

A block of code is set as follows:

import TensorFlow as tf
import NumPy as np 

Any command-line input or output is written as follows:

pip install tensorflow-datasets

Bold: Indicates a new term, an important word, or words that you see on the screen, for example, in menus or dialog boxes, also appear in the text like this. For example: "TF-Agents is a library for reinforcement learning (RL) in TensorFlow."

Warnings or important notes appear like this.

Tips and tricks appear like this.