Skip to main content

Keras based Forescast model builder

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

forecat-0.0.2.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

forecat-0.0.2-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file forecat-0.0.2.tar.gz.

File metadata

  • Download URL: forecat-0.0.2.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.0 Linux/6.2.0-1014-azure

File hashes

Hashes for forecat-0.0.2.tar.gz
Algorithm Hash digest
SHA256 2012585e66b6057b1b678a812baa6ef694e485d0ec460a49dbe4ceb7cc2998ed
MD5 86594313a134f6989b54ad765a483863
BLAKE2b-256 a97c49ec671a54883459ae156f9db3e6edad1e607bfaa27fbfd8df7bd0882ee7

See more details on using hashes here.

File details

Details for the file forecat-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: forecat-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 12.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.0 Linux/6.2.0-1014-azure

File hashes

Hashes for forecat-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 adb1d325e9af7f26e0e4c3a481ae84b38a2315b85e50981cb5bd39eb79246c9a
MD5 679cdc53bfd428b89e5aa6f3eea29dc1
BLAKE2b-256 e2357e181928e428d49e3b04e4ee9ac06af31eb4a28a363f5a934e0114ca1b8f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page