Skip to content

Step-by-step reproduction

This example gallery contains tutorials for fine-tuning descending-drive parameters to match target firing rates or force levels. Examples 01–04 form a sequential chain and must be run in numbered order, since each example loads results saved by its predecessor.

  • 01 optimises the descending drive to reproduce a target motor-unit firing rate.
  • 02 uses those optimised parameters to compute the resulting muscle force.
  • 03 re-optimises the drive to hit a specific force target (e.g. 30 % MVC).
  • 04 extracts inter-spike intervals and their coefficient of variation across contraction ramps.

Examples 06 and 07 are command-line tools and stand apart from that chain:

  • 06 fits the descending-drive network (and the Gfluctdv noise scale) to rate-coding targets at several force levels from one trapezoidal ramp per trial, sequentially or with parallel Optuna workers.
  • 07 maps excitation to % MVC with ForceModel on an MVC ramp and writes spike trains for force-matched trapezoids from a parameter set fitted by 06.

Download all examples in Python source code: 02_finetune_python.zip

Download all examples in Jupyter notebooks: 02_finetune_jupyter.zip

Gallery generated by mkdocs-gallery