Jan Mühlnikel
commited on
Commit
·
38df40f
1
Parent(s):
5d7d815
added selected project df
Browse files
functions/single_similar.py
CHANGED
|
@@ -5,10 +5,8 @@ def find_similar(p_index, similarity_matrix, filtered_df, top_x):
|
|
| 5 |
|
| 6 |
# filter out just projects from filtered df
|
| 7 |
filtered_indices = filtered_df.index.tolist()
|
| 8 |
-
print(filtered_indices)
|
| 9 |
|
| 10 |
index_position_mapping = {position: index for position, index in enumerate(filtered_indices)}
|
| 11 |
-
print(index_position_mapping)
|
| 12 |
|
| 13 |
filtered_column_sim_matrix = similarity_matrix[:, filtered_indices]
|
| 14 |
|
|
|
|
| 5 |
|
| 6 |
# filter out just projects from filtered df
|
| 7 |
filtered_indices = filtered_df.index.tolist()
|
|
|
|
| 8 |
|
| 9 |
index_position_mapping = {position: index for position, index in enumerate(filtered_indices)}
|
|
|
|
| 10 |
|
| 11 |
filtered_column_sim_matrix = similarity_matrix[:, filtered_indices]
|
| 12 |
|