pygod icon indicating copy to clipboard operation
pygod copied to clipboard

Follow the instructions of detector example, which step went wrong?

Open andwizard opened this issue 8 months ago • 3 comments

I`m pretty sure the dataset was downloaded correctlyly

from pygod.utils import load_data

data = load_data(name="inj_cora", cache_dir='/home/zwl/code/Wild-GAD/datasets/text_data/pre/self/inj_cora')
data.y = data.y.bool()
print(data)


from pygod.detector import DOMINANT

detector = DOMINANT(hid_dim=64, num_layers=4, epoch=100)
detector.fit(data)

When I started running this py, the following error occurred. Image

the print of data:

Image

I'm using the pytorch==2.1.0 and the torch-geometric==2.3.1 for pygod==1.1.0

andwizard avatar Mar 26 '25 12:03 andwizard

hi, I also encountered the same problem, have you solved it?

suze233 avatar Mar 31 '25 07:03 suze233

hi, I also encountered the same problem, have you solved it?

I switch to the torch-geometric==2.6.1 and it works

andwizard avatar Apr 01 '25 01:04 andwizard

hi, I also encountered the same problem, have you solved it?

I switch to the torch-geometric==2.6.1 and it works

Thank you very much, switching to torch-geometric==2.6.1 solved the problem successfully

suze233 avatar Apr 07 '25 02:04 suze233