-
-
Notifications
You must be signed in to change notification settings - Fork 610
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
MethodError: no method matching getindex(::Pair{Symbol,Array{Float64,1}}, ::Symbol) #1404
Comments
I haven't run your code, but I think the error is in your loss function. I will try to break it down a bit as the code looks a bit unusual.
Now, I'm pretty certain that Flux.train! will just iterate over If you instead want to get the whole array of As I said above, using a dict like this looks a bit unusual to me. I understand its an mwe, but if you explain what you are trying to achieve then perhaps there is a simpler and more efficient solution. |
@DrChainsaw is right here, passing |
Thank you for your replies and suggestions. I am a beginner in neural networks and I am trying to implement a simple graph neural network. I used MetaGraphs.jl to index the attribute vector of nodes and the attribute vector of edges in the network. In MetaGraphs. jl, the attribute vector is indexed using Dict, so I simplified it to the above code. |
I suggest you take a look at https://github.com/yuehhua/GeometricFlux.jl |
Discourse is also a good place for questions: https://discourse.julialang.org/ Btw, I didn't find anyting about your issue careless or impolite. Its not always easy to find exactly where the problem is. Hopefully you can get some help with that in the provided resources. |
The text was updated successfully, but these errors were encountered: