Jan Mühlnikel
commited on
Commit
·
e4ce8fe
1
Parent(s):
29fd9ee
experiment
Browse files
functions/calc_matches.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
import pandas as pd
|
| 2 |
import numpy as np
|
| 3 |
from scipy.sparse import csr_matrix, lil_matrix
|
|
|
|
| 4 |
|
| 5 |
"""
|
| 6 |
def calc_matches(filtered_df, project_df, similarity_matrix, top_x):
|
|
@@ -35,8 +36,12 @@ def calc_matches(filtered_df, project_df, similarity_matrix, top_x):
|
|
| 35 |
return p1_df, p2_df
|
| 36 |
"""
|
| 37 |
|
| 38 |
-
|
| 39 |
def calc_matches(filtered_df, project_df, similarity_matrix, top_x):
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
# Ensure the matrix is in a suitable format for manipulation
|
| 41 |
if not isinstance(similarity_matrix, csr_matrix):
|
| 42 |
similarity_matrix = csr_matrix(similarity_matrix)
|
|
|
|
| 1 |
import pandas as pd
|
| 2 |
import numpy as np
|
| 3 |
from scipy.sparse import csr_matrix, lil_matrix
|
| 4 |
+
import streamlit as st
|
| 5 |
|
| 6 |
"""
|
| 7 |
def calc_matches(filtered_df, project_df, similarity_matrix, top_x):
|
|
|
|
| 36 |
return p1_df, p2_df
|
| 37 |
"""
|
| 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)
|
| 44 |
+
|
| 45 |
# Ensure the matrix is in a suitable format for manipulation
|
| 46 |
if not isinstance(similarity_matrix, csr_matrix):
|
| 47 |
similarity_matrix = csr_matrix(similarity_matrix)
|