Skip to content

Error occur run demo_GraphKernel #57

@Tommiyi

Description

@Tommiyi

Traceback (most recent call last):
File "demo_GraphKernel.py", line 64, in
showEachStep=False,
File "/home/wangxh/anaconda3/envs/graphgym/lib/python3.7/site-packages/pyGPs/GraphExtensions/graphKernels.py", line 156, in propagationKernel
counts[ (gr_id[i,0]-1), hashLabels[i] ] +=1
IndexError: only integers, slices (:), ellipsis (...), numpy.newaxis (None) and integer or boolean arrays are valid indices

and fix with "counts[int(gr_id[i,0]-1), hashLabels[i]]+=1"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions