Jan Mühlnikel commited on
Commit
1a3e36f
·
1 Parent(s): d7f99ce

experiment

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