Skip to content

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

Description

@andwizard

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions