You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This Python module (NeuralNetwork.py) provides a basic implementation of a neural network. It includes various activation functions, dropout functionality, and layer management. Below, we’ll explore the key components of this neural network.
Components
1. Activation Functions:
The module defines several activation functions:
ReLU (Rectified Linear Unit): Used for hidden layers.
Softmax: Typically used for the output layer in multiclass classification problems. (in my implementation will work only as such)
Sigmoid: Commonly used for binary classification.
Tanh (Hyperbolic Tangent): Another option for hidden layers.
2. Layer Class:
The Layer class represents a single layer in the neural network.
It includes methods for forward and backward propagation.
Dropout functionality can be enabled or disabled for each layer.
3. NeuralNetwork Class:
The NeuralNetwork class manages the entire network.
You can add layers, set dropout probabilities, and train the network.
It supports both random and fixed dropout during training.