Skip to content

Latest commit

 

History

History
 
 

02_pytorch-api

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

PyCon2024 Workshop

2) Understanding the PyTorch API

🔗 Slides

Exercise: Implementing a logistic regression classifier in PyTorch

  1. Open the exercise/exercise-logreg.ipynb notebook and execute the code up to section "6) The training loop"
  2. Fill in the missing code in the highlighted area
  3. Then, execute the code and the remainder of the notebook

 

Tip

If you feel stuck, check out slides 24 to 29 for help pointers