Skip to content

MethodError: no method matching ReinforcementLearningCore.TabularApproximator(::Vector{Float64}, ::Optimisers.Descent{Float64}) #104

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
D3MZ opened this issue Feb 2, 2025 · 0 comments

Comments

@D3MZ
Copy link

D3MZ commented Feb 2, 2025

Error with Chapter 06 example
https://github.com/JuliaReinforcementLearning/ReinforcementLearningAnIntroduction.jl/blob/master/notebooks/Chapter06_RandomWalk.jl

MethodError: no method matching ReinforcementLearningCore.TabularApproximator(::Vector{Float64}, ::Optimisers.Descent{Float64})
The type `ReinforcementLearningCore.TabularApproximator` exists, but no method is defined for this combination of argument types when trying to construct it.

Closest candidates are:
  ReinforcementLearningCore.TabularApproximator(::A) where A<:AbstractArray
   @ ReinforcementLearningCore ~/.julia/packages/ReinforcementLearningCore/jIECU/src/policies/learners/tabular_approximator.jl:19
  ReinforcementLearningCore.TabularApproximator(::A) where A
   @ ReinforcementLearningCore ~/.julia/packages/ReinforcementLearningCore/jIECU/src/policies/learners/tabular_approximator.jl:4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant