GithubHelp home page GithubHelp logo

kanch91 / project-energy Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 0.0 50.21 MB

Time-series analysis of the electricity load consumption in the Mumbai Metropolitan Region.

Python 100.00%
exponential-smoothing-models moving-average deep-learning-models statistical-models sarimax arima lstm-model gru-model rnn-model keras-tensorflow

project-energy's Introduction

project-energy

This project is for analysing the time-series algorithms via a study of electricity load forecasting on univariate and multivariate datasets in the MM Region using various classical/moving averages (SMA, WMA, CMA, EMA), exponential smoothing methods (SES, DES, TES), statistical models (ARIMA, SARIMAX) & DL models (LSTM, GRU, RNN) for univariate and multivariate datasets using Keras API

Datasets

It is divided into two primary datasets:

  • Univariate dataset having only the load
  • Multivariate dataset having weather (Temperature, Dew Point, Humiditiy, Wind Speed, Pressure) as well as the load

Models

Each of the dataset forecasts using the following methods:

  • Classical Methods: SMA, WMA, CMA, EMA
  • Exponential Methods: SES, DES, TES
  • Deep Learning Models: LSTM, GRU, RNN
  • Statistical Models: ARIMA, SARIMAX

project-energy's People

Contributors

imgbotapp avatar kanch91 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

project-energy's Issues

Issue using es_models and SARIMAX_model

Hello can u please help me figure this out.
using es_models
Traceback (most recent call last):
File "C:\Users\petuu\Desktop\project-energy-master\es_models.py", line 216, in
mse_tes, rmse_tes, r2_tes, y_tes = triple_exponential_smoothing(season, y_test)
File "C:\Users\petuu\Desktop\project-energy-master\es_models.py", line 121, in triple_exponential_smoothing
tes_model = ExponentialSmoothing(y_test, seasonal_periods=season, trend='add', seasonal='add').fit(use_boxcox=True)
File "G:\anaconda\envs\depp-ts\lib\site-packages\pandas\util_decorators.py", line 207, in wrapper
return func(*args, **kwargs)
File "G:\anaconda\envs\depp-ts\lib\site-packages\pandas\util_decorators.py", line 207, in wrapper
return func(*args, **kwargs)
File "G:\anaconda\envs\depp-ts\lib\site-packages\pandas\util_decorators.py", line 207, in wrapper
return func(*args, **kwargs)
File "G:\anaconda\envs\depp-ts\lib\site-packages\statsmodels\tsa\holtwinters\model.py", line 1094, in fit
raise ValueError(
ValueError: use_boxcox was set at model initialization and cannot be changed

using SARIMAX_model
Traceback (most recent call last):
File "statsmodels\tsa\statespace_kalman_smoother.pyx", line 1000, in statsmodels.tsa.statespace._kalman_smoother.dKalmanSmoother.allocate_arrays
numpy.core._exceptions._ArrayMemoryError: Unable to allocate 697. MiB for an array with shape (51, 51, 35135) and data type float64
Exception ignored in: 'statsmodels.tsa.statespace._kalman_smoother.dKalmanSmoother.reset_filter_method'
Traceback (most recent call last):
File "statsmodels\tsa\statespace_kalman_smoother.pyx", line 1000, in statsmodels.tsa.statespace._kalman_smoother.dKalmanSmoother.allocate_arrays
numpy.core._exceptions._ArrayMemoryError: Unable to allocate 697. MiB for an array with shape (51, 51, 35135) and data type float64
Traceback (most recent call last):
File "C:\Users\petuu\Desktop\project-energy-master\sarimax_model.py", line 85, in
results = model.fit()
File "G:\anaconda\envs\depp-ts\lib\site-packages\statsmodels\tsa\statespace\mlemodel.py", line 728, in fit
res = func(mlefit.params, transformed=False, includes_fixed=False,
File "G:\anaconda\envs\depp-ts\lib\site-packages\statsmodels\tsa\statespace\mlemodel.py", line 886, in smooth
result = self.ssm.smooth(complex_step=complex_step, **kwargs)
File "G:\anaconda\envs\depp-ts\lib\site-packages\statsmodels\tsa\statespace\kalman_smoother.py", line 410, in smooth
smoother = self._smooth(smoother_output, results=results, **kwargs)
File "G:\anaconda\envs\depp-ts\lib\site-packages\statsmodels\tsa\statespace\kalman_smoother.py", line 360, in _smooth
smoother()
File "statsmodels\tsa\statespace_kalman_smoother.pyx", line 1214, in statsmodels.tsa.statespace._kalman_smoother.dKalmanSmoother.call
File "statsmodels\tsa\statespace_kalman_smoother.pyx", line 1239, in statsmodels.tsa.statespace._kalman_smoother.dKalmanSmoother.next
File "statsmodels\tsa\statespace_kalman_smoother.pyx", line 1435, in statsmodels.tsa.statespace._kalman_smoother.dKalmanSmoother.initialize_smoother_object_pointers
AttributeError: Memoryview is not initialized

Add GRU

Predict using a GRU network

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.