Jan Mühlnikel
commited on
Commit
·
ae68b70
1
Parent(s):
b8028b3
experiment
Browse files
functions/calc_matches.py
CHANGED
@@ -50,8 +50,6 @@ def calc_matches(filtered_df, project_df, similarity_matrix, top_x):
|
|
50 |
filtered_df_indices = filtered_df.index.to_list()
|
51 |
project_df_indices = project_df.index.to_list()
|
52 |
|
53 |
-
similarity_matrix.setdiag(0)
|
54 |
-
|
55 |
# Select submatrix based on indices from both dataframes
|
56 |
match_matrix = similarity_matrix[filtered_df_indices, :][:, project_df_indices]
|
57 |
|
|
|
50 |
filtered_df_indices = filtered_df.index.to_list()
|
51 |
project_df_indices = project_df.index.to_list()
|
52 |
|
|
|
|
|
53 |
# Select submatrix based on indices from both dataframes
|
54 |
match_matrix = similarity_matrix[filtered_df_indices, :][:, project_df_indices]
|
55 |
|