Machine Learning Pytorch Tutorial - 國立臺灣大學
Machine Learning
Pytorch Tutorial
TA : 2023.02.20
mlta-2023-spring@
Outline
Background: Prerequisites & What is Pytorch? Training & Testing Neural Networks in Pytorch Dataset & Dataloader Tensors torch.nn: Models, Loss Functions torch.optim: Optimization Save/load models
Prerequisites
We assume you are already familiar with... 1. Python3 if-else, loop, function, file IO, class, ... refs: link1, link2, link3 2. Deep Learning Basics Prof. Lee's 1st & 2nd lecture videos from last year ref: link1, link2
Some knowledge of NumPy will also be useful!
What is PyTorch?
An machine learning framework in Python. Two main features:
N-dimensional Tensor computation (like NumPy) on GPUs Automatic differentiation for training deep neural networks
Training Neural Networks
Define Neural Network
Loss Function
Optimization Algorithm
Training
More info about the training process in last year's lecture video.
Training & Testing Neural Networks
Training
Validation
Testing
Guide for training/validation/testing can be found here.
Training & Testing Neural Networks - in Pytorch
Load Data
Step 1. torch.utils.data.Dataset & torch.utils.data.DataLoader
Training
Validation
Testing
Dataset & Dataloader
Dataset: stores data samples and expected values Dataloader: groups data in batches, enables multiprocessing
dataset = MyDataset(file) dataloader = DataLoader(dataset, batch_size, shuffle=True)
Training: True Testing: False
More info about batches and shuffling here.
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- pytorchtutorial princeton university
- introduction to pytorch
- pytorch tutorial 1 ml 2022 spring 國立臺灣大學
- numpy and torch david i inouye
- introduction to pytorch springer
- pytorch numpy like functions cheat sheet
- introduction to pytorch university of texas at brownsville
- machine learning pytorch tutorial 國立臺灣大學
- april 22 cs 231n pytorch tutorial drew kaul stanford university
- introduction to pytorch lecture 4 universitetet i oslo
Related searches
- machine learning audiobook
- matlab machine learning pdf
- probability for machine learning pdf
- machine learning testing
- ai vs machine learning vs deep learning
- machine learning vs deep learning
- machine learning and artificial intelligence
- machine learning vs ai vs deep learning
- difference between machine learning and ai
- machine learning neural networks
- machine learning vs neural network
- machine learning backpropagation