X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/55a07da1814663143cc32628edad0b4f4edb752d..e6cfcdcb0422222364657ebf223ffb6c88a6d880:/contrib/sobol/models.py?ds=inline diff --git a/contrib/sobol/models.py b/contrib/sobol/models.py index 7e11882..e5852d7 100644 --- a/contrib/sobol/models.py +++ b/contrib/sobol/models.py @@ -63,7 +63,7 @@ class Search(models.Model): self._favored_results = [] for value, subresults in grouped_results.items(): - cost = error * sum([(value - result.weight)**2 for result in results]) + cost = error * sum([(value - result.weight)**2 for result in self._favored_results]) if value > cost: self._favored_results += subresults else: