Skip to content

Commit

Permalink
Add back issue #1140
Browse files Browse the repository at this point in the history
  • Loading branch information
Sidharth Sundar committed Jun 15, 2022
1 parent 897a4e4 commit a828bd1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions adam/learner/contrastive_learner.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,12 @@ def learn_from(self, matching: LanguagePerceptionSemanticContrast) -> None:
def _match_concept_pattern_to_multiple_graphs(
self, concept: Concept, graph: PerceptionGraph
) -> Mapping[PerceptionGraphTemplate, Optional[PerceptionGraphPatternMatch]]:
# Arbitrarily take the first match per hypothesis.
#
# Because there may be more than one match per hypothesis, this results in non-deterministic behavior in
# general. We would like to do something smarter. See the GitHub issue:
# https://github.com/isi-vista/adam/issues/1140
# TODO issue
return {
apprentice_concept: apprentice_concept.graph_pattern.matcher(
graph,
Expand Down

0 comments on commit a828bd1

Please sign in to comment.