How to skip the model dialogs
This guide shows you how to open a session with the models already chosen, so you can select a prediction straight away.
Prerequisites
The
ephysatlasextra installed (see How to install the optional extras).The example script
examples/launch_with_local_prediction.pyfrom the repository.A session YAML with a
featuresdataset (see How to give each shank its features file).
Steps
Run the script with the session YAML, and a
--model-dirfor every model you have stored locally:python examples/launch_with_local_prediction.py \ --yaml /path/to/session.yaml \ --model-dir /path/to/ea-decoder-channel-xgboost/<release> \ --model-dir /path/to/ea-encoder-channel/<release>
Each
--model-diris a release directory holding anephysatlas_model.json, which says which model it is. Models without a--model-dirare downloaded from the Hugging Face Hub at their default release.When the window opens, select a prediction from
Prediction Plots, such asXGBoost region predictionorAuto-alignment. It runs without asking for a model.