Giter Club home page Giter Club logo

Comments (10)

yuehhua avatar yuehhua commented on August 25, 2024

It seems error occurs at loading data.
Could you please check if you have MLDatasets installed?

from geometricflux.jl.

kaansancak avatar kaansancak commented on August 25, 2024

Yes, MLDatasets is installed.

from geometricflux.jl.

yuehhua avatar yuehhua commented on August 25, 2024

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.

yuehhua avatar yuehhua commented on August 25, 2024

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.

kaansancak avatar kaansancak commented on August 25, 2024

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.

yuehhua avatar yuehhua commented on August 25, 2024

The latest version is MLDatasets v0.7.4. Could you update to this version?

from geometricflux.jl.

kaansancak avatar kaansancak commented on August 25, 2024

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.

yuehhua avatar yuehhua commented on August 25, 2024

Maybe you could fire an issue to MLDatasets since the error comes from MLDatasets.

from geometricflux.jl.

Dsantra92 avatar Dsantra92 commented on August 25, 2024

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.

kaansancak avatar kaansancak commented on August 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.