MCPcopy Create free account
hub / github.com/bigdata-ustc/Agent4Edu / same_course

Method same_course

Code/tools/relation_graph.py:36–37  ·  view source on GitHub ↗
(self, left: str, right: str)

Source from the content-addressed store, hash-verified

34 return (left_id, right_id) in self.kcg_pairs or (right_id, left_id) in self.kcg_pairs
35
36 def same_course(self, left: str, right: str) -> bool:
37 return self.course(left) is not None and self.course(left) == self.course(right)
38
39 def sample_distractors(self, true_concept: str, k: int = 2, seed: int | None = None) -> list[str]:
40 return pick_distractors(true_concept, self.concepts, k=k, seed=seed)

Callers 1

similarity_by_kcgMethod · 0.80

Calls 1

courseMethod · 0.95

Tested by

no test coverage detected