Learning from punishment

A new computational model makes sense of the cognitive processes humans use to evaluate punishment.