-
-
Couldn't load subscription status.
- Fork 30
Add more example scripts #193
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
base: master
Are you sure you want to change the base?
Conversation
this seems a wasteful code duplication. You could just add a |
| ## Model | ||
| model = Chain( | ||
| GCNConv(num_features=>hidden, relu), | ||
| # Dropout(0.5), --> does not work |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's the error?
|
|
||
| ## Loss | ||
| loss(x, y) = logitcrossentropy(model(x), y) | ||
| accuracy(x, y) = mean(onecold(softmax(cpu(model(x)))) .== onecold(cpu(y))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| accuracy(x, y) = mean(onecold(softmax(cpu(model(x)))) .== onecold(cpu(y))) | |
| accuracy(x, y) = mean(onecold(cpu(model(x))) .== onecold(cpu(y))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
onecold doesn't need normalized predictions
|
For |
examples/gcn.jl-->examples/gcn_gpu.jl. (this actually does not run, but IDK if its my setup or a bug)examples/gcn.jl(original example but w/o the|> gpupartsexamples/gcn_featured_graph.jl(was a little more tedious to figure out how to make this work than i hoped from the docs alone)