Wifi_Activity_Recognition icon indicating copy to clipboard operation
Wifi_Activity_Recognition copied to clipboard

Issues in cross_vali_data_convert_merge.py

Open AV-Coding opened this issue 5 years ago • 5 comments

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!

AV-Coding avatar Oct 13 '19 17:10 AV-Coding

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

Hirokazu-Narui avatar Oct 14 '19 01:10 Hirokazu-Narui

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.

AV-Coding avatar Oct 27 '19 22:10 AV-Coding

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!

beyond96 avatar Oct 28 '20 08:10 beyond96

@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.

warriors30n11 avatar Nov 27 '21 08:11 warriors30n11

@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 "

XiaoyeAsZ avatar Aug 27 '22 06:08 XiaoyeAsZ