Skip to content

Commit

Permalink
use reset! in RL test
Browse files Browse the repository at this point in the history
  • Loading branch information
harisorgn committed Feb 15, 2024
1 parent 183c428 commit efaf386
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/reinforcement_learning.jl
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,10 @@ using CSV
@test any(init_params[map_idxs[idxs_weight]] .!= final_params[map_idxs[idxs_weight]])
# All non-weight parameters need to be the same.
@test all(init_params[map_idxs[idxs_other_params]] .== final_params[map_idxs[idxs_other_params]])

reset!(agent)
@test all(init_params .== agent.problem.p)

reset!(env)
@test env.current_trial == 1
end

0 comments on commit efaf386

Please sign in to comment.