Jan Mühlnikel
commited on
Commit
·
7529755
1
Parent(s):
127b334
experiment
Browse files
functions/calc_matches.py
CHANGED
@@ -38,6 +38,7 @@ def calc_matches(filtered_df, project_df, similarity_matrix, top_x):
|
|
38 |
|
39 |
# multi_project_matching
|
40 |
def calc_matches(filtered_df, project_df, similarity_matrix, top_x):
|
|
|
41 |
st.write(filtered_df.shape)
|
42 |
st.write(project_df.shape)
|
43 |
st.write(similarity_matrix.shape)
|
@@ -83,10 +84,8 @@ def calc_matches(filtered_df, project_df, similarity_matrix, top_x):
|
|
83 |
p1_df = filtered_df.loc[top_filtered_df_indices].copy()
|
84 |
p1_df['similarity'] = top_values
|
85 |
|
86 |
-
st.dataframe(p1_df)
|
87 |
p2_df = project_df.loc[top_project_df_indices].copy()
|
88 |
p2_df['similarity'] = top_values
|
89 |
-
st.dataframe(p2_df)
|
90 |
print("finished calc matches")
|
91 |
|
92 |
return p1_df, p2_df
|
|
|
38 |
|
39 |
# multi_project_matching
|
40 |
def calc_matches(filtered_df, project_df, similarity_matrix, top_x):
|
41 |
+
st.dataframe(project_df.head(5))
|
42 |
st.write(filtered_df.shape)
|
43 |
st.write(project_df.shape)
|
44 |
st.write(similarity_matrix.shape)
|
|
|
84 |
p1_df = filtered_df.loc[top_filtered_df_indices].copy()
|
85 |
p1_df['similarity'] = top_values
|
86 |
|
|
|
87 |
p2_df = project_df.loc[top_project_df_indices].copy()
|
88 |
p2_df['similarity'] = top_values
|
|
|
89 |
print("finished calc matches")
|
90 |
|
91 |
return p1_df, p2_df
|