Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

IBM

PyTorch Basics for Machine Learning

IBM via edX

Overview

This course is the first part in a two part course and will teach you the fundamentals of Pytorch while providing the necessary prerequisites you need before you build deep learning models.

We will start off with PyTorch's tensors in one dimension and two dimensions , you will learn the tensor types an operations, PyTorchs Automatic Differentiation package and integration with Pandas and Numpy. This is followed by an in-depth overview of the dataset object and transformations; this is the first step in building Pipelines in PyTorch.

In module two we will learn how to train a linear regression model. You will review the fundamentals of training your model including concepts such as loss, cost and gradient descent. You will learn the fundamentals of PyTorch including how to make a prediction using PyTorch's linear class and custom modules. Then determine loss and cost with PyTorch. Finally you will implement gradient descent via first principles.

In module three you will train a linear regression model via PyTorch's build in functionality, developing an understanding of the key components of PyTorch. This will include how to effectively train PyTorch's custom modules using the optimizer object, allowing you an effective way to train any model. We will introduce the data loader allowing you more flexibility when working with massive datasets . You will learn to save your model and training in applications such as cross validation for hyperparameter selection, early stopping and checkpoints.

In module three you will learn how to extend your model to multiple input and output dimensions in applications such as multiple linear regression and multiple output linear regression. You will learn the fundamentals of the linear object, including how it interacts with data with different dimensions and number of samples. Finally you will learn how to train these models in PyTorch.

In module four you will review linear classifiers, logistic regression and the issue of using different loss functions. You will learn how to implement logistic regression in PyTorch several ways, including using custom modules and using the sequential method. You will test your skills in a final project.

Syllabus

Module 1

  • Tensors 1D
  • Two-Dimensional Tensors
  • Derivatives In PyTorch
  • Dataset

Module 2

  • Prediction Linear Regression
  • Training Linear Regression
  • Loss
  • Gradient Descent
  • Cost
  • Training PyTorch

Module 3

  • Gradient Descent
  • Mini-Batch Gradient Descent
  • Optimization in PyTorch
  • Training and Validation
  • Early stopping

Module 4

  • Multiple Linear Regression Prediction
  • Multiple Linear Regression Training
  • Linear regression multiple outputs
  • Multiple Output Linear Regression Training

Module 5

Final project

Taught by

Joseph Santarcangelo

Related Courses

Reviews

Start your review of PyTorch Basics for Machine Learning

Never Stop Learning!

Get personalized course recommendations, track subjects and courses with reminders, and more.

Sign up for free