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
float' object cannot be interpreted as an integer #21
Comments
What data are you trying to load? Is it the sample_data or another dataset? |
wow,thank you to answer my question,I'm trying to load the sample_data |
Code should be runnable on GPU. |
sorry,when I update the version of Keras,it could run successful,thank you! |
We actually ignore |
OK,thank you very much |
Because the author uses 2.7 python and you use 3.5 python, you have to change'' to'\' |
Hi,when I run the code,it shows as following:
Loading data...
Generating images...
Traceback (most recent call last):
File "C:/Users/Guo/Desktop/EEGLearn-master/eeglearn/eeg_cnn_lib.py", line 473, in
av_feats = reduce(lambda x, y: x+y, [feats[:, i*192:(i+1)*192] for i in range(feats.shape[1] / 192)])
TypeError: 'float' object cannot be interpreted as an integer
so I modify the part of line 473 as" (feats.shape[1] //192)" ,it shows:
Loading data...
Generating images...
Traceback (most recent call last):
File "C:/Users/Guo/Desktop/EEGLearn-master/eeglearn/eeg_cnn_lib.py", line 477, in
32, normalize=False)
File "C:/Users/Guo/Desktop/EEGLearn-master/eeglearn/eeg_cnn_lib.py", line 67, in gen_images
for c in range(n_colors):
TypeError: 'float' object cannot be interpreted as an integer
would you give me some suggestions?thank you
The text was updated successfully, but these errors were encountered: