I’m having trouble seeing what the threshold actually does in a single-layer perceptron. The data is usually separated no matter what the value of the threshold is. It seems a lower threshold divides the data more equally; is this what it is used for?
I’m having trouble seeing what the threshold actually does in a single-layer perceptron. The
Share
Actually, you’ll just set threshold when you aren’t using bias. Otherwise, the threshold is 0.
Remember that, a single neuron divides your input space with a hyperplane. Ok?
Now imagine a neuron with 2 inputs
X=[x1, x2], 2 weightsW=[w1, w2]and thresholdTH. The equation shows how this neuron works:this is equals to:
I.e., this is your hyperplane equation that will divides the input space.
Notice that, this neuron just work if you set manually the threshold. The solution is change TH to another weight, so:
Where the term
1.w0is your BIAS. Now you still can draw a plane in your input space without set manually a threshold (i.e, threshold is always 0). But, in case you set the threshold to another value, the weights will just adapt themselves to adjust equation, i.e., weights (INCLUDING BIAS) absorves the threshold effects.