Skip to main content

Implementation of the EPGM model for time series forecasting.

Project description

EPGM: Energy Price Grey Model (2,1, Tau)

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 (Energy Price Grey Model) 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

Clone the repo and install locally:

git clone https://github.com/yourusername/epgm.git
cd epgm
pip install -e .

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.0.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.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: epgm_model-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 c849f76e0201a64b651c5f6aabe82bd69b4380766614007934f6063d28225fde
MD5 dace873a89590ac209cdf1e84a831522
BLAKE2b-256 d04dbdbf7ab4ff1d43c8a5328f96bee1d60b7299a8bba93ca8fcf691b46e817a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: epgm_model-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7e15b94372606b99baf45224c718888e630f5802137db685e8b6bc9cbbf0335f
MD5 06645460e91dd9c79d8cc0fb42c5053b
BLAKE2b-256 78d2712c6d1829a7aec7dfbb5a38db7dcfcfb80d2f889358ada7fe9e059aba6e

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