+ 9
🤖 A.I Neural Network [Challenge]
For this challange you will be creating a fully funtional neural network each neuron has to be able to communicate with one another but "cannot" pass through another, You have to bridge a new connection. input is 4 neurons ____________ ______ v. v. v 1--------2-------3-------4 ^___________^ output is: 6 Connections 1 connects 2 2 connects 3 3 connects 4 1 bridges to 3 1 bridges to 4 2 bridges to 4 Mine https://code.sololearn.com/c4d2DRPwSgyJ/?ref=app
13 ответов
+ 3
+ 6
@ Sayan sorry your code isnt right for 4 neurons you have to accept an input and show all connections.
+ 6
for 4 neurons there would be 6 communication lines
1 connects 2
2 connects 3
3 connects 4
As my neurons cannot pass through another to communicate for example, 1 cannot communicate with 3 so a bridge needs to be made
1 then bridges to 3
1 bridges to 4
2 bridges to 4
there should be no duplications.
for example if 1 connects 2 then 2 does not need to connect 1 as is already connected
thanks
+ 6
@ Merlin exactly 👍 you have 6 communication lines if you look at it
+ 5
@ sayan yes that right 👍 can you space your numbers as its difficult to read connected12 for Connected 1>2, Thanks
+ 5
Nice work Sayan 👍
+ 2
Sorry don't get it. You mean this?
<1> -<2>
| x |
<3>-<4>
+ 2
Ultimately it is just combinations of pairs possible for numbers from 1 to n.
https://code.sololearn.com/ca74lL6vvA6O/?ref=app
+ 1
@ d stark...
see i changed the 8 neuron to 4
just see the o/p
its perfectly fine
no repeatation
+ 1
done#))
0
and why is that??
0
it gives exact o/p..
for 4 neurons
0
just change 1,9 to 1,5 in both the for loops