Skip to main content

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


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)

Uploaded Source

Built Distributions

psydapt-0.1.1-cp39-cp39-win_amd64.whl (131.1 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

psydapt-0.1.1-cp39-cp39-manylinux2010_x86_64.whl (174.1 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

psydapt-0.1.1-cp39-cp39-macosx_10_14_x86_64.whl (148.0 kB view hashes)

Uploaded CPython 3.9 macOS 10.14+ x86-64

psydapt-0.1.1-cp38-cp38-win_amd64.whl (133.0 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

psydapt-0.1.1-cp38-cp38-manylinux2010_x86_64.whl (174.0 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

psydapt-0.1.1-cp38-cp38-macosx_10_14_x86_64.whl (147.9 kB view hashes)

Uploaded CPython 3.8 macOS 10.14+ x86-64

psydapt-0.1.1-cp37-cp37m-win_amd64.whl (133.1 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

psydapt-0.1.1-cp37-cp37m-manylinux2010_x86_64.whl (175.7 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

psydapt-0.1.1-cp37-cp37m-macosx_10_14_x86_64.whl (144.0 kB view hashes)

Uploaded CPython 3.7m macOS 10.14+ x86-64

psydapt-0.1.1-cp36-cp36m-win_amd64.whl (133.0 kB view hashes)

Uploaded CPython 3.6m Windows x86-64

psydapt-0.1.1-cp36-cp36m-manylinux2010_x86_64.whl (175.8 kB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

psydapt-0.1.1-cp36-cp36m-macosx_10_14_x86_64.whl (143.9 kB view hashes)

Uploaded CPython 3.6m macOS 10.14+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page