Skip to content

Commit b646779

Browse files
committed
update KV cex handling
1 parent aa58657 commit b646779

File tree

1 file changed

+1
-5
lines changed
  • aalpy/learning_algs/deterministic

1 file changed

+1
-5
lines changed

aalpy/learning_algs/deterministic/KV.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from aalpy.base import Oracle, SUL
55
from aalpy.utils.HelperFunctions import print_learning_info
66
from .ClassificationTree import ClassificationTree
7+
from .CounterExampleProcessing import counterexample_successfully_processed
78
from ...base.SUL import CacheSUL
89

910
print_options = [0, 1, 2, 3]
@@ -157,8 +158,3 @@ def run_KV(alphabet: list, sul: SUL, eq_oracle: Oracle, automaton_type, cex_proc
157158

158159
return hypothesis
159160

160-
161-
def counterexample_successfully_processed(sul, cex, hypothesis):
162-
cex_outputs = sul.query(cex)
163-
hyp_outputs = hypothesis.execute_sequence(hypothesis.initial_state, cex)
164-
return cex_outputs[-1] == hyp_outputs[-1]

0 commit comments

Comments
 (0)