Skip to main content

tspace

Overview

tspace is an data pipleline framework for deep reinforcement learning with IO interface, processing and configuration

  • Working in training and inferrence mode
    • logging and monitoring with cutelog or TUI interface
    • cascaded threading pool for well-structured Scheduling of ETL and ML pipelines
    • Customized Exception handling
    • Graceful shutdown
    • online and offline training
    • local and distributed training
  • Support for multiple models
    • reinforcement learning models with DDPG
    • time sequence models with LSTM and Transformer
  • Data pipeline compatible to both ETL and ML dataflow
    • Support for multiple data sources (local CAN or remote cloud object storage)
    • Support both NoSQL database and local or cloud data storage through Dask with Parquet and Avro interface
    • Full Pandas DataFrame support with raw json codecs
    • Configuration system for vehicles, drivers, data sites, neural network hyperparameters, database, HMI types, etc
    • Timezone aware time sequence data processing
    • Data object meta-info processing and storage linked to configuration system
    • Stateful time sequence processing with sequential model
    • Type hint for data processing and configuration
    • Pydantic integration
Overview of tspace architecture

The diagram shows the basic architure of tspace. The main components are:

  • Avatar: orchestrates the whole ETL and ML workflow.
  • Data Object: The data object is a container for the data. It contains the raw data, the metainfo and the configuration. The data object is passed through the data pipeline and can be modified by the processing components.
  • Data Pipeline: The data pipeline is a sequence of processing components. Each processing component takes a data object as input and returns a data object as output. The data pipeline is responsible for transforming the data object into a format that can be used by the machine learning model.
  • Machine Learning Model: The machine learning model is responsible for training and inferencing. It takes the data object as input and returns a prediction as output. The machine learning model can be a reinforcement learning model, a time sequence model or any other type of model.
  • Configuration System: The configuration system is responsible for storing and managing the configuration of the data pipeline, the machine learning model and other components. The configuration system is used to configure the data pipeline, the machine learning model and other components.
  • Logging and Monitoring: The logging and monitoring component is responsible for logging and monitoring the data pipeline, the machine learning model and other components. It provides real-time feedback on the performance of the data pipeline and the machine learning model.
  • Exception Handling: The exception handling component is responsible for handling exceptions that occur during the execution of the data pipeline, the machine learning model and other components. It provides a mechanism for gracefully handling errors and recovering from failures.

TODO

  1. Add time sequence embedding database support with LanceDB for TimeGPT
  2. Batch mode for large scale inference and training with Unit of Work pattern

How to use

Install

pip install tspace

Fill me in please! Don’t forget code examples:

1+1
2
# say_hi("world")
foo()
'foo'

Metadata

Release files for tspace 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tspace 0.0.1
File Size Uploaded
tspace-0.0.1.tar.gz 113.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tspace 0.0.1
File Interpreter ABI Platform
tspace-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 254.0 kB

Release files / tspace-0.0.1.tar.gz

Download URL tspace-0.0.1.tar.gz
Size 113.3 kB
Tags Source
SHA-256 checksum
How to use checksums
6a9b894afe4e73279994618eb412f8aa921d6d413a02692680ea86445e7dabb1
BLAKE2b-256 checksum
How to use checksums
4f20203ed05d740b0545cb95cc6a84eeb41c9c607e55f45bdde13f54a3a4bdd9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.11.9

Release files / tspace-0.0.1-py3-none-any.whl

Download URL tspace-0.0.1-py3-none-any.whl
Size 140.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f1fd443eccb56b8db2837372c2c1885ff1bd19c97e8b7a8b3b792046e4fda36b
BLAKE2b-256 checksum
How to use checksums
912452f00ff863fb622533dd23366e01e9bc70226bcbb5c59fd7447386a69d05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.11.9

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page