Detection and attribution of climate change using a neural network