Code accompanying our paper for preprocessing, dataset construction, and supervised training of classification / prediction models on multichannel EMG windows.
Option A — pip:
pip install -r requirements.txtOption B — conda: use environment.yml as a starting point and remove packages that do not match your OS (the file was exported from a development machine).
After obtaining data (see DATA.md), place it under raw_data/ as documented there. Defaults in the Python scripts assume raw_data and write processed splits to data/.
-
Preprocess (classification + prediction, multiple window lengths):
bash scripts/generate_data.sh
-
Train classifiers / predictors:
bash run_classify.sh bash run_predict.sh
Set
PYTHON_BINif your interpreter is notpythononPATH, e.g.PYTHON_BIN=python3 bash run_classify.sh.
run_classify.sh / run_predict.sh use --skip_pretrain on the supervised pretrain stage inside train_*.py and save finetuned weights to checkpoints/.
TBD