Generalized drift diffusion modeling for Python
Project description
PyDDM - Generalized drift-diffusion models for Python
Overview
PyDDM is a simulator and modeling framework for generalized drift-diffusion models (DDM), with a focus on cognitive neuroscience.
Key features include:
- Models solved numerically using Crank-Nicolson to solve the Fokker-Planck equation (Backward Euler, analytical solutions, and particle simulations also available)
- Arbitrary functions for drift rate, noise, bounds, and initial position distribution
- Arbitrary loss function and fitting method for parameter fitting
- Optional multiprocessor support
- Optional GUI for debugging and gaining an intuition for different models
- Convenient and extensible object oriented API allows building models in a component-wise fashion
- Verified accuracy of simulations using novel program verification techniques
See the documentation, FAQs, or tutorial for more information. See the Github Forums for help from the PyDDM community. You can also sign up for release announcements by email.
Installation
Normally, you can install with:
$ pip install pyddm
If you are in a shared environment (e.g. a cluster), install with:
$ pip install pyddm --user
If installing from source, download the source code, extract, and do:
$ python3 setup.py install
System requirements
- Python 3.5 or above
- Numpy version 1.9.2 or higher
- Scipy version 0.16.0 or higher
- Matplotlib
- Paranoid Scientist
- Pathos (optional, for multiprocessing support)
- A C compiler (If you don't already have one, the easiest way to install one may be by installing Cython.)
Contact
For help on using PyDDM, see the Github Forums.
Please report bugs to https://github.com/mwshinn/pyddm/issues. This includes any problems with the documentation. Pull Requests for bugs are greatly appreciated.
Feature requests are currently not being accepted due to limited resources. If you implement a new feature in PyDDM, please do the following before submitting a Pull Request on Github:
- Make sure your code is clean and well commented
- If appropriate, update the official documentation in the docs/ directory
- Ensure there are Paranoid Scientist verification conditions to your code
- Write unit tests and optionally integration tests for your new feature (runtests.sh)
- Ensure all existing tests pass
For all other questions or comments, contact m.shinn@ucl.ac.uk.
License
All code is available under the MIT license. See LICENSE.txt for more information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for pyddm-0.6.1-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ec19518eb479df46cdcd49cd616c6ec0e2a8e21444bcea8a2a69ee51f66fb43 |
|
MD5 | 62c075554fdc123b2906f8a146a6ccae |
|
BLAKE2b-256 | f68f169e1c48738a7b50a29fc2f1aeba58caca84443f7e5642cdb37156ceea7a |
Hashes for pyddm-0.6.1-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 132183477d2f5dfa0a415d5e00e45f23691a3fd1e5e67cc4f3a7439198fc1f3a |
|
MD5 | 4c905d73437142346e35d67e4947b0a3 |
|
BLAKE2b-256 | 4aa05d39c6d6ddb40dc56f91f17221653e8401623210494782b392a1c43f8fdd |
Hashes for pyddm-0.6.1-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3136a06e4b16f252e1b6e34e23013c8c9ec67ea5176533d8134c0e020d46a6e |
|
MD5 | 784fe1309bba6e33e85dcb092bba447e |
|
BLAKE2b-256 | 1e12087d65c8acd3a408e5afd78d87e74deb32e8af3910a10a6332f52c806903 |
Hashes for pyddm-0.6.1-cp310-cp310-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc9c9ce580536d8a9c8aa9c6593e4d47cae68648b4000ddfc87ffa2fd6d9e033 |
|
MD5 | f69c9c0c0fa26f8ed6e7b509eef5eafb |
|
BLAKE2b-256 | 08e990f89e8792901e7d4017104b11b465a6db38a72bacc66d957b418a096c63 |
Hashes for pyddm-0.6.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 993889bdd433cb9265c0a2044241d9d3f3678e984dbb61777155fc1acb25abdf |
|
MD5 | 62fda150a9195832a0ff95d80874c0cd |
|
BLAKE2b-256 | 949e888b5858ad0944c13c4c155248eddea56b6225b47d6658130189b2c825f5 |
Hashes for pyddm-0.6.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f67a791e9ae2248372f6499b54a171f06fdb0bac4520d3544d0884d6fbc366d7 |
|
MD5 | 9f55e0a3fad759505ae3a3fe449185f7 |
|
BLAKE2b-256 | 348eb70921e3c0ff09c20403e28a674861a6e834cb995c59e24dacec109ff3c1 |
Hashes for pyddm-0.6.1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58a1199dcfb90386f17b77d895cd9d77d551149948a2fa15e6f0e4c4e283c5da |
|
MD5 | fba724a74809c142fbe2471f209de064 |
|
BLAKE2b-256 | e96c76dbfc90673cf7dc5ceab34559454c96552ae86ea384f5139c3505f86c93 |
Hashes for pyddm-0.6.1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a526cdd20416e4da68974c10f5d3e6553ff83a6fea3e9cfd97d5a40377246ec |
|
MD5 | c2b64a146c4426ebcf4b8feae5c35301 |
|
BLAKE2b-256 | 894622f6e67f27d6e860e51cd55ccded38f08d5188bd4736a29da3a5d737c705 |
Hashes for pyddm-0.6.1-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fe508a282ccbdb8db2f4d898f8a64487cc2b38f4866699663b07294a0ad560f |
|
MD5 | 4bd42d8bef95ee4fd615c54833bd16d2 |
|
BLAKE2b-256 | cfd27f802f7b9be3ec432269e720b824a15c6a02029aa286a2b8c6fdfef963ec |
Hashes for pyddm-0.6.1-cp39-cp39-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bacda0ef5181e8f8ec001da2b4d95b2f11804e9110d0d3cc0e289e1ddf761a70 |
|
MD5 | 3715c81535b4bb5ad7dd23e8d881dd15 |
|
BLAKE2b-256 | f3c4247bd0a6f25709ee9be0d1752952f9b1cfd2d1c5b3a55f2a5cd712d8d2c0 |
Hashes for pyddm-0.6.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64cd6ca6012b80d65bff5fd28172312247c251305de83439b75e3b7c2692ce84 |
|
MD5 | f3d216c9e39376c8db7147824f02ae6a |
|
BLAKE2b-256 | b51377fdc8253901ce38272d0cf6f0c003d6f40a58eaafe85ba95f678eab353e |
Hashes for pyddm-0.6.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b62660bc88c30e086682e082e7dd58bfcddc9380a6609e01e12efc7751a4fb0d |
|
MD5 | 524f9f3f85a2ce3131a676728d3e013d |
|
BLAKE2b-256 | 9fc266110d13a4ef3aaa6bfdb96068584a245664bbb78039ced4acdeffe91df2 |
Hashes for pyddm-0.6.1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 435b951b0faa1e26fbca88d1aa6fc0629d5ae575dc234386dfb7d44a5a587aaa |
|
MD5 | 0b482c52ab2384727dcfb734e42bac73 |
|
BLAKE2b-256 | 2421b7c60f815294d102ff9f594ce9e94493fd999c035672738096ccd4d25c5a |
Hashes for pyddm-0.6.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da7f39c0ccdfa7c09473b59ba7bc3c158e54d067e6563c7b4a29b6de7bd47981 |
|
MD5 | ed0cd7ad9f504cfbe886bf0087627bb2 |
|
BLAKE2b-256 | ca469b0a22cd76a30757c084494866bc36db3b1a5c1b946b7495ba9abbe101b5 |
Hashes for pyddm-0.6.1-cp38-cp38-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60d9020bb8001784f97adccc18baf1b15165abb48529bb2ad3e24486754fc062 |
|
MD5 | 8d191fadc45184017f1cd9158fc7c84c |
|
BLAKE2b-256 | 1b2d71b9a551582284d9ff7371795dcedcacb2418aefdf67918dda961adef304 |
Hashes for pyddm-0.6.1-cp38-cp38-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07933110bb6509843a40a709f83529eb3f2636b9c437f92947947962da20da41 |
|
MD5 | 6cd1fcd923d6ecdb5334e7ca831295c3 |
|
BLAKE2b-256 | be460791116c013f540b37504a8527168bac356e788bf0c8b7675db708c8da10 |
Hashes for pyddm-0.6.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62e71a2404d596e4a0bbfe0d4aecd15a3f010d119f3a17bdd649a26c3c1f2f46 |
|
MD5 | 7ed77be030d0309ff2d8ad6348ade41e |
|
BLAKE2b-256 | d6d52d34805cb914e8a6281b9f0499fcdb335d542bc85f0b039490e68a3dc0d5 |
Hashes for pyddm-0.6.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2ab69b18817062a088220ab41467d195c51d8dc636eceb7cf907e387fec54c5 |
|
MD5 | c01a569b87fdd1a67eaa839efb6480f4 |
|
BLAKE2b-256 | fa69029be21ce40a3c0af4809640e1194d7ba3729670c8243a9b0e8a0105ec32 |
Hashes for pyddm-0.6.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fba0af7ebeebec55612517e857fd68fab59f4bef0a36e3424402a887af646f9a |
|
MD5 | 06a1d2284b17ca2980474de9aa275170 |
|
BLAKE2b-256 | f7a86c991b8b189f1c021e108108a16777cb0cb011049a321c8cce87173d7c56 |
Hashes for pyddm-0.6.1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7d64f858eb67f17fbf69650553915e89be7736dbb23ab43d9590136f44868cc |
|
MD5 | 7f5482e37826a368b7e52b11ac3f0277 |
|
BLAKE2b-256 | 1a34ca1ae2a100e7c87df61671ac507d3daeb70328ae582089c7c63b8b9bf282 |
Hashes for pyddm-0.6.1-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 769013709d856032eae6995313bcbea022808c40bf93c9dc61b0130077978a96 |
|
MD5 | d020c8f31720949c4addc944a408911f |
|
BLAKE2b-256 | 08fc50295d6c597bfecc8842dabc8c8b8986ce739919aa697e1655a3d9f3722d |
Hashes for pyddm-0.6.1-cp37-cp37m-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02e9f1d57d4a292f318d29cf8acc791a4900791faafc0c140290015470bec02b |
|
MD5 | 326066142575bd8c78008d2a18dee09d |
|
BLAKE2b-256 | 8bf9b38bf5ee4482739c9a91d97e5442d42e8eeafb95a1309d391be3b2bebab5 |
Hashes for pyddm-0.6.1-cp37-cp37m-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35c351c225ea9ed461ba42f860c8a7a0df1c922b432794a3f101bcc5f59d4b09 |
|
MD5 | bbabe930e5ce0d4e3f2bbc9587573e5a |
|
BLAKE2b-256 | 5591d43b59c393adb92a5b0f0c9cf257278aed60c9e6cccb14926af601c8eabd |
Hashes for pyddm-0.6.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52972cec1138c2f29e37c66bcfc4b1be327f1829c96cfddf217713cc6bdfbd41 |
|
MD5 | 6630ce25d387552e15a76f72d2445de3 |
|
BLAKE2b-256 | 35cd576cc0d999f189fdf160004ba00ab9cff21053ac4e50494d6e5af797328d |
Hashes for pyddm-0.6.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1faeb16b744f5d90d666ce1ece55b1b43ea3e55266c10bfaa634515d4259421b |
|
MD5 | da7d8a9d6aee82048c2974bb7cea5f16 |
|
BLAKE2b-256 | 2ee9ddde6e40b0e136d2b0561c5925333b408e619290da948cdafe7c96746c79 |
Hashes for pyddm-0.6.1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac94a4423110bbe0e80ba528a693f8f22f5279a7978fec1167deae594bef76c4 |
|
MD5 | 647182ebfcd11a986b2965b620c641e0 |
|
BLAKE2b-256 | ef08161b3f2cde4c1eaeb9ddd70b923ec3d0c6bedc2084f2c777c38611ed70c2 |
Hashes for pyddm-0.6.1-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e96e635a3371cdde082af870ef0031b1aabf30488c0a6f6650ad365d1359a2a |
|
MD5 | 13ae552005907c9e185b011e0d592675 |
|
BLAKE2b-256 | e2c72a790cc12cf0446302487c291b390ca6989dbb717818497550a1a0bbd507 |
Hashes for pyddm-0.6.1-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e16ab4689d33a6dcdfba3e372fc38e3076b17ca41130035b2f936b951d6e1f14 |
|
MD5 | b44a929d99d99e805411db254c9dea5f |
|
BLAKE2b-256 | 50b01d60d807afa6743878f38e28b552d19e1dd6a11ba92036d04c3465e9b472 |
Hashes for pyddm-0.6.1-cp36-cp36m-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0b3b289194cd306a136d5e22e607c333ddbc997b8fddc75e312777e8e31c17f |
|
MD5 | 1d554c433b959f1a4bf5fc65731f3358 |
|
BLAKE2b-256 | a4fde19d1a9a2074f4bd99d3a6194e74500adcfc0453709476ecab4f019b6bf8 |
Hashes for pyddm-0.6.1-cp36-cp36m-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bae35b36985856dfc4be76429d91c363a9c9cfc97104346b1c3e9155ba3e2d6f |
|
MD5 | 276585fd22f32aed7ce73a948b7fb390 |
|
BLAKE2b-256 | 93ec9b7c2f5ba6a5cdac1c026a32c090caaf17421b8079e994e43813373c8488 |
Hashes for pyddm-0.6.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6537ff8559c210875511cc33bba5d999485ab425d13f7a2908151433a6f4964f |
|
MD5 | d966fd1e07024b28131435b98b7bc11c |
|
BLAKE2b-256 | d8add8bdcfcd974ed14470f84c31719ed3cb536f3837f4c24bf952b6b2d822ab |
Hashes for pyddm-0.6.1-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27d6c2b24cdd7206e7b0d8427605ab58e94a5744a2311a8b1532b6823ae6209e |
|
MD5 | d472360eee2579d1e6a9f9e822935398 |
|
BLAKE2b-256 | a3c8bb6ccbeaedec5d9c98d4324ef20878f78aab1ef60d10030047c8f714bc97 |
Hashes for pyddm-0.6.1-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9d2b4bfcad808b2458c28f81331d647e07f6c60d3bf8b0875d830f6e8f163f1 |
|
MD5 | cbcfb0ec512b4c93cfd05eecdd121d30 |
|
BLAKE2b-256 | b8e3a918f6b8a77e37d579cbb64d2cb06ab1553975b764ba14dd7b7e4f1c9214 |