Instantaneously trained neural networks