Back to Browse

Build a machine learning library from scratch using only C++ | Part 5

1.1K views
Jan 12, 2025
10:55

Building a Machine Learning Library From Scratch with C++ | Part 5: Layers Building a Layer Class in Neural Networks: Step-by-Step Guide In this tutorial, we continue our neural network series by constructing a layer class. Following our previous session where we built a neuron class, we now delve into the composition of layers as collections of neurons. We cover initializing data members, constructors, and overloading operators. Additionally, we address other essential functions like zeroing gradients and printing parameters. This comprehensive guide helps solidify your understanding as we prepare for the next lecture, where we'll build a complete neural network and train it for real-world applications. 00:00 Introduction to Neuron Class 00:17 Building the Layer Class 00:48 Constructor and Data Members 03:42 Overloading Operators 06:01 Additional Functions 07:18 Testing the Layer Class 09:41 Conclusion and Next Steps github: https://github.com/ggsharma/microgradpp

Download

1 formats

Video Formats

360pmp414.5 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.