Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

HMP

[!WARNING] We are transitionning to a stable version of HMP 1.0.0 by autumn 2026. There will be some bumps on the road sorry for that. The stable version 0.5.0 is usable but we recommend new users to start with the latest version as this will be closer to the future stable version (and is also the one presented on readthedocs: https://hmp.readthedocs.io/en/latest/welcome.html). In case of problem or questions because of the transition period don't hesitate to open issues, threads in the discussion section or drop an email to one of the contributor (e.g. see https://github.com/GWeindel).

HMP is an open-source Python package to analyze neural time-series (e.g. EEG) to estimate Hidden Multivariate Patterns. HMP is described in Weindel, van Maanen & Borst (2024, paper ) and is a generalized and simplified version of the HsMM-MVPA method developed by Anderson, Zhang, Borst, & Walsh (2016).

As a summary of the method, an HMP model parses the reaction time into a number of successive events determined based on patterns in a neural time-serie (e.g. EEG, MEG). Hence any reaction time (or any other relevant behavioral duration) can then be described by a number of cognitive events and the duration between them estimated using HMP. The important aspect of HMP is that it is a whole-brain analysis (or whole scalp analysis) that estimates the peak of trial-recurrent multivariate events on a single-trial basis. These by-trial estimates allow you then to further dig into any aspect you are interested in a signal:

  • Describing an experiment or a clinical sample in terms of events detected in the EEG signal
  • Describing experimental effects based on the time onset of a particular event
  • Estimating the effect of trial-wise manipulations on the identified event presence and time occurrence (e.g. the by-trial variation of stimulus strength or the effect of time-on-task)
  • Time-lock EEG signal to the onset of a given event and perform classical ERPs or time-frequency analysis based on the onset of a new event
  • And many more (e.g. evidence accumulation models, classification based on the number of events in the signal,...)

Documentation

The documentation for the latest version is available on readthedocs: https://hmp.readthedocs.io/en/latest/welcome.html

To get started

To get started with the code you can run the different tutorials in docs/source/notebooks after having installed HMP (see documentation)

Citation:

To cite the HMP method you can use the following paper:

Weindel, G., van Maanen, L., & Borst, J. P. (2024). Trial-by-trial detection of cognitive events in neural time-series. Imaging Neuroscience, 2, 1-28.

Download files

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

Source Distribution

hmp-1.0.0b4.tar.gz (63.9 MB view details)

Uploaded Source

Built Distribution

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

hmp-1.0.0b4-py3-none-any.whl (50.0 MB view details)

Uploaded Python 3

File details

Details for the file hmp-1.0.0b4.tar.gz.

File metadata

  • Download URL: hmp-1.0.0b4.tar.gz
  • Upload date:
  • Size: 63.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for hmp-1.0.0b4.tar.gz
Algorithm Hash digest
SHA256 9346fc5a7d5f1df707196fa987b959a45c30bb03c6dc32fa5e165f6fa2fe1bb4
MD5 5784fb3385a73200eb6e02bf483bf433
BLAKE2b-256 64baaba6ba7cba1244f29f5939ebb2adb90ca8e76fa262cf2e1ab4dfb024cefa

See more details on using hashes here.

File details

Details for the file hmp-1.0.0b4-py3-none-any.whl.

File metadata

  • Download URL: hmp-1.0.0b4-py3-none-any.whl
  • Upload date:
  • Size: 50.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for hmp-1.0.0b4-py3-none-any.whl
Algorithm Hash digest
SHA256 ac93a7dc2dd3ce8a9a4c8675e31b200e0c44da57dcb7caf455c3ab8855f924da
MD5 1296b1061f9ab795c193a296592d328a
BLAKE2b-256 48419319693b58a567d16e4ac80bf53102575760619949e48ad82c246ee15e3c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.0b4 This release

2 files

0.5.0

2 files

0.4.2

1 file

0.4.1

2 files

0.4.0

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page