Skip to main content

Implementation of the EPGM model for time series forecasting.

Project description

EPGM (2,1, Tau)

PyPI version

An open-source Python implementation of the EPGM(2,1,Tau) model from the paper:
A novel dynamic time-delay grey model of energy prices and its application in crude oil price forecasting
https://doi.org/10.1016/j.energy.2022.123968


Overview

EPGM is a second-order grey forecasting model designed to improve traditional grey models by incorporating a time delay parameter Tau.

This implementation allows fitting and forecasting with the EPGM(2,1,Tau) model, supporting parameter optimization using simulated annealing, regularized regression, and multi-step ahead prediction.


Features

  • Fit EPGM(2,1,Tau) model on univariate time series data
  • Optimize model parameters (r1, tau, regularization alpha) via simulated annealing
  • Support both unregularized least squares and Ridge regression solvers
  • Predict future values with option to constrain predictions to positive values
  • Handles data normalization internally
  • Built-in evaluation using Mean Absolute Percentage Error (MAPE)
  • Plotting utilities for visualizing test set performance

Installation

pip install epgm_model

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

epgm_model-0.1.1.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

epgm_model-0.1.1-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file epgm_model-0.1.1.tar.gz.

File metadata

  • Download URL: epgm_model-0.1.1.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.18

File hashes

Hashes for epgm_model-0.1.1.tar.gz
Algorithm Hash digest
SHA256 56f2f544402b664299b7daec749724cd39e02764dca2cd4c877096534d2be049
MD5 8ff278f596484476d966aaa105accb6a
BLAKE2b-256 9bc087dd931b6bd455566d7bce6e53e3c7df110ef024e05c4804e65f0dd54729

See more details on using hashes here.

File details

Details for the file epgm_model-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: epgm_model-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.18

File hashes

Hashes for epgm_model-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4043ee52ef3728b7b1be843a2addfa7a36f831a69d8f73c74c27cc9e60504451
MD5 991aa5e429d80a6756d1f67f2683bf75
BLAKE2b-256 d8f14c8c44ceb8d3c0c4be78be96cb943f9886dce19562d3d6cde683c591380c

See more details on using hashes here.

Supported by

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