https://github.com/anencore94/slidingwindowgenerator
convert time series data from dataframe to sliding window
https://github.com/anencore94/slidingwindowgenerator
hacktoberfest python tensorflow
Last synced: 11 months ago
JSON representation
convert time series data from dataframe to sliding window
- Host: GitHub
- URL: https://github.com/anencore94/slidingwindowgenerator
- Owner: anencore94
- License: apache-2.0
- Created: 2020-09-29T06:57:00.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-11T09:32:20.000Z (over 5 years ago)
- Last Synced: 2025-07-14T07:55:17.421Z (12 months ago)
- Topics: hacktoberfest, python, tensorflow
- Language: Jupyter Notebook
- Homepage:
- Size: 28.3 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SlidingWindowGenerator
- based on tensorflow v2.3.0
- use [timeseries_dataset_from_array function](https://www.tensorflow.org/api_docs/python/tf/keras/preprocessing/timeseries_dataset_from_array) which was introduced in tf v2.3.0
- This module converts time series data from dataframe type to sliding window type
- to use as input in RNN based layer
- This module was based on [tensorflow official docs](https://www.tensorflow.org/tutorials/structured_data/time_series#data_windowing), just aggregate some functions and add small tuning to use it more efficiently.
- to make it possible to control batch_size, sequence_stride_size and shuffle more freely.
# QuickStart
### 1) Install this module with pip
```shell
pip install slidingwindow_generator
```
### 2) How to Import
```
from slidingwindow_generator.slidingwindow_generator import SlidingWindowGenerator
SlidingWindowGenerator(...)
```
### 3) Detailed Example
- you can see detailed example with real data and RNN in `./tests/example.ipynb`