MKLab-ITI / JGNN

A Fast Graph Neural Network Library written in Native Java
Apache License 2.0
17 stars 3 forks source link

Exception during execution of Quickstart #6

Closed tinca closed 4 months ago

tinca commented 4 months ago

Hello,

When trying quickstart the following is thrown:

Exception in thread "main" java.lang.IllegalArgumentException: Row 4132 does not exist in WrapCols (2708,1) at mklab.JGNN.core.matrix.AccessRow.<init>(AccessRow.java:34) at mklab.JGNN.core.Matrix.accessRow(Matrix.java:590) at mklab.JGNN.core.Matrix.accessRows(Matrix.java:779) at mklab.JGNN.nn.ModelTraining.train(ModelTraining.java:98) at mklab.JGNN.nn.Model.train(Model.java:63)

I observed that on first runs executions apparently were stuck in. Later realized that it tries to download some data. Now it quickly finishes with this error, so it is possible that something broken has been cached?

What shall I do to be able to run this properly? Thanks!

tinca commented 4 months ago

Further info: deleting download dir does not help.

tinca commented 4 months ago

One more note: I had to change one line from the example, becasue of an API change (I use 1.2.0): Slice nodes = new Slice(0, nodeLabels.getRows()).shuffle(100); to Slice nodes = new Slice(nodeLabels).shuffle(100);

maniospas commented 4 months ago

Hello and thanks for both the interest and the report!

I updated the readme's quickstart section to reflect these changes, so you can copy-paste the full code from there (it is also similar to examples/nodeClassification/APPNP in this repository). I am also closing this issue, but if you are still having issues replicating the quickstart, feel free to reopen it.

tinca commented 3 months ago

Thank you for this answer too and the quick acting on this particular issue.

When I found this library I got really excited and have high hopes about its feasibility for the problems I've in mind.