Week 6
In this chapter, we were introduced to PyTorch, a dynamic and beginner-friendly machine learning library created by Facebook's AI Research Lab. The instructional style focused on hands-on learning, the same style championed by fast.ai, where students were encouraged to get their hands dirty with creating actual tools instead of being bogged down by theory. We began by learning about tensors, multi-dimensional arrays that can be computed on GPUs for speed. We went over basic tensor operations like addition and multiplication, and immediately applied them to a real task: housing price prediction on the Boston Housing dataset. We gradually prepared the data, defined a simple neural network (SimpleNet), trained it using Mean Squared Error (MSE) loss and Stochastic Gradient Descent (SGD) optimizer, and evaluated its performance on unseen test data. The chapter also included a concise Q&A section that clarified such key concepts as epochs, the need for separate training and test sets...