Skip to content

Commit 0014761

Browse files
authoredFeb 12, 2020
Undefined name: from typing import Dict for line 96
1 parent cb0636b commit 0014761

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎scratch/recommender_systems.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
for user_interests in users_interests
2323
for interest in user_interests)
2424

25-
from typing import List, Tuple
25+
from typing import Dict, List, Tuple
2626

2727
def most_popular_new_interests(
2828
user_interests: List[str],
@@ -341,4 +341,4 @@ def loop(dataset: List[Rating],
341341
print(sorted(vectors, key=lambda v: v[-1][0])[:25])
342342
print(sorted(vectors, key=lambda v: v[-1][0])[-25:])
343343

344-
if __name__ == "__main__": main()
344+
if __name__ == "__main__": main()

0 commit comments

Comments
 (0)
Please sign in to comment.