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