Comments (10)
It seems error occurs at loading data.
Could you please check if you have MLDatasets installed?
from geometricflux.jl.
Yes, MLDatasets is installed.
from geometricflux.jl.
Is it using MLDatasets
successfully? It's kind of weird and should don't raise error. I tested it on my computer and it got passed.
What's MLDatasets version in your side?
from geometricflux.jl.
Could you reproduce this?
julia> using MLDatasets
julia> cora = Cora()
dataset Cora:
metadata => Dict{String, Any} with 3 entries
graphs => 1-element Vector{MLDatasets.Graph}
julia> cora[1]
Graph:
num_nodes => 2708
num_edges => 10556
edge_index => ("10556-element Vector{Int64}", "10556-element Vector{Int64}")
node_data => (features = "1433×2708 Matrix{Float32}", targets = "2708-element Vector{Int64}", train_mask = "140-trues BitVector", val_mask = "500-trues BitVector", test_mask = "1000-trues BitVector")
edge_data => nothing
julia> @which cora[1]
getindex(d::Cora, i) in MLDatasets at /home/yuehhua/.julia/packages/MLDatasets/eZ0Va/src/datasets/graphs/cora.jl:64
from geometricflux.jl.
I am using MLDatasets v0.5.15. Here is the trace:
julia> using MLDatasets
julia> cora = Cora()
ERROR: MethodError: objects of type Module are not callable
Stacktrace:
[1] top-level scope
@ REPL[2]:1
from geometricflux.jl.
The latest version is MLDatasets v0.7.4. Could you update to this version?
from geometricflux.jl.
I have updated the packages, still getting the same error.
My packages:
[052768ef] CUDA v3.12.0
[587475ba] Flux v0.13.6
⌃ [7e08b658] GeometricFlux v0.13.4
[3ebe565e] GraphSignals v0.7.3
⌃ [86223c79] Graphs v1.7.3
[eb30cadb] MLDatasets v0.7.4
[d96e819e] Parameters v0.12.3
[92933f4c] ProgressMeter v1.7.2
[10745b16] Statistics
Trace:
ERROR: LoadError: MethodError: no method matching getindex(::Cora, ::Int64)
Stacktrace:
[1] load_data(dataset::Cora, batch_size::Int64, train_repeats::Int64, test_repeats::Int64) (repeats 2 times)
@ Main /GCN.jl:16
[2] train(; kws::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ Main /GCN.jl:73
[3] train()
@ Main /GCN.jl:57
[4] top-level scope
@ /GCN.jl:116
in expression starting at /GCN.jl:116
from geometricflux.jl.
Maybe you could fire an issue to MLDatasets since the error comes from MLDatasets.
from geometricflux.jl.
Hi @kaansancak Updating GeometricFlux to the latest version 0.13.7 solves the issue. The 0.13.4 version is not using MLDatasets.jl. Reproduce:
(tmp.V2PSqe1wQb) pkg> add [email protected]
.
.
.
julia> @which Cora()
Cora() in GraphMLDatasets at /home/deebyo/.julia/packages/GraphMLDatasets/nsi8O/src/dataset.jl:41
You can update all the packages using using Pkg; Pkg.update()
. If you cannot use the current version of GeometricFlux.jl use a temporary environment . Hope it solves the issue.
from geometricflux.jl.
Hi @kaansancak Updating GeometricFlux to the latest version 0.13.7 solves the issue. The 0.13.4 version is not using MLDatasets.jl. Reproduce:
(tmp.V2PSqe1wQb) pkg> add [email protected] . . . julia> @which Cora() Cora() in GraphMLDatasets at /home/deebyo/.julia/packages/GraphMLDatasets/nsi8O/src/dataset.jl:41
You can update all the packages using
using Pkg; Pkg.update()
. If you cannot use the current version of GeometricFlux.jl use a temporary environment . Hope it solves the issue.
This solved the issue, thank you!
from geometricflux.jl.
Related Issues (20)
- GraphGym
- Semi-Supervised GCN example broken. HOT 4
- SE(3)-Transformers
- Neural Jacobian Fields
- GraphWave embeddings
- Lie Algebra Convolutional Network
- Support Learnable Structural Positional Encoding (LSPE)
- GraphWorld for fake graphs benchmarking HOT 1
- `DimensionMismatch` error using `GraphConv` layer on directed graphs HOT 1
- Support TokenGT
- Implementation of Graph Matching Networks
- Implementation of Steerable CNNs HOT 2
- Implementation of Euclidean Neural Networks
- Implementation of E(N)-Equivariant Steerable CNNs
- Gauge Equivariant Convolutional Networks
- Multi-directional geodesic neural networks
- Clifford Neural Layers
- Uninformative Error when using GATConv / GATv2Conv when using WithGraph
- Failure as `NNlib.within_grad` is deleted HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geometricflux.jl.