Machines learn to unearth new materials