Coder Social home page Coder Social logo

tianyudu / annecon Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 2.0 93.82 MB

Artificial Neural Networks on Economic Forecasting

Python 9.57% MATLAB 0.71% M 0.01% TeX 0.47% Jupyter Notebook 4.74% HTML 84.52%
neuralnetworks economics-models forecasting finance computational-economics

annecon's Introduction

Artificial Neural Networks & Economic Forecasting

What's This?

This is a project focusing on applying computer science techniques on economics-related topics. Specifically, we are trying to build up a read-to-use and user-friendly toolbox for economic forecasting backend by neural networks.

In this project, neural networks are built to make predictions on economic and financial data. Codes in this project are mainly python scripts and typical python libraries are required for the model to be trained.

Models are implemented in Keras , Tensorflow and Matlab libraries. (tensorflow and matlab models are archived as we found models based on keras are more robust compared to the alternative libraries.)

Active Topics

Exchange Rate Forecasting: Canadian Dollar against US dollar

About this Topic

  • Topic directory: ./k models/exchange/

  • In this project, we feed multiple (26 in total) exchange rate time series into a recurrent neural network and use lagged values to predict the future value of CAD-USD exchange rate.

Packages Required

  • Core: the model is built on keras (version 2.2.2) with tensorflow backend.
  • Data: numpy , pandas and sklearn are required for data processing.
  • Visualization: matplotlib and bokeh are required for visualization.

Uni-Variate Version (in progress)

  • The baseline model takes historical time series data of exchange rate and make single or multiple step forecasting.

Multi-Variate Version (version 0.0.1 functional but full of bugs)

  • In additional to the baseline model, extra time series are fed to the neural networks. The multi-variate version takes longer to be trained but can achieve higher accuracy.

How To Try This Model

  1. Open your terminal

  2. Change directory: cd ./k\ models/exchange/

  3. And execute the script python{$your_python3_version} ./multi_ex.py

  4. Then follow the prompt shown in terminal

Functions

Working on this

Future Updates

  • Other economic indicators will be added.

Demo Results

Univariate Single Step Prediction Result

sample_output

Archived Topics

Archived codes can be found at ./archived/

  • ./archived/alpha/ is a tensorflow based model to forecast macroeconomic indicators like price level and unemployment rate.
  • ./archived/matlab code/ is a matlab based model for macroeconomic indicator forecasting.
  • Note: Archived models are scripts Functionality of archived topics are not guaranteed.

About Training on GPU-Accelerated Servers

  • All model based on keras can be training using GPU-accelerated servers automatically once applicable. And it's been tested using AWS server with Nvidia Tesla V100 GPU.

  • Note: I tested the training function of keras (tensorflow backend) on Amazon Web Service with GPUs (Nvidia Tesla V100). The training efficiency might not be higher with GPU accelerated server compared with CPU server (16C32T) for some tasks.

References

  • All reference papers and books could be found in Mendeley group AnnEcon.

Database

annecon's People

Contributors

tianyudu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 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.