Posts

Showing posts from December, 2025

Week 8-BALT 4364- Chapter 7 & 8

Image
Chapter 7 & 8 together explain how modern deep learning tools and models are built, compared, and applied in practice. The comparison between TensorFlow and PyTorch shows that while both frameworks are powerful, they are designed with slightly different priorities in mind. TensorFlow is often favored for production and deployment because of its mature ecosystem and optimization tools, while PyTorch is commonly preferred for research and experimentation due to its flexibility and intuitive design. Over time, the gap between them has narrowed, especially with TensorFlow 2.0 introducing eager execution. As a result, the choice between the two often depends more on the project goal and user preference than on strict technical limitations. From a learning perspective, PyTorch is generally considered more beginner-friendly. Its dynamic computation graphs and Python-like syntax make it easier to read, debug, and experiment with, especially for students or first-time deep learning users. C...

Week 7-BALT 4364-Chapter 6

Image
Chapter 6 introduces PyTorch as another major deep learning framework, similar to TensorFlow but often considered easier to use because of its flexibility and clear, intuitive design. The chapter highlights fast.ai’s teaching style, which emphasizes hands-on learning rather than heavy math, making PyTorch more accessible to beginners. PyTorch’s foundation is built on tensors, which are like NumPy arrays but with the added advantage of running on GPUs for faster computation. The chapter explains how to create tensors, perform operations with them, and understand why they matter in machine learning. Overall, this section sets the groundwork for understanding PyTorch by keeping the explanations simple and practical. The chapter then guides the reader through building a small neural network using the Boston Housing dataset to predict home values. It walks through loading and preparing the data, creating a simple feedforward model, and training it using Mean Squared Error and Stochastic Gr...