M
M
MaxBat2021-09-02 20:08:48
Neural networks
MaxBat, 2021-09-02 20:08:48

How to implement this simple neural network in code?

Two similar questions.

1)
I have an array.
For example How to build a neural network with len(array) neurons on the first layer, so that each neuron takes one element of the array. The first neuron in the layer took the first element of the array as input, and so on. Clearly in one of the attached pictures. 2) There are n neurons on the output layer of the neural network, each of which stores any number, how can I "collect" these values ​​into an array. For example, an output layer of 2 neurons. The first neuron stores 2, the other one stores 78, how do I get the array [2,78] as the return of this neural network? Visual image below.

array = [1, 2, 3, 1, 2, 6, 7, 8]





6131051524fee376031591.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vindicar, 2021-09-02
@Vindicar

If you need a ready-made implementation of neural networks, look towards tensorflow . You just have to read a lot.

A
Antonio Solo, 2021-09-03
@solotony

watch a course on creating neural networks and make
the task itself primitive for someone who has spent at least a day studying this topic

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question