Skip to content

Commit e3fada1

Browse files
committed
modify params
1 parent 5caf99d commit e3fada1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
3.43 KB
Loading

src/chapter13/short_corridor.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function run_once_RL()
2828
features[i, :, :] .= [0 1; 1 0]
2929
end
3030
agent = Agent(ReinforceLearner(LinearPolicy(features, [-1.47, 1.47]),
31-
2e-4,
31+
2^-13,
3232
1.),
3333
EpisodeSARDBuffer())
3434
callbacks = (stop_at_episode(1000, false), rewards_of_each_episode())
@@ -56,8 +56,8 @@ function run_once_RLBaseline()
5656
end
5757
agent = Agent(ReinforceBaselineLearner(TabularV(zeros(length(observationspace(env)))),
5858
LinearPolicy(features, [-1.47, 1.47]),
59-
1e-4,
60-
1e-4,
59+
2^-6,
60+
2^-9,
6161
1.),
6262
EpisodeSARDBuffer())
6363
callbacks = (stop_at_episode(1000, false), rewards_of_each_episode())

0 commit comments

Comments
 (0)