You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Julia 1.11 in a fresh virtual environment, I ran the following commands:
]add DeepQLearning, POMDPs, Flux, POMDPModels, POMDPTools
using DeepQLearning
using POMDPs
using Flux
using POMDPModels
using POMDPTools
mdp = SimpleGridWorld();
model = Chain(Dense(2, 32), Dense(32, length(actions(mdp))))
exploration = EpsGreedyPolicy(mdp, LinearDecaySchedule(start=1.0, stop=0.01, steps=10000/2))
solver = DeepQLearningSolver(qnetwork = model, max_steps=10000,
exploration_policy = exploration,
learning_rate=0.005,log_freq=500,
recurrence=false,double_q=true, dueling=true, prioritized_replay=true)
policy = solve(solver, mdp)
I skipped Using POMDPSimulators which is actually not needed in this example (and in fact would cause a precompilation error, at least with Julia 1.11). The above commands ended with the error:
ERROR: UndefVarError: `loadparams!` not defined in `Flux`
Another minor problem was that the printing of exploration resulted in StackOverflowError. This is easily avoided by appending a semicolon to the affected line to suppress the printing.
I'm using Julia Version 1.11.2 on Linux x86_64 (libc).
The text was updated successfully, but these errors were encountered:
Using Julia 1.11 in a fresh virtual environment, I ran the following commands:
I skipped
Using POMDPSimulators
which is actually not needed in this example (and in fact would cause a precompilation error, at least with Julia 1.11). The above commands ended with the error:Another minor problem was that the printing of
exploration
resulted inStackOverflowError
. This is easily avoided by appending a semicolon to the affected line to suppress the printing.I'm using Julia Version 1.11.2 on Linux x86_64 (libc).
The text was updated successfully, but these errors were encountered: