Datasets
pulse2percept.datasets provides published psychophysical and video
datasets from the bionic vision community. load_* functions read small
bundled data; fetch_* functions download larger datasets on first use.
Loader |
Reference |
Contents |
Related model |
|---|---|---|---|
Argus I single- and paired-pulse thresholds, 2 subjects |
|||
Argus I brightness and size ratings vs amplitude and frequency, 1 subject |
|||
Argus I brightness ratings and thresholds, 2 subjects |
temporal models |
||
Phosphene fading: joystick-reported brightness over time |
temporal models |
||
Phosphene drawings from Argus I and Argus II users (66 MB download) |
|||
|
Outdoor scene videos (303 MB download) |
any model, as a
|
The example gallery reproduces [Horsager2009], [Nanduri2012] and [Beyeler2019] from these loaders.
Tabular loaders return a pandas DataFrame and accept filters, so a subject or electrode can be selected without post-processing:
import pulse2percept as p2p
data = p2p.datasets.load_horsager2009(subjects='S1', electrodes='C3')
Pandas is required for tabular datasets; some datasets also require HDF5 via
h5py.
Downloaded data
Fetched datasets are cached in ~/pulse2percept_data by default. Set the
PULSE2PERCEPT_DATA environment variable or pass a data directory directly
to a fetcher to use another location.
p2p.datasets.get_data_dir()
p2p.datasets.clear_data_dir()
clear_data_dir removes the cached files, so the next fetch downloads them
again.