microsoft / BatteryML

MIT License
480 stars 101 forks source link

AssertionError: data\processed\MATR #29

Closed JingyiJia closed 5 months ago

JingyiJia commented 5 months ago

image image

image

Running Setup.py image

image

I have successfully installed BatteryML following the instructions in the Quick Start guide. The raw data seemed to download correctly, but I cannot run the sample.

Refer to previous issues, I also cannot find scripts/preprocess.py.

Can you please assist me with this matter? I appreciate your help!

agiamason commented 5 months ago

Hi Jingyi, I'm sorry to hear that you've encountered problems running the batteryml code. Based on the screenshot you provided, it appears that you need to preprocess the code before running the training command. Here's the preprocessing command:(please replace /path/to/save/raw/data and /path/to/save/processed/data with your actual directories)

batteryml preprocess MATR /path/to/save/raw/data /path/to/save/processed/data

After that, you can run batteryml run ...

JingyiJia commented 5 months ago

I figure it out. I did not put the data/processed/MATR under the root directory which cause this problem. I appreciate your help!