Code Monkey home page Code Monkey logo

deepham's Introduction

DeepHAM: A global solution method for heterogeneous agent models with aggregate shocks

Jiequn Han, Yucheng Yang, Weinan E

arXiv SSRN PDF

Link to code repository: https://github.com/frankhan91/DeepHAM

Dependencies

  • Quick installation of conda environment for Python: conda env create -f environment.yml

Running

Quick start for the Krusell-Smith (KS) model under default configs:

To use DeepHAM to solve the competitive equilibrium of the KS model, run

python train_KS.py

To evaluate the Bellman error of the solution of the KS model, run

python validate_KS.py

Sample scripts for solving the KS model in the Slurm system are provided in the folder src/slurm_scripts

Solve the model in Fernandez-Villaverde, Hurtado, and Nuno (2019):

python train_JFV.py
python validate_JFV.py

Details on the model setup and algorithm can be found in our paper.

Citation

If you find this work helpful, please consider starring this repo and citing our paper using the following Bibtex.

@article{HanYangE2021deepham,
  title={Deep{HAM}: A global solution method for heterogeneous agent models with aggregate shocks},
  author={Han, Jiequn and Yang, Yucheng and E, Weinan},
  journal={arXiv preprint arXiv:2112.14377},
  year={2021}
}

Contact

Please contact us at [email protected] and [email protected] if you have any questions.

deepham's People

Contributors

frankhan91 avatar yangycpku 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.