Save neuron weights in a file after training