Artificial intelligence classifies supernova explosions with unprecedented accuracy