Git Product home page Git Product logo

ceemdan-vmd-gru's Introduction

CEEMDAN-VMD-GRU

CEEMDAN-VMD-GRU Forecasting model (a light version of CEEMDAN_LSTM) is a Python project for decomposition-integration forecasting models based on EMD methods and LSTM. It is a relatively imperfect module but beginners can quickly use it to make a decomposition-integration prediction by CEEMDAN, Complete Ensemble Empirical Mode Decomposition with Adaptive Noise (Torres et al. 2011), and LSTM, Long Short-Term Memory recurrent neural network (Hochreiter and Schmidhuber, 1997). If you use or refer to the content of this project, please cite paper: (F. Zhou, Z. Huang, C. Zhang, Carbon price forecasting based on CEEMDAN and LSTM, Applied Energy, 2022, Volume 311, 118601, ISSN 0306-2619.)

Pay attention to the look-ahead bias in this program.

Start to predict

0. Load raw data

Change CODE and PATH to load dataset from a csv file to create pd.Series as raw data.

df_raw_data = pd.read_csv(PATH+CODE+'.csv', header=0, parse_dates=['date'], date_parser=lambda x: datetime.datetime.strptime(x, '%Y%m%d'))

1. Just follow the steps without modification

Run the .py file without any modification, but please pay attention to pip install modules

if __name__ == '__main__': ...

2. Plot and Output

All functions' return are pd.DataFrame.

Use df.plot() to show the figure.

df_name.plot(figsize=(12,6), title='CEEMDAN-VMD-GRU Predicting Result')

Use pd.DataFrame.to_csv() to download the result.

pd.DataFrame.to_csv(df_name, PATH+'CEEMDAN_VMD_GRU_predict_output.csv')

Postscript

For more functions, please use CEEMDAN_LSTM. Thanks!
If you have any questions, please leave your comment or email me.

ceemdan-vmd-gru's People

Contributors

fatemurphy avatar

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.