normalize neural network input