Skip to main content

Time Series Generator

PyPI version travis codecov GitHub license

Description

Emulates Teras Tensorflow TimeSeriesGenerator functionality

Instalation

pip install time-series-generator

Usage

import numpy as np
from time_series_generator import TimeseriesGenerator

data = np.array([[i] for i in range(50)])
targets = np.array([[i] for i in range(50)])

data_gen = TimeSeriesGenerator(data, targets,
                                length=10, sampling_rate=2,
                                batch_size=2)
assert len(data_gen) == 20

batch_0 = data_gen[0]
x, y = batch_0
assert np.array_equal(x,
                        np.array([[[0], [2], [4], [6], [8]],
                                [[1], [3], [5], [7], [9]]]))
assert np.array_equal(y,
                        np.array([[10], [11]]))

Metadata

Release files for time-series-generator 0.0.4

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

Source distribution (sdist)

Source distribution for time-series-generator 0.0.4
File Size Uploaded Provenance Actions
time_series_generator-0.0.4.tar.gz 4.1 kB Without provenance Details for time_series_generator-0.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for time-series-generator 0.0.4
File Interpreter ABI Platform Actions
time_series_generator-0.0.4-py3-none-any.whl Python 3 none any Details for time_series_generator-0.0.4-py3-none-any.whl

Total release size: 9.6 kB

Release files / time_series_generator-0.0.4.tar.gz

Download URL time_series_generator-0.0.4.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
bd9c005874646cf3a86042a47135ba408760073bea71025c7a5aa8f40077b0d2
BLAKE2b-256 checksum
How to use checksums
63bf91d98a586cee9ef168add0efb6072cd0367b415270b48e2f02b8710c3a5a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.7

Release files / time_series_generator-0.0.4-py3-none-any.whl

Download URL time_series_generator-0.0.4-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b644775f9495852288407cd833348db67c8fa04ab15a4d4f464f1c0038045a74
BLAKE2b-256 checksum
How to use checksums
55d240d038028f8fe0597ea1037d16cbbca0f077e0239a0f4f122cbd4cdb5849
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.7

Security for time-series-generator 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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