1
1
1Tima12020-05-03 13:35:31
Neural networks
1Tima1, 2020-05-03 13:35:31

How is a neural network structured?

I don't quite understand how a neural network works. Let's say there is a logical OR operation with input data 1 and 0. After it adjusts all its weights, we will get 1 at the output. But what if the input is 0 and 1, and not 1 and 0 turns out the output will always be 0, what is wrong. Maybe I didn't understand something?
2) with inputs of 1 and 0, how do you prevent weight 5 from going to infinity and weight 6 from going to 0?
After all, this is the easiest option to get the correct answer (in our case)
dad168f54a2d4cf0b6508200eda50eef.png
Perhaps this comes from a misunderstanding of question 1, but it is never too late to clarify.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
X
xmoonlight, 2020-05-03
@xmoonlight

wiki

S
Sergey Sokolov, 2020-05-03
@sergiks

The boolean ИЛИdoesn't need a hidden "h" layer - just one is enough.
From i 1 and i 2 through the weights w 1 , w 2 and the offset b (three parameters in total), immediately to the activator function and to the exit:
b + w 1 * i 1 + w 2 * i 2
For ИЛИthe weight b = - 1, w 1 = 2, w 2 = 2
The activator function must make 0 from values ​​<= 0, and make 1 from values ​​> 0.

D
dmshar, 2020-05-03
@dmshar

I already once advised you. I repeat. Still, try to STUDY the subject of your interest on a regular basis, and not from articles on the web, even on Habré, and not snatch individual facts. And you keep grabbing. By the way, an example with logical operations for learning neural networks, launched somewhere by someone and now walking on the web, from my point of view, does nothing but harm and confuse the student. And from a practical point of view, it makes no sense at all.
There are a lot of good books out there now. Including for beginners. For example
Andrew Trask, Grokay deep learning. ,
Tariq Rashid. Building a Neural Network
Francois Chollet Deep Learning with Python
These are the books to start with.
Then you don't have to run to the forum for every sneeze.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question