From the neuron doctrine to neural networks