Artificial intelligence often seems mysterious, even magical. But in reality, many of its most impressive behaviors echo a process humans know well: learning t…