Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (4.7%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

Basic Info
  • Host: GitHub
  • Owner: marcmaliar
  • License: mit
  • Language: Jupyter Notebook
  • Default Branch: main
  • Size: 476 KB
Statistics
  • Stars: 5
  • Watchers: 1
  • Forks: 4
  • Open Issues: 0
  • Releases: 0
Created over 2 years ago · Last pushed about 2 years ago
Metadata Files
Readme License Citation

README.md

Deep-Learning code for solving Krusell-Smith heterogeneous-agent model

This code solves the Krusell-Smith heterogeneous-agent model using the Euler method. It was written by Marc Maliar and Serguei Maliar following the JME paper (link).

The code is presented in the style of an Econ-Ark REMARK (link). The actual code is located in code/python/Main_KS.ipynb.

Running the code

The code can be run either locally or through Binder on the web. To run it in Binder, click the link below

Click this -> Binder

To run it locally, you can

  • run reproduce_jupyter.sh, which opens the code in a Jupyter notebook.
  • (reproduce.sh is deprecated and does the same thing as reproduce_jupyter.sh)

Results figure is saved to the figures directory.

Owner

  • Name: Marc Maliar
  • Login: marcmaliar
  • Kind: user

University of Chicago CS and Math graduate.

Citation (CITATION.cff)

# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!

cff-version: 1.2.0
title: "Deep learning for solving dynamic economic models\0"
message: >-
  If you use this software, please cite it using the
  metadata from this file.
type: software
authors:
  - given-names: Lilia
    family-names: Maliar
    affiliation: >-
      a The Graduate Center, City University of New York,
      CEPR, and Hoover Institution, Stanford University
  - given-names: Serguei
    family-names: Maliar
    affiliation: Santa Clara University
  - given-names: Pablo
    family-names: Winant
    affiliation: ESCP Business School and CREST/Ecole Polytechnique
identifiers:
  - type: doi
    value: 10.1016/j.jmoneco.2021.07.004
repository-code: >-
  https://github.com/marcmaliar/deep-learning-euler-method-krusell-smith/
abstract: >-
  We introduce a unified deep learning method that solves
  dynamic economic models by casting them into nonlinear
  regression equations. We derive such equations for three
  fundamental objects of economic dynamics – lifetime reward
  functions, Bellman equations and Euler equations. We
  estimate the decision functions on simulated data using a
  stochastic gradient descent method. We introduce an
  all-in-one integration operator that facilitates
  approximation of high-dimensional integrals. We use neural
  networks to perform model reduction and to handle
  multicollinearity. Our deep learning method is tractable
  in large-scale problems, e.g., Krusell and Smith (1998).
  We provide a TensorFlow code that accommodates a variety
  of applications.
keywords:
  - Artificial intelligence
  - Machine learning
  - Deep learning
  - Neural network
  - Stochastic gradient
  - Dynamic models
  - Model reduction
  - Dynamic programming
  - Bellman equation
  - Euler equation
  - Value function
references:
  - type: article
    authors:
      - family-names: "Krusell"
        given-names: "Per"
      - family-names: "Smith, Jr."
        given-names: "Anthony A."
    title: "Income and Wealth Heterogeneity in the Macroeconomy"
    doi: "10.1086/250034"
    date-released: 1998-10-01
    publisher:
        name: "Journal of Political Economy"

GitHub Events

Total
  • Watch event: 3
  • Fork event: 1
Last Year
  • Watch event: 3
  • Fork event: 1

Dependencies

binder/environment.yml pypi
binder/requirements.txt pypi
  • Markdown ==3.4.3
  • MarkupSafe ==2.1.3
  • Pillow ==9.5.0
  • Werkzeug ==2.3.6
  • absl-py ==1.4.0
  • astunparse ==1.6.3
  • cachetools ==5.3.1
  • certifi ==2023.5.7
  • charset-normalizer ==3.1.0
  • contourpy ==1.1.0
  • cycler ==0.11.0
  • flatbuffers ==23.5.26
  • fonttools ==4.40.0
  • gast ==0.4.0
  • google-auth ==2.20.0
  • google-auth-oauthlib ==1.0.0
  • google-pasta ==0.2.0
  • grpcio ==1.54.2
  • h5py ==3.9.0
  • idna ==3.4
  • keras ==2.13.1rc0
  • kiwisolver ==1.4.4
  • libclang ==16.0.0
  • matplotlib ==3.7.1
  • numpy ==1.25.0
  • oauthlib ==3.2.2
  • opt-einsum ==3.3.0
  • packaging ==23.1
  • protobuf ==4.23.3
  • pyasn1 ==0.5.0
  • pyasn1-modules ==0.3.0
  • pyparsing ==3.1.0
  • python-dateutil ==2.8.2
  • requests ==2.31.0
  • requests-oauthlib ==1.3.1
  • rsa ==4.9
  • six ==1.16.0
  • tensorboard ==2.13.0
  • tensorboard-data-server ==0.7.1
  • tensorflow ==2.13.0rc1
  • tensorflow-estimator ==2.13.0rc0
  • termcolor ==2.3.0
  • typing_extensions ==4.6.3
  • urllib3 ==1.26.16
  • wrapt ==1.15.0
binder/requirements_jupyter.txt pypi
  • Jinja2 ==3.1.2
  • Markdown ==3.4.3
  • MarkupSafe ==2.1.3
  • Pillow ==9.5.0
  • PyYAML ==6.0
  • Pygments ==2.15.1
  • QtPy ==2.3.1
  • Send2Trash ==1.8.2
  • Werkzeug ==2.3.6
  • absl-py ==1.4.0
  • anyio ==3.7.0
  • appnope ==0.1.3
  • argon2-cffi ==21.3.0
  • argon2-cffi-bindings ==21.2.0
  • arrow ==1.2.3
  • asttokens ==2.2.1
  • astunparse ==1.6.3
  • attrs ==23.1.0
  • backcall ==0.2.0
  • beautifulsoup4 ==4.12.2
  • bleach ==6.0.0
  • cachetools ==5.3.1
  • certifi ==2023.5.7
  • cffi ==1.15.1
  • charset-normalizer ==3.1.0
  • comm ==0.1.3
  • contourpy ==1.1.0
  • cycler ==0.11.0
  • debugpy ==1.6.7
  • decorator ==5.1.1
  • defusedxml ==0.7.1
  • executing ==1.2.0
  • fastjsonschema ==2.17.1
  • flatbuffers ==23.5.26
  • fonttools ==4.40.0
  • fqdn ==1.5.1
  • gast ==0.4.0
  • google-auth ==2.20.0
  • google-auth-oauthlib ==1.0.0
  • google-pasta ==0.2.0
  • grpcio ==1.54.2
  • h5py ==3.9.0
  • idna ==3.4
  • ipykernel ==6.23.2
  • ipython ==8.14.0
  • ipython-genutils ==0.2.0
  • ipywidgets ==8.0.6
  • isoduration ==20.11.0
  • jedi ==0.18.2
  • jsonpointer ==2.4
  • jsonschema ==4.17.3
  • jupyter ==1.0.0
  • jupyter-console ==6.6.3
  • jupyter-events ==0.6.3
  • jupyter_client ==8.2.0
  • jupyter_core ==5.3.1
  • jupyter_server ==2.6.0
  • jupyter_server_terminals ==0.4.4
  • jupyterlab-pygments ==0.2.2
  • jupyterlab-widgets ==3.0.7
  • keras ==2.13.1rc0
  • kiwisolver ==1.4.4
  • libclang ==16.0.0
  • matplotlib ==3.7.1
  • matplotlib-inline ==0.1.6
  • mistune ==3.0.1
  • nbclassic ==1.0.0
  • nbclient ==0.8.0
  • nbconvert ==7.6.0
  • nbformat ==5.9.0
  • nest-asyncio ==1.5.6
  • notebook ==6.5.4
  • notebook_shim ==0.2.3
  • numpy ==1.25.0
  • oauthlib ==3.2.2
  • opt-einsum ==3.3.0
  • overrides ==7.3.1
  • packaging ==23.1
  • pandocfilters ==1.5.0
  • parso ==0.8.3
  • pexpect ==4.8.0
  • pickleshare ==0.7.5
  • platformdirs ==3.7.0
  • prometheus-client ==0.17.0
  • prompt-toolkit ==3.0.38
  • protobuf ==4.23.3
  • psutil ==5.9.5
  • ptyprocess ==0.7.0
  • pure-eval ==0.2.2
  • pyasn1 ==0.5.0
  • pyasn1-modules ==0.3.0
  • pycparser ==2.21
  • pyparsing ==3.1.0
  • pyrsistent ==0.19.3
  • python-dateutil ==2.8.2
  • python-json-logger ==2.0.7
  • pyzmq ==25.1.0
  • qtconsole ==5.4.3
  • requests ==2.31.0
  • requests-oauthlib ==1.3.1
  • rfc3339-validator ==0.1.4
  • rfc3986-validator ==0.1.1
  • rsa ==4.9
  • six ==1.16.0
  • sniffio ==1.3.0
  • soupsieve ==2.4.1
  • stack-data ==0.6.2
  • tensorboard ==2.13.0
  • tensorboard-data-server ==0.7.1
  • tensorflow ==2.13.0rc1
  • tensorflow-estimator ==2.13.0rc0
  • termcolor ==2.3.0
  • terminado ==0.17.1
  • tinycss2 ==1.2.1
  • tornado ==6.3.2
  • traitlets ==5.9.0
  • typing_extensions ==4.6.3
  • uri-template ==1.3.0
  • urllib3 ==1.26.16
  • wcwidth ==0.2.6
  • webcolors ==1.13
  • webencodings ==0.5.1
  • websocket-client ==1.6.0
  • widgetsnbextension ==4.0.7
  • wrapt ==1.15.0