Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit53ff651

Browse files
committed
fix TransitionFocusOracle.py state tracking
1 parent58c6b1c commit53ff651

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎aalpy/oracles/TransitionFocusOracle.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def find_cex(self, hypothesis):
3131
for_inrange(self.num_walks):
3232
self.reset_hyp_and_sul(hypothesis)
3333

34-
curr_state=hypothesis.initial_state
34+
curr_state=hypothesis.current_state
3535
inputs= []
3636
for_inrange(self.steps_per_walk):
3737
ifrandom.random()<=self.same_state_prob:
@@ -46,6 +46,8 @@ def find_cex(self, hypothesis):
4646
out_hyp=hypothesis.step(inputs[-1])
4747
self.num_steps+=1
4848

49+
curr_state=hypothesis.current_state
50+
4951
ifout_sul!=out_hyp:
5052
self.sul.post()
5153
returninputs

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp