Jan Mühlnikel
commited on
Commit
·
2eaf511
1
Parent(s):
cce39ff
experiment
Browse files
functions/calc_matches.py
CHANGED
@@ -16,8 +16,11 @@ def calc_matches(filtered_df, project_df, similarity_matrix, top_x):
|
|
16 |
filtered_indices = filtered_df.index.to_list()
|
17 |
project_indices = project_df.index.to_list()
|
18 |
|
19 |
-
|
20 |
-
|
|
|
|
|
|
|
21 |
|
22 |
"""
|
23 |
p1_df = filtered_df.loc[top_col_indices].copy()
|
|
|
16 |
filtered_indices = filtered_df.index.to_list()
|
17 |
project_indices = project_df.index.to_list()
|
18 |
|
19 |
+
match_matrix = similarity_matrix[project_indices, :][:, filtered_indices]
|
20 |
+
|
21 |
+
dense_match_matrix = match_matrix.toarray()
|
22 |
+
|
23 |
+
st.write(dense_match_matrix.shape)
|
24 |
|
25 |
"""
|
26 |
p1_df = filtered_df.loc[top_col_indices].copy()
|