Book Image

Hands-On Neural Networks with TensorFlow 2.0

By : Paolo Galeone
Book Image

Hands-On Neural Networks with TensorFlow 2.0

By: Paolo Galeone

Overview of this book

TensorFlow, the most popular and widely used machine learning framework, has made it possible for almost anyone to develop machine learning solutions with ease. With TensorFlow (TF) 2.0, you'll explore a revamped framework structure, offering a wide variety of new features aimed at improving productivity and ease of use for developers. This book covers machine learning with a focus on developing neural network-based solutions. You'll start by getting familiar with the concepts and techniques required to build solutions to deep learning problems. As you advance, you’ll learn how to create classifiers, build object detection and semantic segmentation networks, train generative models, and speed up the development process using TF 2.0 tools such as TensorFlow Datasets and TensorFlow Hub. By the end of this TensorFlow book, you'll be ready to solve any machine learning problem by developing solutions using TF 2.0 and putting them into production.
Table of Contents (15 chapters)
Free Chapter
1
Section 1: Neural Network Fundamentals
4
Section 2: TensorFlow Fundamentals
8
Section 3: The Application of Neural Networks

Exercises

Once again, you are invited to answer all the following questions. You will struggle to find answers when the problems are hard, since this is the only way to master Estimator and Data APIs:

  1. What is an ETL process?
  2. How is an ETL process related to the tf.data API?
  3. Why can't a tf.data.Dataset object can't be manipulated directly, but every non-static method returns a new dataset object that's the result of the transformation applied?
  4. Which are the most common optimizations in the context of the tf.data API? Why is prefetching so important?
  5. Given the two datasets of the next question, which one loops faster? Explain your response.
  6. Given the following two datasets:
data = tf.data.Dataset.range(100)
data2 = tf.data.Dataset.from_generator(lambda: range(100), (tf.int32))

def l1():
for v in data:
tf.print(v)
def l2():
for v in data2:
tf.print...