Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: threshold must be non-NAN, try sys.maxsize for untruncated representation` #21

Open
barl0g opened this issue Jan 5, 2020 · 3 comments

Comments

@barl0g
Copy link

barl0g commented Jan 5, 2020

localhost:/home/user/deep-learning-bitcoin # docker run -it --name dlb -v $PWD:/app dlb /bin/bash
...
root@820a763c147a:/app# python3 data_generator.py /tmp/btc-trading-patterns/ /tmp/coinbaseUSD.csv 1
Traceback (most recent call last):
File "data_generator.py", line 14, in
np.set_printoptions(threshold=np.nan)
File "/usr/local/lib/python3.5/dist-packages/numpy/core/arrayprint.py", line 259, in set_printoptions
floatmode, legacy)
File "/usr/local/lib/python3.5/dist-packages/numpy/core/arrayprint.py", line 95, in _make_options_dict
raise ValueError("threshold must be non-NAN, try "
ValueError: threshold must be non-NAN, try sys.maxsize for untruncated representation

@barl0g
Copy link
Author

barl0g commented Jan 5, 2020

Change
np.set_printoptions(threshold=np.nan)
to
np.set_printoptions(threshold=sys.maxsize)
?

@mand047
Copy link

mand047 commented Jan 22, 2020

same issue

@programeriss
Copy link

Change
np.set_printoptions(threshold=np.nan)
to
np.set_printoptions(threshold=sys.maxsize)
?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants