Bindings for psydapt (https://github.com/aforren1/psydapt)
Project description
Python bindings to https://github.com/aforren1/psydapt.
To install, either install from PyPI (pip install psydapt
), or find the latest wheels under "Artifacts" here: https://github.com/aforren1/psydapt-py/actions. Windows users may need the Microsoft Visual C++ runtime DLLs. One easy way to acquire those is via pip install msvc-runtime
.
For now, see the C++ documentation for details: https://aforren1.github.io/psydapt/index.html
See the demos/ folder for examples.
from psydapt import Scale
import psydapt.questplus as qp
from psydapt.staircase import Staircase
from psydapt.questplus import Weibull
x = Staircase(
start_val=0.5,
n_reversals=3,
step_sizes=[0.01, 0.001],
n_trials=20,
n_up=4,
n_down=3,
apply_initial_rule=True,
stim_scale=Scale.Linear,
min_val=0
)
intensities = [-3.5, -3.25, -3, -2.75, -2.5,
-2.25, -2, -1.75, -1.5, -1.25,
-1, -0.75, -0.5]
y = Weibull(
stim_scale=Scale.Log10,
intensity=intensities,
threshold=intensities,
slope=[0.5, 4.125, 7.75, 11.375, 15],
lower_asymptote=[0.01, 0.1325, 0.255, 0.3775, 0.5],
lapse_rate=[0.01],
stim_selection_method=qp.StimSelectionMethod.MinEntropy, # only MinEntropy for now
param_estimation_method=qp.ParamEstimationMethod.Mean, # currently unused
n=5, # currently unused
max_consecutive_reps=2, # currently unused
random_seed=1 # currently unused
)
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
psydapt-0.1.3.0.zip
(9.2 kB
view hashes)
Built Distributions
Close
Hashes for psydapt-0.1.3.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e430222eb95745521bb9852ed3dee5ff7d42371bcdadd33f8954fde28460dc0c |
|
MD5 | ea1a5b4259b07d82e59a2c78fb45f1ab |
|
BLAKE2b-256 | 8b34af766f4955dca11813dd1a6a7d1316e17e62b37839965f2222b9d969995d |
Close
Hashes for psydapt-0.1.3.0-cp39-cp39-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | afdae2f2e3b471163986278ba05ca7597f4b34bae6833a95970e13324fa79b45 |
|
MD5 | 95ee40c1e10763b62df10f562c93005c |
|
BLAKE2b-256 | 7ad0f1b617dc8d9de6b64244cba73d483616be884d33c8b3c7ac7f6a13b13272 |
Close
Hashes for psydapt-0.1.3.0-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1c68ca7359be2d3c185ca14a2e05663ba14189842b9343d14a3d27193d770b8 |
|
MD5 | c4c37167f7ed89c963512b92037bf7ac |
|
BLAKE2b-256 | 355ffb8d793e72d7d1fb24cb8619a0b2cc7acd0a6f1114e55db5cf2d203c726d |
Close
Hashes for psydapt-0.1.3.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71d0094a074db9f2bb3529ed9c5b922bc7ad7de2f0768b0dd443056ac5c78db3 |
|
MD5 | c55788b503ee152c214bd4356da555d1 |
|
BLAKE2b-256 | 6582ac9e947d669cd010cfd0740c2c824b2a41db839da869c0074379e414c2b8 |
Close
Hashes for psydapt-0.1.3.0-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fea5bb99f9125347b91d84cfdfab434fabffd4fd6a4e5a618683f1acff46eac3 |
|
MD5 | 17cc1ec89d8a29e3c6ba2dd089a25f01 |
|
BLAKE2b-256 | 66dca6a786268598973826c7514b85abba2266fb7821ab39fec0fe86cb1c0180 |
Close
Hashes for psydapt-0.1.3.0-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc6ea76e68bd053c54dc214d07d5528445d795a2b036883da87029741c6780ec |
|
MD5 | a6237ce72ab61ac6f59a0fe4c829c4f2 |
|
BLAKE2b-256 | 291df018c6054b94cb8b7b4b0763acd46a430da69694d175971d45c2d40a312f |
Close
Hashes for psydapt-0.1.3.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ddc5ea1b4bb9dd66c7a17bfd20dfa2b6c7b91c8d98326c74dd6fd1cd391f7601 |
|
MD5 | 6acf8b2a93205c27a15bc93cac7674ea |
|
BLAKE2b-256 | 65905501830d0b753f3ed0655ef6e27cc7421252358bc078cd9a0d2b5add1a64 |
Close
Hashes for psydapt-0.1.3.0-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e18ae268306965617d71bd653694d06b4ce10e5dc23a2128ae88e3ebfe8fe3b9 |
|
MD5 | 5c78b2e92d14a82a2104552bce2e1818 |
|
BLAKE2b-256 | 4a82b42e73d9b95ce076284a387d7db4422f4575b5e7a9d90f4134615348e94c |
Close
Hashes for psydapt-0.1.3.0-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 896fe239cd4addf055de1ccc1eb5175f6f4be1188a053e4dfde950ac4a866745 |
|
MD5 | 6bbc4af8be653c76cb8dc9472b2517fc |
|
BLAKE2b-256 | eb55ddd20f70e840da99e2f370bef2db74cbc29c5c35a3dec8265e69825b9f6d |
Close
Hashes for psydapt-0.1.3.0-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5c5f21c70aef00b715afeb79cf2504afb620c88e800e03a9e40b85c1c3f4260 |
|
MD5 | ed3d7633160775e0cc203d0f3c59fad0 |
|
BLAKE2b-256 | 758c1a2c01996e6f6a0341b5d3ebc4f8cbef7ad01ac9838b4a870a2e4b63d057 |
Close
Hashes for psydapt-0.1.3.0-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfabe67000964b981d0865b0dfde0804a93ed8b4b0c8f659f740057e7a70f7a5 |
|
MD5 | 799e257f725d143a2f8d4b7df5914162 |
|
BLAKE2b-256 | 95d1faace95467132346b95e7945e7681b1511ee7346a0a5995058ad5edb0df5 |
Close
Hashes for psydapt-0.1.3.0-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54429efbf6806175f8b373ef7bebfacde588dbd666fd26c2ccb4eb2d359b1716 |
|
MD5 | 08553b55aaee724493d497a619935713 |
|
BLAKE2b-256 | 4aabfbbbdae385edb8639133c0cc94240f6745a69d467d10d3651c3191583d1f |