Skip to content

Commit

Permalink
Fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
cuom1999 committed Mar 27, 2024
1 parent 45469ff commit 28156a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion judge/ml/collab_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def user_recommendations(self, user_id, problems, measure=DOT, limit=None):
def problem_neighbors(self, problem, problemset, measure=DOT, limit=None):
pid = problem.id
if pid not in self.problem_embeddings:
return None
return []
embedding = self.problem_embeddings[pid]
scores = self.compute_scores(embedding, self.problem_embeddings, measure)
res = []
Expand Down

0 comments on commit 28156a9

Please sign in to comment.