psychofit
A module for fitting 2AFC psychometric data.
The psychofit module contains tools to fit two-alternative psychometric data. The fitting is done using maximal likelihood estimation: one assumes that the responses of the subject are given by a binomial distribution whose mean is given by the psychometric function.
The data can be expressed in fraction correct (from 50 to 100%) or in fraction of one specific choice (from 0 to 100%). To fit them you can use these functions:
weibull50- Weibull function from 0.5 to 1, with lapse rate.weibull- Weibull function from 0 to 1, with lapse rate.erf_psycho- erf function from 0 to 1, with lapse rate.erf_psycho_2gammas- erf function from 0 to 1, with two lapse rates.
Functions in the toolbox are:
mle_fit_psycho- Maximumum likelihood fit of psychometric function.neg_likelihood- Negative likelihood of a psychometric function.
For more info, see:
Examples.ipynb- Examples of use of psychofit toolbox.
Matteo Carandini (2000-2017) initial Matlab code
Miles Wells (2017-2018) ported to Python
Metadata
Release files for Psychofit 1.0.0.post0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| Psychofit-1.0.0.post0.tar.gz | 5.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| Psychofit-1.0.0.post0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.9 kB
Release files / Psychofit-1.0.0.post0.tar.gz
| Download URL | Psychofit-1.0.0.post0.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
567885ea3ba9c07c672ed95b2ce6d6fb5e7647b8db7790d5431d6c6a54be509a
|
|
BLAKE2b-256 checksum How to use checksums |
c3770fd5233f9095450bcdcd8ac260147039408e8300f8215e775329ed4b9798
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.5
|
Release files / Psychofit-1.0.0.post0-py3-none-any.whl
| Download URL | Psychofit-1.0.0.post0-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d91782b87aa52e4d80dc7eecbb22c58f8feac1528a220ced30a4eebc3fdec1bb
|
|
BLAKE2b-256 checksum How to use checksums |
bc8468fa413b33c32cac843257602a35cc23cadf705eca7a059732f864bc1670
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.5
|