Skip to content

ERROR: MethodError: Cannot convert an object of type Array{Float64,1} to an object of type Int64 #344

Discussion options

You must be logged in to vote

Hi @danortega2014

This error results because your initialstate function returns an actual state. It should return a distribution of states. To see why it outputs this particular error, run rand(initialstate(m)). It is having trouble converting that to a state, which it thinks should be an Int

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@zsunberg
Comment options

@zsunberg
Comment options

@danortega2014
Comment options

@zsunberg
Comment options

@danortega2014
Comment options

Answer selected by danortega2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants