Skip to main content

Introduction to TensorFlow in Python

Learn the fundamentals of neural networks and how to build deep learning models using TensorFlow.

Start Course for Free
4 Hours15 Videos51 Exercises33,308 Learners4300 XPDeep Learning TrackMachine Learning Scientist Track

Create Your Free Account



By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA. You confirm you are at least 16 years old (13 if you are an authorized Classrooms user).

Loved by learners at thousands of companies

Course Description

Not long ago, cutting-edge computer vision algorithms couldn’t differentiate between images of cats and dogs. Today, a skilled data scientist equipped with nothing more than a laptop can classify tens of thousands of objects with greater accuracy than the human eye. In this course, you will use TensorFlow 2.6 to develop, train, and make predictions with the models that have powered major advances in recommendation systems, image classification, and FinTech. You will learn both high-level APIs, which will enable you to design and train deep learning models in 15 lines of code, and low-level APIs, which will allow you to move beyond off-the-shelf routines. You will also learn to accurately predict housing prices, credit card borrower defaults, and images of sign language gestures.

  1. 1

    Introduction to TensorFlow


    Before you can build advanced models in TensorFlow 2, you will first need to understand the basics. In this chapter, you’ll learn how to define constants and variables, perform tensor addition and multiplication, and compute derivatives. Knowledge of linear algebra will be helpful, but not necessary.

    Play Chapter Now
    Constants and variables
    50 xp
    Defining data as constants
    100 xp
    Defining variables
    100 xp
    Basic operations
    50 xp
    Performing element-wise multiplication
    100 xp
    Making predictions with matrix multiplication
    100 xp
    Summing over tensor dimensions
    50 xp
    Advanced operations
    50 xp
    Reshaping tensors
    100 xp
    Optimizing with gradients
    100 xp
    Working with image data
    100 xp
  2. 2

    Linear models

    In this chapter, you will learn how to build, solve, and make predictions with models in TensorFlow 2. You will focus on a simple class of models – the linear regression model – and will try to predict housing prices. By the end of the chapter, you will know how to load and manipulate data, construct loss functions, perform minimization, make predictions, and reduce resource use with batch training.

    Play Chapter Now
  3. 3

    Neural Networks

    The previous chapters taught you how to build models in TensorFlow 2. In this chapter, you will apply those same tools to build, train, and make predictions with neural networks. You will learn how to define dense layers, apply activation functions, select an optimizer, and apply regularization to reduce overfitting. You will take advantage of TensorFlow's flexibility by using both low-level linear algebra and high-level Keras API operations to define and train models.

    Play Chapter Now
  4. 4

    High Level APIs

    In the final chapter, you'll use high-level APIs in TensorFlow 2 to train a sign language letter classifier. You will use both the sequential and functional Keras APIs to train, validate, make predictions with, and evaluate models. You will also learn how to use the Estimators API to streamline the model definition and training process, and to avoid errors.

    Play Chapter Now

In the following tracks

Deep LearningMachine Learning Scientist


alexandrayaroshAlex Yaroshsara-billenSara Billenmona-kayMona Khalil
Isaiah Hull Headshot

Isaiah Hull


Isaiah Hull is a senior economist in the research division at Sweden's Central Bank (Sveriges Riksbank) and the author of Machine Learning for Economics and Finance in TensorFlow 2. He holds a PhD in economics from Boston College and conducts research on computational economics, machine learning, and quantum computing.
See More

What do other learners have to say?

I've used other sites—Coursera, Udacity, things like that—but DataCamp's been the one that I've stuck with.

Devon Edwards Joseph
Lloyds Banking Group

DataCamp is the top resource I recommend for learning data science.

Louis Maiden
Harvard Business School

DataCamp is by far my favorite website to learn from.

Ronald Bowers
Decision Science Analytics, USAA