Skip to main content

A benchmarking tool for comparing different parameter optimization algorithms for ion channel models

Project description

ionBench

A benchmarking tool for comparing different parameter optimization algorithms for ion channel models.

Project Structure

The tree structure of this project is outlined below.

├───docs
├───ionbench
├───scipts
│   ├───text
│   └───figures
└───test

The docs directory contains information and guides on how to use the benchmarker problems and the optimisation algorithms.

The ionbench directory contains the majority of the code, including the benchmarker and problems classes and the different optimisation algorithms. This is what is installed using pip.

The scripts directory contains scripts for generating figures, tables and data for the paper.

The test directory contains unit tests for ensuring changes do not break previous functionality.

Installation

Installing ionBench package

The ionBench package can be installed from PyPI using pip.

pip install ionbench

Note that ionBench uses myokit to do its simulations, which relies on CVODES (from Sundials). For Linux and macOS users a working installation of CVODES is required. For Windows users, CVODES should be automatically installed with myokit.

Getting the scripts and results

The scripts are results from ionBench are available in this repo. If you also want access to these, you should:

  1. Clone the repository.
  2. Install ionBench locally using pip (navigate to the the root directory of the repo and run pip install -e .) or install ionBench from PyPI (pip install ionbench).
  3. Navigate to the scripts directory and run the scripts you are interested in.

Getting Started

If you want to use ionBench, check out the introduction.md and tutorial.ipynb in the docs directory.

Workflow

The intended workflow for using the benchmarker is to generate a benchmarker object, set up the optimisers modification and apply it to the benchmarker, and pass the benchmarker into the optimisation algorithm to evaluate. All optimisers should accept a single benchmarker as input with all other inputs being optional.

import ionbench

bm = ionbench.problems.staircase.HH()
modification = ionbench.optimisers.pints_optimisers.cmaes_pints.get_modification()
modification.apply(bm)
optimisedParameters = ionbench.optimisers.scipy_optimisers.nelderMead_scipy.run(bm)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ionbench-1.0.1.tar.gz (985.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ionbench-1.0.1-py3-none-any.whl (1.0 MB view details)

Uploaded Python 3

File details

Details for the file ionbench-1.0.1.tar.gz.

File metadata

  • Download URL: ionbench-1.0.1.tar.gz
  • Upload date:
  • Size: 985.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for ionbench-1.0.1.tar.gz
Algorithm Hash digest
SHA256 36cbe8ba56b2acba31ad7fd85920004879cb6ccb33f9350e8323411d1be1ac71
MD5 212eec0c6e7e228e14f55c0cd42773c2
BLAKE2b-256 e0efd89a50bfcfe2eaff6ed7fe5020f977e8fee20d97dd57db1f4c76bac436ec

See more details on using hashes here.

File details

Details for the file ionbench-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: ionbench-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for ionbench-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cbeec663116b27ae13c2313d624d9dc87377fb79a9e133b8ec6b633883cb3275
MD5 6f409903d2f22d1a0efab9dbc0730fa2
BLAKE2b-256 104b6074081275cb333367e4cbefe66a0416a61ad9e98e25288f157bfe2c6cf2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page