Keras based Forescast model builder
Project description
Forecat
Forecat is a Python package that provides a Keras-based forecast model builder.
It provides the arquitectures for CNN, LSTM, and Encoder Decoder, and even from imagery UNET. Any suggestions and tips are welcome. Use this to fastly have your forecast models ready to use!
Usage
To use Forecat, follow these steps:
pip install forecat
Since Forecat is based on keras-core you can choose which backend to use, otherwise it will default to tensorflow.
To change backend change the KERAS-BACKEND
enviromental variable. Follow this.
To get an arquiteture you only need to have a simple configuration and call the module:
import forecat
# The input arguments
input_args = {
"X_timeseries": 168,
"Y_timeseries": 24,
"n_features_train": 18,
"n_features_predict": 1,
}
# This is make a model with shapes:
# input_shape = (N, 168, 18)
# output_shape = (N, 24, 1)
forearch = forecat.CNNArch(**input_args)
# Now for Vanilla and Stacked CNN:
architecture_args = {}
VanillaCNN = forearch.architecture(**architecture_args)
architecture_args = {"block_repetition": 2}
StackedCNN = forearch.architecture(**architecture_args)
# Keras Models ready to use:
VanillaCNN.summary()
StackedCNN.summary()
Contribution
Contributions to Forecat are welcome! If you find any issues or have suggestions for improvement, please feel free to contribute. Make sure to update tests as appropriate and follow the contribution guidelines.
License
Forecat is licensed under the MIT License, which allows you to use, modify, and distribute the package according to the terms of the license. For more details, please refer to the LICENSE file.
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
File details
Details for the file forecat-0.0.3.tar.gz
.
File metadata
- Download URL: forecat-0.0.3.tar.gz
- Upload date:
- Size: 14.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.0 Linux/6.2.0-1018-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d933c37953a07c9c48d57a9d94488c7543e41724139dc25572da279c79ca6d7e |
|
MD5 | 5ee361adcdf5792f43730287c9ed50a4 |
|
BLAKE2b-256 | afc193e5ae3e0e7876d5b052839fa69e0c8116f29595fad0440537455aa6aefb |
File details
Details for the file forecat-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: forecat-0.0.3-py3-none-any.whl
- Upload date:
- Size: 14.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.0 Linux/6.2.0-1018-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1261a48b96d84a4d64dfa4df8590c450b4cc34b4f9ea016d5bc966a1409484d6 |
|
MD5 | 7df4e6eb2c9eb8e9f98af8055afda560 |
|
BLAKE2b-256 | 8a6ad3e9881f45ae0a1666ed201220f45e48f73034b01e10fe131b8a327e4b56 |