How are neural networks used when the number of inputs could be variable?

后端 未结 6 456
一生所求
一生所求 2020-12-12 21:48

All the examples I have seen of neural networks are for a fixed set of inputs which works well for images and fixed length data. How do you deal with variable length data s

6条回答
  •  眼角桃花
    2020-12-12 22:30

    Some problems could be solved by a recurrent neural network. For example, it is good for calculating parity over a sequence of inputs.

    The recurrent neural network for calculating parity would have just one input feature. The bits could be fed into it over time. Its output is also fed back to the hidden layer. That allows to learn the parity with just two hidden units.

    A normal feed-forward two-layer neural network would require 2**sequence_length hidden units to represent the parity. This limitation holds for any architecture with just 2 layers (e.g., SVM).

提交回复
热议问题