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"
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 indicesand fix with "counts[int(gr_id[i,0]-1), hashLabels[i]]+=1"