Jan Mühlnikel commited on
Commit
c8d1d9b
·
1 Parent(s): a1a139d

experiment

Browse files
Files changed (1) hide show
  1. functions/calc_matches.py +2 -2
functions/calc_matches.py CHANGED
@@ -68,9 +68,9 @@ def calc_matches(filtered_df, project_df, similarity_matrix, top_x):
68
  top_values = match_matrix.data[linear_indices]
69
 
70
  # Create resulting dataframes with top matches and their similarity scores
71
- p1_df = filtered_df.iloc[top_indices[0]].copy()
72
  p1_df['similarity'] = top_values
73
- p2_df = filtered_df.iloc[top_indices[1]].copy()
74
  p2_df['similarity'] = top_values
75
 
76
  print("finished calc matches")
 
68
  top_values = match_matrix.data[linear_indices]
69
 
70
  # Create resulting dataframes with top matches and their similarity scores
71
+ p1_df = filtered_df.loc[top_indices[0]].copy()
72
  p1_df['similarity'] = top_values
73
+ p2_df = project_df.loc[top_indices[1]].copy()
74
  p2_df['similarity'] = top_values
75
 
76
  print("finished calc matches")