Book Image

TensorFlow Developer Certificate Guide

By : Oluwole Fagbohun
3 (1)
Book Image

TensorFlow Developer Certificate Guide

3 (1)
By: Oluwole Fagbohun

Overview of this book

The TensorFlow Developer Certificate Guide is an indispensable resource for machine learning enthusiasts and data professionals seeking to master TensorFlow and validate their skills by earning the certification. This practical guide equips you with the skills and knowledge necessary to build robust deep learning models that effectively tackle real-world challenges across diverse industries. You’ll embark on a journey of skill acquisition through easy-to-follow, step-by-step explanations and practical examples, mastering the craft of building sophisticated models using TensorFlow 2.x and overcoming common hurdles such as overfitting and data augmentation. With this book, you’ll discover a wide range of practical applications, including computer vision, natural language processing, and time series prediction. To prepare you for the TensorFlow Developer Certificate exam, it offers comprehensive coverage of exam topics, including image classification, natural language processing (NLP), and time series analysis. With the TensorFlow certification, you’ll be primed to tackle a broad spectrum of business problems and advance your career in the exciting field of machine learning. Whether you are a novice or an experienced developer, this guide will propel you to achieve your aspirations and become a highly skilled TensorFlow professional.
Table of Contents (20 chapters)
1
Part 1 – Introduction to TensorFlow
6
Part 2 – Image Classification with TensorFlow
12
Part 3 – Natural Language Processing with TensorFlow
15
Part 4 – Time Series with TensorFlow

Fashion MNIST 2.0

By now, you are already familiar with this dataset, as we used it in Chapter 5, Image Classification with Neural Networks, and Chapter 6, Improving the Model. Now, let's see how CNNs compare to the simple neural networks we have worked with so far. We will continue in the same spirit as before. We start by importing the required libraries:

  1. We will import the requisite libraries for preprocessing, modeling, and visualizing our ML model using TensorFlow:
    import tensorflow as tf
    import numpy as np
    import matplotlib.pyplot as plt
  2. Next, we will load the Fashion MNIST dataset from TensorFlow Datasets using the load_data() function. This function returns our training and testing data consisting of NumPy arrays. The training data consists of x_train and y_train, and the test data is made up of x_test and y_test:
    (x_train,y_train),(x_test,y_test) = tf.keras.datasets.fashion_mnist.load_data()
  3. We can confirm the data size by using the len function on our training...