Hidden layer weight update functionality