Skip to content

xgraph Subgraphx files has typo resulting in erroneous test accuracy #255

@ahoefn

Description

@ahoefn

Description

In following file in the xgraph/Subgraphx directory of the main branch, there seems to be a typo on line 82. Here, the test accuracy is calculated using the code
test_state, _, _ = test_GC(dataloader['train'], gnnNets, criterion)
The test_GC function then calculates accuracy and the loss. However, the 'test' subset of the data should be used here instead (see e.g. line 170 of the same file).

Suggested fix

Change 'train' to 'test'.

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