NN-SVG icon indicating copy to clipboard operation
NN-SVG copied to clipboard

Bias should be added to input layer

Open ErikSchulze1796 opened this issue 3 years ago • 4 comments

Hello Alex,

I am fairly new to the field of machine learning and found your awesome tool for NN visualization during my research. One thing that came to my mind when ticking the "Show bias button" is that the bias is not added to the input layer, or am I wrong? I get that the input features are no "real" layer but shouldn't be the bias added to the input of each neuron of each layer after the input layer, or am I wrong?

Greetings from Germany! Erik

ErikSchulze1796 avatar Jan 03 '22 16:01 ErikSchulze1796

Hi @ErikSchulze1796

Bias in the input layer is represented. It's less obvious which node is the bias in the input layer -- it could be any of them - since what distinguishes a bias unit in subsequent layers is the absence of inputs from the previous layer, but none of the units in the input layer get inputs from a previous layer because there isn't a previous layer.

Maybe we should be explicitly coloring the bias unit gray or something..

alexlenail avatar Jan 03 '22 16:01 alexlenail

Oh yes, I see it now. You're completely right. It was just a bit confusing since it was not directly distinguishable from the other nodes. Thanks for the quick answer!

ErikSchulze1796 avatar Jan 03 '22 16:01 ErikSchulze1796