Skip to main content

Forecat

Forecat is a Python package that provides a Keras-based forecast model builder.

Python Keras

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.

Metadata

Release files for forecat 0.0.3

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

Source distribution (sdist)

Source distribution for forecat 0.0.3
File Size Uploaded
forecat-0.0.3.tar.gz 14.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for forecat 0.0.3
File Interpreter ABI Platform
forecat-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 28.9 kB

Release files / forecat-0.0.3.tar.gz

Download URL forecat-0.0.3.tar.gz
Size 14.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d933c37953a07c9c48d57a9d94488c7543e41724139dc25572da279c79ca6d7e
BLAKE2b-256 checksum
How to use checksums
afc193e5ae3e0e7876d5b052839fa69e0c8116f29595fad0440537455aa6aefb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.11.0 Linux/6.2.0-1018-azure

Release files / forecat-0.0.3-py3-none-any.whl

Download URL forecat-0.0.3-py3-none-any.whl
Size 14.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1261a48b96d84a4d64dfa4df8590c450b4cc34b4f9ea016d5bc966a1409484d6
BLAKE2b-256 checksum
How to use checksums
8a6ad3e9881f45ae0a1666ed201220f45e48f73034b01e10fe131b8a327e4b56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.11.0 Linux/6.2.0-1018-azure

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

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