Inferring learning rules from animal decision-making