Understand the reasons for the randomness of an artificial neural network and how to fix it.
Published in · 4 min read · Jan 31, 2020
--
In this short article, we will understand
- What is the randomness of an artificial neural network(ANN)?
- Why do we have randomness in ANN?
- How to fix the randomness and make a neural network stable?
- Simple code implementation in keras for consistent results from an ANN
What is the randomness of an artificial neural network(ANN)?
The randomness of an artificial neural network(ANN) is when the same neural network is trained on the same data, and it produces different results.
At times, we may have selected the training data and test data randomly, if we remove the randomness from the training data and test data, we may still get different results with every execution even with the same neural network.
This randomness in results makes the neural network unstable and unreliable, especially when sharing your code with others or showcasing your work.
Why is there randomness in artificial neural networks?