How neural networks are learning to decode information transmitted along neurons