Jan Mühlnikel
commited on
Commit
·
a46e9cf
1
Parent(s):
e54232c
experiment
Browse files
functions/calc_matches.py
CHANGED
@@ -64,10 +64,10 @@ def calc_matches(filtered_df, project_df, similarity_matrix, top_x):
|
|
64 |
|
65 |
|
66 |
# Get the values corresponding to the top k indices
|
67 |
-
top_values = match_matrix[row_indices, col_indices]
|
68 |
|
69 |
-
top_filtered_df_indices = [filtered_df_index_map[i] for i in
|
70 |
-
top_project_df_indices = [project_df_index_map[i] for i in
|
71 |
|
72 |
st.write(top_filtered_df_indices)
|
73 |
|
|
|
64 |
|
65 |
|
66 |
# Get the values corresponding to the top k indices
|
67 |
+
#top_values = match_matrix[row_indices, col_indices]
|
68 |
|
69 |
+
top_filtered_df_indices = [filtered_df_index_map[i] for i in top_col_indices]
|
70 |
+
top_project_df_indices = [project_df_index_map[i] for i in top_row_indices]
|
71 |
|
72 |
st.write(top_filtered_df_indices)
|
73 |
|