Efficient psychophysical adaptive procedures
Project description
SweetSpot is a small Python package for adaptive psychophysical procedures and
psychometric-function estimation. It is intended to keep the core experimental
logic lightweight and explicit, with numpy as the only required numerical
dependency and matplotlib optionally used for visualization and diagnostics.
The package provides:
-
PsychophysicalData, for storing and collating stimulus/response data. -
PsychometricFunction, a four-parameter psychometric-function model with configurable sigmoid shapes, priors, parameter grids, likelihoods, posterior summaries, and simulated responses. -
PsychometricLinkFunctionsubclasses such asLogisticandGumbel. Weibull behavior is represented as a Gumbel function in log-stimulus space, viaLogTransform, which avoids the numerical awkwardness of native Weibull parameterizations near zero. -
Parameterizable prior distributions such as
Gaussian, with mutable named properties (mu,sigma) and change notifications that support live visualization of the effect of the prior. -
WUD, an implementation of Kaernbach's weighted up-down staircase: a simple, useful, old-fashioned adaptive procedure. -
QUEST, a classic Watson-and-Pelli-style Bayesian threshold tracker, built on the same posterior-update machinery as the more general Bayesian procedures. -
PsiMarginal, a discrete-grid implementation of Prins's psi-marginal method. It maintains a posterior over psychometric-function parameters, marginalizes over nuisance parameters, and chooses stimuli to reduce uncertainty in the parameter or parameters of interest. WithparameterOfInterest='alpha,beta'and fixed asymptote parameters, it can also be configured to behave like the classic Psi method of Kontsevich and Tyler. -
Simulate(), a convenience function for testing adaptive procedures against simulated observers and visualizing their behavior.
SweetSpot is public-domain software released under CC0.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sweetspot-1.4.0-py2.py3-none-any.whl.
File metadata
- Download URL: sweetspot-1.4.0-py2.py3-none-any.whl
- Upload date:
- Size: 52.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8756c217a313aadc797c3ce75b4dc30333b5ba4902beeecdf20367db5137943b
|
|
| MD5 |
c808c4b22ab7dc70ad6a90d9f75f9c31
|
|
| BLAKE2b-256 |
7239a8a6297d018b04fe5eeae0012720e495ab1e1b73a708c72528bffb36230c
|