How to calculate neuron weights from diagram

456 Views Asked by At

I'm trying to understand some basic neural network stuff and I'm having problems with one thing: Let's assume that we have to classify two classes: red and green dots. To do that I create three lines on a diagram:
diagram

It's easy to calculate functions responsible for them from diagram:
1: y = 1/3 * x + 2
2: y = 6/7 * x + 3/7
3: y = 1/3 * x - 3

Next step is to design neural network and assign weights:
enter image description here
And thats the part I'm not sure about. Input layer weights should be taken from equations?