Time Series Generator
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)
| File | Size | Uploaded | |
|---|---|---|---|
| time_series_generator-0.0.4.tar.gz | 4.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| time_series_generator-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
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
|