Spaces:
Runtime error
Runtime error
Commit
·
1c31ce3
1
Parent(s):
5deec6f
Update app.py
Browse files
app.py
CHANGED
@@ -71,6 +71,7 @@ def aggregate(list_of_hits):
|
|
71 |
preferences = []
|
72 |
for result in list_of_hits:
|
73 |
preferences.append([doc["rank"] - 1 for doc in result])
|
|
|
74 |
|
75 |
preferences = np.array(preferences)
|
76 |
y_optimal = KemenyOptimalAggregator().aggregate(preferences)
|
|
|
71 |
preferences = []
|
72 |
for result in list_of_hits:
|
73 |
preferences.append([doc["rank"] - 1 for doc in result])
|
74 |
+
print([doc["docid"] for doc in result])
|
75 |
|
76 |
preferences = np.array(preferences)
|
77 |
y_optimal = KemenyOptimalAggregator().aggregate(preferences)
|