pip install -e .
# or with uv:
uv syncScripts log to MLFlow, a machine learning experiment tracking software. This design choice allows to compare runs easily in the same UI.
Run one of the generate_discharge_history.py scripts.
- Specify
RAW_DATA_DIR, i.e. the location where to write the battery simulation data. For the multiple loading scenarios case, you can do the same withRAW_DATA_DIR_MULTI. - Copy-paste the MLFlow run ID to
DATA_GEN_RUN_ID(DATA_GEN_RUN_ID_MULTIfor the multiple scenarios case). - Set
MLFLOW_USE_LAST_TRAINED=trueif you plan to run the test script right after the corresponding training one. IfMLFLOW_USE_LAST_TRAINED=true, the program will prompt you to provide the experiment name and run ID for MLFlow to retrieve the correct run. - Set a meaningful
MLFLOW_EXPERIMENT_NAMEfor your numerical campaign.
- Make sure the data genration run ID is the correct one.
- Run one of the
_train.pyscripts to train the network. - Run the corresponding test script.
See CONTRIBUTING.md for full guidelines. Quick reference:
uv run pre-commit install # install hooks (once, before contributing)
uv run pytest # run all tests