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

Time series forecasting with machine learning

So far, we have examined statistical methods with reasonable success. Now, we will proceed with modeling time series data using deep learning techniques. We will begin with mastering how to set up a window dataset. We will also cover ideas such as shuffling and batching, and see how we can build and train a neural network for our sales forecasting problem. Let’s begin by mastering how we can prepare time series data for modeling using the windowed dataset method with the aid of TensorFlow utilities:

  1. We begin by importing the libraries required:
    import tensorflow as tf
    import numpy as np

    Here, we will be using NumPy and TensorFlow to prepare and manipulate our data into the required structure for modeling.

  2. Let us create a simple dataset. Here, we are assuming the data consists of temperature values for two weeks:
    # Create an array of temperatures for 2 weeks
    temperature = np.arange(1, 15)
    print(temperature)

    When we print out...