Time Series Generator
Project description
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]]))
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file time_series_generator-0.0.4.tar.gz.
File metadata
- Download URL: time_series_generator-0.0.4.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd9c005874646cf3a86042a47135ba408760073bea71025c7a5aa8f40077b0d2
|
|
| MD5 |
e4e7ddb5c961a6a73212c3297da29e9d
|
|
| BLAKE2b-256 |
63bf91d98a586cee9ef168add0efb6072cd0367b415270b48e2f02b8710c3a5a
|
File details
Details for the file time_series_generator-0.0.4-py3-none-any.whl.
File metadata
- Download URL: time_series_generator-0.0.4-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b644775f9495852288407cd833348db67c8fa04ab15a4d4f464f1c0038045a74
|
|
| MD5 |
e2193369e1ad1722f5d6e599abccc82f
|
|
| BLAKE2b-256 |
55d240d038028f8fe0597ea1037d16cbbca0f077e0239a0f4f122cbd4cdb5849
|