Making artificial-intelligence tools to predict what climate change will mean for extreme weather