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

TypeError: 'float' object cannot be interpreted as an integer #133

Open
nilswagner opened this issue Apr 2, 2020 · 1 comment
Open

TypeError: 'float' object cannot be interpreted as an integer #133

nilswagner opened this issue Apr 2, 2020 · 1 comment

Comments

@nilswagner
Copy link

python3 demo.py
Traceback (most recent call last):
File "demo.py", line 21, in
data1 = np.random.randn(ndim * 4 * nsamples / 5).reshape([4 * nsamples / 5,
File "mtrand.pyx", line 1220, in numpy.random.mtrand.RandomState.randn
File "mtrand.pyx", line 1377, in numpy.random.mtrand.RandomState.standard_normal
File "_common.pyx", line 558, in numpy.random._common.cont
TypeError: 'float' object cannot be interpreted as an integer

@shbhuk
Copy link

shbhuk commented Apr 2, 2020

Are ndim and nsamples integers or floats?

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

2 participants