You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But I'm getting an error:
Traceback (most recent call last):
File "launcher.py", line 10, in
import pg_su
File "/home/arik/deeprm/pg_su.py", line 12, in
np.set_printoptions(threshold='nan')
File "/home/arik/.local/lib/python2.7/site-packages/numpy/core/arrayprint.py", line 246, in set_printoptions
floatmode, legacy)
File "/home/arik/.local/lib/python2.7/site-packages/numpy/core/arrayprint.py", line 93, in _make_options_dict
raise ValueError("threshold must be numeric and non-NAN, try "
ValueError: threshold must be numeric and non-NAN, try sys.maxsize for untruncated representation
One solution is that in pg_su.py file, in its 12th line, remove the parameter called threshold= 'nan'.
But you won't be able to run that code since you can only suggest commits. So I suggest you fork this entire repo and then do the changes by yourself in your cloned repo.
I've removed the attribute and now getting the following error:
AttributeError: ('The following error happened while compiling the node', DeepCopyOp(b), '\n', "'module' object has no attribute '_get_ndarray_c_version'")
I've downloaded the code locally to reproduce the experiments as well. When getting the raise ValueError("threshold must be numeric and non-NAN, try " error, simply replace the np.set_printoptions(threshold='nan') with the suggestion threshold=sys.maxsize. This will keep you going. Googling, you will find some posts justifying why. I hope that helps.
Hi,
I'm trying to rerun your experiments in order to recreate the graphs. However, I'm getting errors when running the github.
I'm running the command presented there:
python launcher.py --exp_type=pg_re --pg_re=data/pg_su_net_file_20.pkl --simu_len=50 --num_ex=10 --ofile=data/pg_re
But I'm getting an error:
Traceback (most recent call last):
File "launcher.py", line 10, in
import pg_su
File "/home/arik/deeprm/pg_su.py", line 12, in
np.set_printoptions(threshold='nan')
File "/home/arik/.local/lib/python2.7/site-packages/numpy/core/arrayprint.py", line 246, in set_printoptions
floatmode, legacy)
File "/home/arik/.local/lib/python2.7/site-packages/numpy/core/arrayprint.py", line 93, in _make_options_dict
raise ValueError("threshold must be numeric and non-NAN, try "
ValueError: threshold must be numeric and non-NAN, try sys.maxsize for untruncated representation
The versions:
Do you know how to fix it?
Thanks.
The text was updated successfully, but these errors were encountered: