update of neuralNetwork. Only recognize is not implemented.