R
R
Roma2018-05-29 22:25:41
Neural networks
Roma, 2018-05-29 22:25:41

How to determine the number of neurons in a neural network?

I want to write a neural network for detecting network anomalies. Feedforward neural network. The data represents 12 parameters inherent in incoming packets. Those. does this mean I should have 12 input neurons, 12 neurons in the hidden layer, and 2 neurons in the output?
In this case, each neuron in the input layer will receive one parameter from the packet?
Am I understanding everything correctly or should I do it differently?
I don’t know anything about this topic yet, and I haven’t found a specific practical answer yet either in the literature or on the forums. Tell me please.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Arseny Kravchenko, 2018-05-30
@Arseny_Info

It is better not to try to solve this problem as a classification, but immediately take up approaches from anomaly detection.

I
ivodopyanov, 2018-05-30
@ivodopyanov

There is no formula for determining the size of hidden layers. Often it is determined by enumeration or based on common sense.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question