Automated scientific minimization of regret