git.ithinksw.org
/
philo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prettified results page. Added search results templates for grappelli and the normal...
[philo.git]
/
contrib
/
sobol
/
models.py
diff --git
a/contrib/sobol/models.py
b/contrib/sobol/models.py
index
7e11882
..
e5852d7
100644
(file)
--- 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():
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:
if value > cost:
self._favored_results += subresults
else: