Git Product home page Git Product logo

deepequilibriumnets's Introduction

Deep Equilibrium Nets

Deep equilibrium nets (DEQN) is a generic, deep-learning-based framework to compute recursive equilibria in dynamic stochastic economic models. The method directly approximates all equilibrium functions and that are trained in an unsupervised fashion to satisfy all equilibrium conditions along simulated paths of the economy.

This repository contains example codes in TensorFlow. Its goal is to make DEQNs easily accessible to the computational economics and finance community.

Authors

  • Marlon Azinovic (University of Zurich, Department of Banking and Finance and Swiss Finance Institute)
  • Luca Gaegauf (University of Zurich, Department of Banking and Finance)
  • Simon Scheidegger (University of Lausanne, Department of Finance)

The full paper can be found here

An illustrative example

To illustrate how DEQNs can be applied to solve economic models, we provide an example in python, which solves the model presented in Appendix C of the paper. The presented model is taken from Krueger and Kubler (2004) and is based on Huffman (1987). We chose this model as an illustrative example for two reasons: first, it is closely related to the models we solve in the paper and second, it has an analytical solution, so the accuracy of the solution method can easily be verified.

Usage

We provide implementations which use python 3 as well as TensorFlow 1. We provide our implementation in two forms. A jupyter-notebook that is self-contained and also contains the model and all relevant equations:

Generic badge

as well as a plain python script, which can be executed from the command line:

Generic badge 2

Prerequisites / Installation

TensorFlow 1

$ pip install tensorflow==1.13.1 

Running Deep Equilibrium Nets in a local installation

Jupyter notebook

Launch with:

    $ cd <PATH to the repository>/DeepEquilibriumNets/code/jupyter-notebooks/ 
    $ jupyter-notebook Analytic_tf1.ipynb

Plain Python

Launch with:

    $ cd <PATH to the repository>/DeepEquilibriumNets/code/python-scripts/ 
    $ python Analytic_tf1.py

Citation

Please cite Deep Equilibrium Nets in your publications if it helps your research:

Azinovic, Marlon and Gaegauf, Luca and Scheidegger, Simon, Deep Equilibrium Nets (May 24, 2019). Available at SSRN: https://ssrn.com/abstract=3393482 or http://dx.doi.org/10.2139/ssrn.3393482

Support

This work was supported the Swiss Platform for Advanced Scientific Computing (PASC) under project ID "Computing equilibria in heterogeneous agent macro models on contemporary HPC platforms".

deepequilibriumnets's People

Contributors

sischei avatar

Watchers

James Cloos 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.