Browse Source

Update abducer_base.py

pull/3/head
troyyyyy GitHub 3 years ago
parent
commit
5d633ff86b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      abl/abducer/abducer_base.py

+ 2
- 2
abl/abducer/abducer_base.py View File

@@ -54,7 +54,7 @@ class AbducerBase(abc.ABC):
def _zoopt_address_score(self, pred_res, pred_res_prob, key, sol):
all_address_flag = reform_idx(sol.get_x(), pred_res)
if nested_length(pred_res) == 1:
return self._zoopt_address_score_single(all_address_flag[idx], pred_res, pred_res_prob, key)
return self._zoopt_address_score_single(all_address_flag, pred_res, pred_res_prob, key)
else:
score = 0
for idx in range(nested_length(pred_res)):
@@ -273,4 +273,4 @@ if __name__ == '__main__':
print()

abduced_rules = abd.abduce_rules(consist_exs)
print(abduced_rules)
print(abduced_rules)

Loading…
Cancel
Save