@@ -29,16 +29,12 @@ Two kinds of epsilon-decreasing strategy are implemented here (`linear` and `exp
2929# Example
3030
3131```julia
32- s = EpsilonGreedyExplorer{:linear}(ϵ_init=0.9, ϵ_stable=0.1, warmup_steps=100, decay_steps=100)
33- plot([RL.get_ϵ(s, i) for i in 1:500], label="linear epsilon")
32+ s_lin = EpsilonGreedyExplorer(kind=:linear, ϵ_init=0.9, ϵ_stable=0.1, warmup_steps=100, decay_steps=100)
33+ plot([RLCore.get_ϵ(s_lin, i) for i in 1:500], label="linear epsilon")
34+ s_exp = EpsilonGreedyExplorer(kind=:exp, ϵ_init=0.9, ϵ_stable=0.1, warmup_steps=100, decay_steps=100)
35+ plot!([RLCore.get_ϵ(s_exp, i) for i in 1:500], label="exp epsilon")
3436```
35- 
36-
37- ```julia
38- s = EpsilonGreedyExplorer{:exp}(ϵ_init=0.9, ϵ_stable=0.1, warmup_steps=100, decay_steps=100)
39- plot([RL.get_ϵ(s, i) for i in 1:500], label="exp epsilon")
40- ```
41- 
37+ 
4238"""
4339mutable struct EpsilonGreedyExplorer{Kind,IsBreakTie,R} <: AbstractExplorer
4440 ϵ_stable:: Float64
0 commit comments