in Education by (55.8k points)
How are neural networks used when the number of inputs could be variable?

I saw a few examples of a neural network but they work for a fixed set of inputs. How can I deal with variable data length like string etc? Is there any way to encode variable data length into a fixed set of inputs and still get the generalized property of neural networks?

1 Answer

0 votes
by (55.8k points)
It is not advised to just extract some data and feeding it to the network which most people do. In practical, success and performance of a neural network depends on the Pre-processing and choosing of right features. The ANN is made for fixed feature vector length so you won't be able to use it.But you may use other classifiers such as random forest which uses a small no. of random features and creates hundreds of decision trees or can also try other solutions like using the Dynamic Time Wrapping or the interpolation.

Related questions

0 votes
asked Sep 3 in Education by JackTerrance (1.9m points)
0 votes
asked 5 days ago in Education by JackTerrance (1.9m points)