# What is the appropriate way of passing a list of integers that represents the environment to a neural network's dense layer?

I'm training an RL agent using the DQN algorithm to do a specific task. The environment is represented by a list of $$10$$ integer numbers from $$0$$ to $$20$$. An example would be $$[5, 15, 8, 8, 0, \dots]$$.

Is it okay to pass the list as floats to the dense layer, or would that impede the learning process? What is the right way to go about passing integer numbers to the neural network?

• It looks like 10 numbers, it's not that much as input for dense layers. I would recommend normalizing them either to float in the range from 0 to 1 or [-1;1] depending on data specifics. Nov 16 '20 at 12:56
• This seems to help my model's performance! Nov 17 '20 at 0:45