Jan Mühlnikel commited on
Commit
eaf56c5
·
1 Parent(s): a88ee3f

experiment

Browse files
Files changed (1) hide show
  1. functions/calc_matches.py +2 -2
functions/calc_matches.py CHANGED
@@ -10,8 +10,8 @@ def calc_matches(filtered_df, project_df, similarity_matrix, top_x):
10
  st.write(similarity_matrix.shape)
11
 
12
  # Ensure the matrix is in a suitable format for manipulation
13
- if not isinstance(similarity_matrix, csr_matrix):
14
- similarity_matrix = csr_matrix(similarity_matrix)
15
 
16
  # Get indices from dataframes
17
  filtered_df_indices = filtered_df.index.to_list()
 
10
  st.write(similarity_matrix.shape)
11
 
12
  # Ensure the matrix is in a suitable format for manipulation
13
+ #if not isinstance(similarity_matrix, csr_matrix):
14
+ # similarity_matrix = csr_matrix(similarity_matrix)
15
 
16
  # Get indices from dataframes
17
  filtered_df_indices = filtered_df.index.to_list()