This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using ReinforcementLearningZoo | |
| using ReinforcementLearningBase | |
| using ReinforcementLearningCore: NeuralNetworkApproximator, EpsilonGreedyExplorer, QBasedPolicy, CircularCompactSARTSATrajectory | |
| using ReinforcementLearning | |
| using Flux | |
| using Flux: glorot_uniform, huber_loss | |
| import Random | |
| import BSON | |
| RL = ReinforcementLearningBase |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using BenchmarkTools | |
| function operate!(shared, locks) | |
| i = rand(1:length(shared)) | |
| lock(locks[i]) do | |
| shared[i] += 1 | |
| end | |
| end | |
| function operate_many!(shared, locks, channel) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| struct LunarLander <: POMDP{Vector{Float64}, Vector{Float64}, Vector{Float64}} | |
| dt::Float64 | |
| m::Float64 | |
| I::Float64 | |
| Q::Vector{Float64} | |
| R::Vector{Float64} | |
| end | |
| function LunarLander(;dt::Float64=0.1, m::Float64=1.0, I::Float64=10.0) | |
| Q = [0.0, 0.0, 0.0, 0.1, 0.1, 0.01] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from julia.CommonRLSpaces import Box | |
| from julia.Main import Float64 | |
| from julia.POMDPs import solve, pdf,action | |
| from julia.QMDP import QMDPSolver | |
| from julia.POMCPOW import POMCPOWSolver | |
| from julia.POMDPTools import stepthrough, alphavectors, Uniform, Deterministic | |
| from julia.Distributions import Normal,AbstractMvNormal,MvNormal | |
| from quickpomdps import QuickPOMDP |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using POMDPTools: SparseCat | |
| using Distributions: pdf | |
| module DecisionMaking | |
| import Distributions | |
| module ModelerInterface | |
| function transition end | |
| function T end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using POMDPTools: SparseCat | |
| using Distributions: pdf | |
| module DecisionMaking | |
| import Distributions | |
| using Distributions: pdf | |
| export | |
| transition, |
OlderNewer