Registry / ai-ml / benchpots

benchpots

JSON →
library1pypypi✓ verified 85d ago

A Python toolbox for benchmarking machine learning on partially-observed time series. Supports preprocessing of 170+ open-source datasets including UCR&UEA, PhysioNet, air quality, electricity, and traffic data. Current version is 0.5, with active development on GitHub.

pip install benchpots
INSTALL
IMPORT
SIG · BENCHPOTS
B
benchpots
ai-mlpythonv1
Install
81.4s avg
Import
13577ms
Disk
5299MB
Pass rate
4/ 10
Env Coverage4 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
glibc
py 3.10
✕ build_error
✓ 91.1s
py 3.11
✕ build_error
✓ 85.4s
py 3.12
✕ build_error
✓ 76.4s
py 3.13
✕ build_error
✓ 72.6s
py 3.9
✕ build_error
✕ timeout
5299MB installed
● package 5299MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

preprocess_physionet2012
from benchpots.datasets import preprocess_physionet2012
Direct import from benchpots is available; e.g. from benchpots import preprocess_physionet2012 also works.
preprocess_ucr_uea
from benchpots.datasets import preprocess_ucr_uea
from benchpots import preprocess_ucr_uea
preprocess_ucr_uea is in the datasets submodule; importing from top-level benchpots may fail.

Download and preprocess the PhysioNet-2012 dataset.

from benchpots.datasets import preprocess_physionet2012 import os # Download and preprocess PhysioNet-2012 dataset data = preprocess_physionet2012( data_path=os.environ.get('DATA_PATH', './data'), artifact_path=os.environ.get('ARTIFACT_PATH', './results') ) print(data.keys())
Debug
Known issues
breakingIn v0.3.2, the sliding window function had a tensor sample stacking bug that was fixed. If you used v0.3.1 or earlier, sliding window outputs may have incorrect shapes.
fix
Upgrade to v0.3.2 or later: pip install benchpots>=0.3.2
affects: <=0.3.1
deprecatedThe preprocess_physionet2012 function may change its return format in future releases. It currently returns a dictionary with keys 'X', 'y', 'M', etc., but this is not guaranteed stable.
fix
Check return structure in each version's documentation.
affects: 0.5
gotchaSome datasets require manual download or specific file paths. For example, PhysioNet data must be downloaded separately. The function will not automatically fetch missing files.
fix
Pre-download the dataset files and provide the correct data_path.
affects: all
gotchaThe 'UCR&UEA' datasets with string labels in v0.2.1 and earlier caused loading errors. This was fixed in v0.2.2, but string labels are encoded into int. Be aware of label encoding changes.
fix
Upgrade to v0.2.2+ or manually encode labels.
affects: <=0.2.1
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'benchpots'
Package not installed.
fix
Run 'pip install benchpots' to install.
AttributeError: module 'benchpots' has no attribute 'preprocess_ucr_uea'
Function is in a submodule, not top-level.
fix
Use 'from benchpots.datasets import preprocess_ucr_uea' instead.
ValueError: Dataset not found at path
The required dataset files are missing from the specified data_path.
fix
Download the dataset files manually and set the correct data_path parameter.
Upgrade
Version history
1latest on PyPI · released Apr 27, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
19 hits · last 30 days
node
16
OpenAI (training)
1
Resources
benchpots — pip install benchpots · libregistry