Time-based k-fold validation splits for heterogeneous data.
Project description
Time Split
Time-based k-fold validation splits for heterogeneous data.
Folds plotted on a two-by-two grid. See the examples page for more.
What is it?
A library for creating time-based cross-validation splits of heterogeneous data, such as raw transaction data with strong non-stationary characteristics.
Highlighted Features
- Splitting schedules based on a fixed interval, a CRON-expression, or a pre-defined list.
- Data selection based on a timedelta, or the splitting schedule itself.
- Automatically extract and normalize data limits for supported data types.
- Plotting function for visualization of folds. Display fold sizes (hour/row count), or use custom text.
- Integrations for popular
libraries such as
pandas
,polars
andscikit-learn
. - Convenient web application for exploring folds with different parameters.
Experimenting with parameters
The Time Fold Explorer application (available here) is designed to help evaluate the effects of different parameters. To start it locally using Docker, run
docker run -p 8501:8501 rsundqvist/time-split
in the terminal. You may use
create_explorer_link()
to build application URLs with preselected splitting parameters.
Installation
The package is published through the Python Package Index (PyPI). Source code is available on GitHub: https://github.com/rsundqvist/time-split
pip install -U time-split
This is the preferred method to install time-split
, as it will always install the
most recent stable release.
If you don't have pip installed, this Python installation guide can guide you through the process.
License
Documentation
Hosted on Read the Docs: https://time-split.readthedocs.io
Contributing
All contributions, bug reports, bug fixes, documentation improvements, enhancements, and ideas are welcome. To get started, see the Contributing Guide and Code of Conduct.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file time_split-0.6.0.tar.gz
.
File metadata
- Download URL: time_split-0.6.0.tar.gz
- Upload date:
- Size: 32.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 663dee1df20968e16105ec0c3352d1a4ee90ac278f1e109a5a13c83897005490 |
|
MD5 | ec1d2a5012fbf7ceae51c9d8ed7aa67f |
|
BLAKE2b-256 | 6466c0c86d89a70b07a5a398b57c366d7697894592749b279dbd43d59251a632 |
File details
Details for the file time_split-0.6.0-py3-none-any.whl
.
File metadata
- Download URL: time_split-0.6.0-py3-none-any.whl
- Upload date:
- Size: 41.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e1d3c7d3a73df983e29ffb6cfb811bb2c44fabe9026382bad2598bdf2b72bbe |
|
MD5 | 1555e0f7c14242d30c75868c17f75643 |
|
BLAKE2b-256 | 4d341ffd0485df2f13ddb3bbcdbaaf2bf672f69111e13fce9fb079e6ef43d73a |