Neural Networks, Machine Learning, Deep Learning, Computer Vision, Data Science.
This is the optimal value. What if there was a prediction error? In this case, we must make a change to the network. But what exactly to change? It is the network weights. For updating the network weights, there is a method called update_weights(weights, predicted, idx) defined from line 13 to 14.