Skip to content

Commit 4aa8045

Browse files
authored
Merge pull request joelgrus#87 from cclauss/patch-1
Undefined name: from typing import Dict for line 96
2 parents cb0636b + 0014761 commit 4aa8045

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scratch/recommender_systems.py

Lines changed: 2 additions & 2 deletions
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)