Skip to content

Commit

Permalink
Update test_activation_and_monitoring.py
Browse files Browse the repository at this point in the history
  • Loading branch information
EltonCN committed Oct 18, 2024
1 parent 376e411 commit e73489a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/examples/test_activation_and_monitoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def test_activation(tb :TestbookNotebookClient):
for i, (activation, input_value, sensory_output, action) in enumerate(zip(activation_hist, input_hist, sensory_output_hist, action_hist)):
assert math.isclose(input_value, i/100)

assert math.isclose(activation, np.clip(input_value, 0.0, 1.0), abs_tol=0.021)
assert math.isclose(activation, np.clip(input_value, 0.0, 1.0), abs_tol=0.031)

if i >= 50 and activation < 0.7:
expected_sensory = last_sensory_output
Expand Down

0 comments on commit e73489a

Please sign in to comment.