Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Jan Mühlnikel
commited on
Commit
•
09c16ce
1
Parent(s):
b858621
experiment
Browse files
functions/calc_matches.py
CHANGED
@@ -16,8 +16,6 @@ def calc_matches(filtered_df, project_df, similarity_matrix, top_x):
|
|
16 |
|
17 |
dense_match_matrix = match_matrix.toarray()
|
18 |
|
19 |
-
st.write(dense_match_matrix.shape)
|
20 |
-
|
21 |
flat_matrix = dense_match_matrix.flatten()
|
22 |
|
23 |
# Get the indices of the top 15 values in the flattened matrix
|
@@ -40,8 +38,6 @@ def calc_matches(filtered_df, project_df, similarity_matrix, top_x):
|
|
40 |
org_cols.append(original_col_index)
|
41 |
top_15_matches.append((value, original_row_index, original_col_index))
|
42 |
|
43 |
-
st.write(top_15_matches)
|
44 |
-
|
45 |
|
46 |
p1_df = filtered_df.loc[org_cols].copy()
|
47 |
p1_df['similarity'] = top_15_values
|
|
|
16 |
|
17 |
dense_match_matrix = match_matrix.toarray()
|
18 |
|
|
|
|
|
19 |
flat_matrix = dense_match_matrix.flatten()
|
20 |
|
21 |
# Get the indices of the top 15 values in the flattened matrix
|
|
|
38 |
org_cols.append(original_col_index)
|
39 |
top_15_matches.append((value, original_row_index, original_col_index))
|
40 |
|
|
|
|
|
41 |
|
42 |
p1_df = filtered_df.loc[org_cols].copy()
|
43 |
p1_df['similarity'] = top_15_values
|