Reputation: 8631
What are the most common strategies for having variable-length input in a feed-forward neural network?
To be more specific, consider the following hypothetical scenario:
Now the question is, how do I scale it for:
P.S.: My gut-feeling is that I would need a form of making neural-networks to compose, but I don't have the slightest idea of where to start.
Upvotes: 0
Views: 367
Reputation: 363817
The simple solution is to always build vectors of some fixed, maximum number of features, and leave the inactive ones at a default value. The sensible default value is usually zero, esp. if you scale your inputs to the range [-1, 1].
Upvotes: 3