Socket
Socket
Sign inDemoInstall

time-split

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

time-split

Time-based k-fold validation splits for heterogeneous data.


Maintainers
1

Time Split

Time-based k-fold validation splits for heterogeneous data.


PyPI - Version PyPI - Python Version Tests Codecov Read the Docs PyPI - License Docker Image Size (tag)

Plotted folds on a two-by-two grid.

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 and scikit-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 Image Size (tag) 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

MIT

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.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc