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.
Metadata
Release files for SweetSpot 1.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sweetspot-1.5.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for sweetspot-1.5.0-py2.py3-none-any.whl |
Release files / sweetspot-1.5.0-py2.py3-none-any.whl
| Download URL | sweetspot-1.5.0-py2.py3-none-any.whl |
|---|---|
| Size | 56.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
9197c1606a2e7286d8641c1b15ac4aa02b81f82c159cc096a980a4f7f7222b32
|
|
BLAKE2b-256 checksum How to use checksums |
3a13be02a96727b8e73d4107d8c5c2e3f6a137f42e18c66a3f1966866660fef2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Security for SweetSpot 1.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.