Jan Mühlnikel
commited on
Commit
·
889a1b1
1
Parent(s):
6f41b63
test
Browse files- functions/single_similar.py +0 -10
functions/single_similar.py
CHANGED
|
@@ -9,16 +9,6 @@ def find_similar(p_index, similarity_matrix, filtered_df, top_x):
|
|
| 9 |
index_position_mapping = {index: position for position, index in enumerate(filtered_indices)}
|
| 10 |
print(index_position_mapping)
|
| 11 |
|
| 12 |
-
|
| 13 |
-
#filtered_column_matrix = similarity_matrix[:, filtered_indices]
|
| 14 |
-
|
| 15 |
-
#top_indexes = np.argsort(selected_row)[-top_x:][::-1]
|
| 16 |
-
#top_values = selected_row[top_indexes]
|
| 17 |
-
|
| 18 |
-
#top_projects_df = projects_df.iloc[top_indexes]
|
| 19 |
-
|
| 20 |
-
#top_projects_df["similarity"] = top_values
|
| 21 |
-
|
| 22 |
return "top_projects_df"
|
| 23 |
|
| 24 |
|
|
|
|
| 9 |
index_position_mapping = {index: position for position, index in enumerate(filtered_indices)}
|
| 10 |
print(index_position_mapping)
|
| 11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
return "top_projects_df"
|
| 13 |
|
| 14 |
|