0% found this document useful (0 votes)
12 views

Tutorial _ 1

Uploaded by

nihalahmad322
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Tutorial _ 1

Uploaded by

nihalahmad322
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Lahore University of Management Sciences

EE 414/517, CS 437/5317: Deep Learning


Fall 2023
Tutorial # 1: PyTorch and NumPy
This document provides a compact and super quick-access summary of the contents covered in Tutorial # 1 which can be viewed on YouTube by
clicking the hyperlink(s) at the end of the first reference i.e., (T1). The contents of the summary table below are self-explanatory. Students are
required to study the contents carefully, thoroughly, and timely as the materials covered in this document will be extensively used throughout the
course and assignments. Students are most welcome to discuss with the instructor(s) in-person and/or over email.

Topic Time Stamp References


Introduction to Colab 0 – 1 minutes (Part A) T1, J1, MB
Random Number Generator 1 – 3 minutes (Part A) T1, J1, MB
Defining NumPy arrays 3 – 7 minutes (Part A) T1, J1, JV: Chapters 2 & 3, MB
Random functions in NumPy 7 – 10 minutes (Part A) T1, J1, JV: Chapters 2 & 3, MB
Indexing and Slicing NumPy arrays 10 – 12 minutes (Part A) T1, J1, JV: Chapters 2 & 3, MB
Operations on NumPy arrays 12 – 18 minutes (Part A) T1, J1, JV: Chapters 2 & 3, MB
Defining PyTorch Tensors 18 – 21 minutes (Part A) T1, J1, PM: Chapters 1 & 2
Tensor Constructors 21 – 22 minutes (Part A) T1, J1, PM: Chapters 1 & 2
Indexing and Slicing Tensors 22 – 26 minutes (Part A) T1, J1, PM: Chapters 1 & 2
Random functions in Tensors 26 – 27 minutes (Part A) T1, J1, PM: Chapters 1 & 2
Permuting a Tensor 27 – 29 minutes (Part A) T1, J1, PM: Chapters 1 & 2
Helpful NumPy Functions 0 – 12 minutes (Part B) T1, J1, JV: Chapters 2 & 3, MB

References

• (T1) Shujah ur Rehman and Hassan Mohy-ud-Din, Tutorial # 1: PyTorch and NumPy, EE 414/517, CS 437/5317: Deep Learning, SBASSE, LUMS,
(2023). [Part A, Part B]
• (J1) Shujah ur Rehman, Ahmed Rashid Qazi, and Hassan Mohy-ud-Din, Tutorial 1 - PyTorch and Numpy.ipynb, Jupyter Notebook, (2022).
[2201 SSE Deep Learning (CS 437 S1-Lecture) Resources/Tutorials]
• (JV) Jake VanderPlas, Python Data Science Handbook: Essential Tools for Working with Data, O'Reilly Media, Inc., (2016). [Weblink]
• (PM) Pradeepta Mishra, PyTorch Recipes, Apress, Springer, (2019). [Ebook]
• (MB) Marcus D. Bloice and Andreas Holzinger Holzinger, A Tutorial on Machine Learning and Data Science Tools with Python, Machine
Learning for Health Informatics, pp 435-480, Springer, (2016). [Weblink]

Prepared and revised by: Dr. Hassan Mohy-ud-Din


Revision Date: September 3, 2023

You might also like