dsr-18 / long-live-the-battery

Predicting total battery cycle life time with machine learning
89 stars 44 forks source link

data_preprocessing.py --- error #32

Open intelljames opened 4 years ago

intelljames commented 4 years ago

The trainer.rebuilding_features (line 9 in data_preprocessing.py) is not exist, then l redirect the path to rebuilding_features in the root folder and run the code finally throw an error FileNotFoundError: [Errno 2] No such file or directory: 'data\batch1.pkl'

intelljames commented 4 years ago

QQ截图20191209133216 the strcuture of Data folder

marlon-br commented 4 years ago

same issue for me

vsubhashini commented 4 years ago

@intelljames @marlon-br So the original dataset comes with the code to convert the mat to pkl format. I have forked this repo and updated the code here for the first batch of .mat data.

https://github.com/vsubhashini/long-live-the-battery/blob/master/convert_mat_to_pkl.py

You can also see the readme for other updates (for converting other mat files and training in colab) https://github.com/vsubhashini/long-live-the-battery

The code worked flawlessly except for some minor updates to keras. This issue can be closed, I guess.