How do we train the MP neuron model with the Learning algorithm

Source: Deep Learning on Medium

Here the goal is how we can target the threshold value b with the Brute Force search. if you are new to this, to get acquainted with what is threshold value you can skim at—————————

and for loss function skim at—————————

Here we have only one example, so we can afford the brute force search. we will give different values to the threshold (b) and predict the loss. by comparing prediction and loss we can achieve zero loss function.