Learning matter