Write pure NumPy functions for a dense layer's forward pass (Z = WX + b), and implement ReLU (for the hidden layer) and Sigmoid (for the output layer) activation functions. Test them with dummy weights and a small batch of wine data to ensure matrix shapes align perfectly.
Write pure NumPy functions for a dense layer's forward pass (Z = WX + b), and implement ReLU (for the hidden layer) and Sigmoid (for the output layer) activation functions. Test them with dummy weights and a small batch of wine data to ensure matrix shapes align perfectly.