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.2.0.zip
(9.1 kB
view hashes)
Built Distributions
Close
Hashes for psydapt-0.1.2.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 984ca44f918f800b4e8d9c3dc9d456fecd8bfcec94854da0515af606bb5ea568 |
|
MD5 | 6abf74139dc2b90bc358f21c3bb35021 |
|
BLAKE2b-256 | 8974e02c52ddf09256fa6e5d66b76b7251003e39c175eb6a6e1ac01c71e22048 |
Close
Hashes for psydapt-0.1.2.0-cp39-cp39-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0c44023dcc6407cd2c9474b623970e9ea1a129cd791684949f656801da5af23 |
|
MD5 | 01763127f1e615d0471c2c51d59765ef |
|
BLAKE2b-256 | 3c605b1740f029d03cc07bdefd70e98f49eb227c2ce8d19e35b810cfdde73413 |
Close
Hashes for psydapt-0.1.2.0-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4b7e745ee2e402f3f50f940e98f31b1f4bb548bd3fb88a2af78f1e1b8140310 |
|
MD5 | ac852c39aa1c12bb4a0101ce77eba771 |
|
BLAKE2b-256 | 6d3125b307ddcf82233e4be859081b482f16c35a489ed6d360683810b362e717 |
Close
Hashes for psydapt-0.1.2.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7943ebc9fbde5b54303c4f447c1ff38acdddcf692a13f3935cb4fb959542719d |
|
MD5 | b4640b08976b5bb183af3463d2726850 |
|
BLAKE2b-256 | f11f8d3924f4695cd90e6a7d2f1f7e50c76299524b83bfb5b9ba4720577a770f |
Close
Hashes for psydapt-0.1.2.0-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e90718ae5d0b26005f38448608ca4345fda34c04e78130db9ee49de776747338 |
|
MD5 | e90b44f85baf7a0c048e0ef176846fd5 |
|
BLAKE2b-256 | c256df140aad54ff47ebd81f7341b319b6212e215e3ce1f952329c04b9feda3d |
Close
Hashes for psydapt-0.1.2.0-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57a23f31146e52b1a59987ede7d767546d426a7b3ef7040e404e848a9f630af9 |
|
MD5 | 21ac63a52f29e26f53876506b8c28f7a |
|
BLAKE2b-256 | 639a9011d2e7f757e5953fa68a402a1a57379fa719ec4f8770461929818692f5 |
Close
Hashes for psydapt-0.1.2.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3871ee19ba6b3804c2c56606343f5db70aa6c4829b0e4a4c34484b2ef6d19564 |
|
MD5 | 297a03cf66c60e5a4dbd7b9e974729b5 |
|
BLAKE2b-256 | 0e065b0dd60840986707c7b46bdef5251e2032792a2d3319707dfedb32778233 |
Close
Hashes for psydapt-0.1.2.0-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87cb39962079f7da4bce7661cf8e7fbbdec497f1532e56a8a3417cad117a4c52 |
|
MD5 | 071340a2fdf80a5c88dbc6c123978a87 |
|
BLAKE2b-256 | 1aaaaf9b60025e425fee2c8f5a749313cbc51f95911098c34e7f50b558773531 |
Close
Hashes for psydapt-0.1.2.0-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14a1e365b4fd65f0bd11da0c15ffa9c48330660a204b4a08057495aebad28c49 |
|
MD5 | c7b447d0b7114cef8597f068bc1175fa |
|
BLAKE2b-256 | 7755a0c006527161725443c12119002f1813bc7935202403a296a2bcdd330666 |
Close
Hashes for psydapt-0.1.2.0-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a812ed9f40034592bf4c50bcfd99116e84bab548c7fe134fd8250930f0ac3b8 |
|
MD5 | a8091c3c7b4f9ab68ee267272feb7c36 |
|
BLAKE2b-256 | 91b87ad3db0dc8a7b68cb3ad788f3bb4bcbfafc298ec16a7f50f41a578b14e74 |
Close
Hashes for psydapt-0.1.2.0-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3cc1f99a6d4d93e19d1dedf1970d11be5f2f54d9115b6ce8b158b691eea05763 |
|
MD5 | 265c06aec2221364c34f5068376b2016 |
|
BLAKE2b-256 | 89239dbda0793286c0fbc4162e4567c1339dcd920170f685dcf99e79249a6e52 |
Close
Hashes for psydapt-0.1.2.0-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c13f7e7a74d9d335f0e61031bfbc5f626f7d9f1ede45eed94d09d01af5e1b05e |
|
MD5 | 43ecccff29d5d24cdb19b6f28d4a262c |
|
BLAKE2b-256 | 8a679bce7b252d3dc18475fa2015463c8e5d8013aa73f521383e8cc2afad9ba2 |