Adapt the number of parameters to the NN input definition.