Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Jan Mühlnikel
commited on
Commit
·
9c5b0ef
1
Parent(s):
e0bcbc8
experiment
Browse files
functions/calc_matches.py
CHANGED
@@ -54,6 +54,8 @@ def calc_matches(filtered_df, project_df, similarity_matrix, top_x):
|
|
54 |
filtered_df_index_map = {index: i for i, index in enumerate(filtered_df_indices)}
|
55 |
project_df_index_map = {index: i for i, index in enumerate(project_df_indices)}
|
56 |
|
|
|
|
|
57 |
# Select submatrix based on indices from both dataframes
|
58 |
match_matrix = similarity_matrix[filtered_df_indices, :][:, project_df_indices]
|
59 |
|
|
|
54 |
filtered_df_index_map = {index: i for i, index in enumerate(filtered_df_indices)}
|
55 |
project_df_index_map = {index: i for i, index in enumerate(project_df_indices)}
|
56 |
|
57 |
+
st.write(filtered_df_index_map)
|
58 |
+
|
59 |
# Select submatrix based on indices from both dataframes
|
60 |
match_matrix = similarity_matrix[filtered_df_indices, :][:, project_df_indices]
|
61 |
|