Skip to content

Commit

Permalink
rename do pairs
Browse files Browse the repository at this point in the history
  • Loading branch information
undertherain committed Jan 16, 2019
1 parent 20bb550 commit a3b9f59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vecto/benchmarks/analogy/solvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,13 +260,13 @@ def do_test_on_pairs(self, pairs_train, pairs_test):
if self.is_pair_missing([p_test]):
continue
# TODO: try to reuse more from pairwise
result = self.do_on_two_pairs(p_test)
result = self.do_on_two_pair(p_test)
result["b in neighbourhood of b_prime"] = self.get_rank(p_test[0], p_test[1][0])
result["b_prime in neighbourhood of b"] = self.get_rank(p_test[1], p_test[0])
results.append(result)
return results

def do_on_two_pairs(self, pair_test):
def do_on_two_pair(self, pair_test):
if self.is_pair_missing([pair_test]):
result = self.result_miss
else:
Expand Down

0 comments on commit a3b9f59

Please sign in to comment.