A small package for loading and handling UEA UCR time series classification datasets.
Project description
uea_ucr_datasets
This package contains convenience functions and classes to access the UEA UCR time series classification archive.
Currently it contains the following functionalities:
Dataset
class: Loads UEA UCR dataset stored in thesktime
format from~/.data/UEA_UCR/
or path provided via theUEA_UCR_DATA_DIR
environment variable. This class is compatible with the pytorchDataLoader
class.list_datasets
: List datasets available in the~/.data/UEA_UCR/
folder or path provided via theUEA_UCR_DATA_DIR
Example usage
Download the sktime
version of the UEA and UCR datasets. And unpack them.
Move the folders of the individual datasets to the path ~/.data/UEA_UCR
.
>>> import uea_ucr_datasets
>>> uea_ucr_datasets.list_datasets()
['LSST',..]
>>> d = uea_ucr_datasets.Dataset('UWaveGestureLibrary', train=True)
>>> first_instance = d[0]
>>> instance_x, instance_y = first_instance
Alternative data paths
You can also store the data at another location, then it is required to set the
environment variable UEA_UCR_DATA_DIR
appropriately such that the package can
find the datasets.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
uea_ucr_datasets-0.1.0.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for uea_ucr_datasets-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80f8f5198162ecbb09fd81038ddcd92d43bfbdd9aa32c9a235bc1f50d3123875 |
|
MD5 | b9683d78555a4533f135fbfca2716645 |
|
BLAKE2b-256 | d6a24b6616a32454939ad1dc07c5a1a27d047a4cd37da831c42c76de653d2f73 |