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

Issues in cross_vali_data_convert_merge.py #23

Open
AV-Coding opened this issue Oct 13, 2019 · 5 comments
Open

Issues in cross_vali_data_convert_merge.py #23

AV-Coding opened this issue Oct 13, 2019 · 5 comments

Comments

@AV-Coding
Copy link

Just to make sure that I'm doing this right:
I switched this:
Screenshot from 2019-10-13 10-39-38
To this:
Screenshot from 2019-10-13 10-37-04
Since I was getting this error message:
Screenshot from 2019-10-13 10-37-58

Also, do I need to run this code in order to see your data 'PCA_STFT_visualize.ipynb' in jupyter notebook or can I already visualize it? Any help is appreciated, Thanks!

@Hirokazu-Narui
Copy link
Collaborator

Hi, @AV-Coding Thank you for trying out my code.
When does this error be shown? While "bed" data is processing? or another activity?

@AV-Coding
Copy link
Author

This happens when I start the script cross_vali_data_convert_merge.py. It no longer happens though since it seems like when Dataset is unzipped, it creates a data folder.

@beyond96
Copy link

Hi,I have encountered the same problem. Have you solved it?

Traceback (most recent call last):
File "./test_wu/cross_vali_data_convert_merge.py", line 109, in
x, y = dataimport(filepath1, filepath2)
File "./test_wu/cross_vali_data_convert_merge.py", line 33, in dataimport
xx = xx.reshape(len(xx),-1)
ValueError: cannot reshape array of size 0 into shape (0,newaxis)

Thanks!

@warriors30n11
Copy link

@beyond96 , I have also encountered this problem. But I just change the variables of "filepath1" and "filepath2" to the correct path of dataset on my computer.

@XiaoyeAsZ
Copy link

@AV-Coding You can try as follows:
Find the code " y[k/slide_size,:] = np.array([0,1,0,0,0,0,0,0]) " in file "cross_vali_data_convert_merge.py"
Change all the / to // (I think the contributor just forget the / results in float in python )
At last you can open terminal in the folder to run "python ./cross_vali_data_convert_merge.py "

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

5 participants