Bindings for psydapt (https://github.com/aforren1/psydapt)
Project description
Python bindings to https://github.com/aforren1/psydapt.
For now, see the C++ documentation for details: https://aforren1.github.io/psydapt/index.html
See the demos/ folder for examples.
Wheels are not yet on PyPI, but can be found under "Artifacts" in the latest successful workflow run here: https://github.com/aforren1/psydapt-py/actions
from psydapt import Scale
import psydapt.questplus as qp
from psydapt.staircase import Staircase
from psydapt.questplus import Weibull
x = Staircase(Staircase.Params(
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(Weibull.Params(
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.1.zip
(8.3 kB
view hashes)
Built Distributions
psydapt-0.1.1-cp39-cp39-win_amd64.whl
(131.1 kB
view hashes)
psydapt-0.1.1-cp38-cp38-win_amd64.whl
(133.0 kB
view hashes)
Close
Hashes for psydapt-0.1.1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c43d22dcdf20a55dfef406929343fa94b205e7c676570b7f756bd7b9e7f6aa39 |
|
MD5 | baf32749108166d3ac2dd8df9d05af1b |
|
BLAKE2b-256 | 69558a4c6d94c37fb88975977668bd4d4ee93ce5d86b7c9a1b92aa9277b05da8 |
Close
Hashes for psydapt-0.1.1-cp39-cp39-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44f36636b25907728dad85881b525e567ec423ce99cdb8dc61f37079beca3c2e |
|
MD5 | 69693d4e049d0161457b964563b258f2 |
|
BLAKE2b-256 | 01300b542f9946e86f2eacb873ea47ebace3be774d65be7f46cdae8c3e678d62 |
Close
Hashes for psydapt-0.1.1-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f59511f7c59a1d4bcd393c18821faa8153d8bdbf2b91a0812107cbbd48a13c4a |
|
MD5 | ae6c9f975c97d7151bf9fe1f58d10fc9 |
|
BLAKE2b-256 | 52e210cc81def3c455bcb08fc942e4e36291b49222048e97f72f717bfc6c303c |
Close
Hashes for psydapt-0.1.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 633ef65194d1e5ed61348de197e55b7ee220d8a404e10d542b8e82d40cf361db |
|
MD5 | 68fcf472d1a58cc7530135c85eff4b8e |
|
BLAKE2b-256 | cb06b45ed67c0eef9052b531d2e99f02d3c7515616323c064a718d275a3254ab |
Close
Hashes for psydapt-0.1.1-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a42239ce19b259a52ff271930776c197c66ed9c8d9f70babec19cc52d1bc45f0 |
|
MD5 | d447a502645a70b08421552c44fb6c0b |
|
BLAKE2b-256 | 18e7e3c45ee13b803a2e583de32562ec9e7c8b231d5cecad03a3c9118c3757fd |
Close
Hashes for psydapt-0.1.1-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2aee8443965f7792f012068b9c6280830d51999a747140a83e70adf0f1b61bc9 |
|
MD5 | 1aff039634b3303767387407af392b98 |
|
BLAKE2b-256 | 173f2d3ac9dbc9dfc80c1e382a7e542f52262799862269b88c4621fcb19ab3b7 |
Close
Hashes for psydapt-0.1.1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b12162513460273d32cd6f00219f734c579f54f09b283e0d60e2dc66dcc8db23 |
|
MD5 | c519ffde6a8d282b7f836fae5c4716cb |
|
BLAKE2b-256 | bd098325c0eea84ad7478d2d2ba9e293258a50223818b05c4a084f4e0926f86c |
Close
Hashes for psydapt-0.1.1-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a44b93b76bba79ca785a241e39c035b486d1f1a8208ab9ebc73be268fd4f0ac2 |
|
MD5 | c530966f22942e04a8754db34e9b5f56 |
|
BLAKE2b-256 | 96e41c00d5adc41252393bdb6512f89fa699b99d92c6746b37e2f37a3cce2ed6 |
Close
Hashes for psydapt-0.1.1-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b2dfbe15d3dbe6f9d350c96f1ad4383bfcb9452a69194590be4a19e5890d978 |
|
MD5 | 00f25a50906fa2b73884ebc4df2ee30c |
|
BLAKE2b-256 | 67aa3684969e815f7404cb6c88da669ab1ceead7b0d31ffc1cf0714ac803c908 |
Close
Hashes for psydapt-0.1.1-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63e954c892561461cf27e21d480069d69743da4df42eb7c9a1f1655c18e56b4b |
|
MD5 | e79828c3bce6c2201959d4c3fc75f32b |
|
BLAKE2b-256 | 4e2482023e48aaf7288794803fcab072c5250f56ad9310661264ca511a544418 |
Close
Hashes for psydapt-0.1.1-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa4e497fc9c6e986dfe95e92702f1f4e2f13515e983363e038b640818fcf5509 |
|
MD5 | e4cbc00aee5e08dfaa1a6a1c86eeecad |
|
BLAKE2b-256 | 84d05d7da494382125413d10de34ff24a585df1f5edbe7cd3a42306ad354b36d |
Close
Hashes for psydapt-0.1.1-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77a3b96824a8b2e863936303a28a999dd424ec23258a13e0c05360bcc3515013 |
|
MD5 | 858e63ebb7a461e3787476384ddba742 |
|
BLAKE2b-256 | 1d31ded101cc920f6e6b41e47211e8a0f261c457c9f0d6fbe6b135058c1edf42 |