{"id":19668425,"url":"https://github.com/pat-alt/deepvars","last_synced_at":"2025-10-13T11:11:36.199Z","repository":{"id":43921498,"uuid":"249440715","full_name":"pat-alt/deepvars","owner":"pat-alt","description":"Vector Autoregression augmented with deep learning.","archived":false,"fork":false,"pushed_at":"2024-01-17T06:45:36.000Z","size":1839,"stargazers_count":16,"open_issues_count":1,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-22T14:14:46.882Z","etag":null,"topics":["deeplearning","r","tensorflow","vectorautoregression"],"latest_commit_sha":null,"homepage":"https://pat-alt.github.io/deepvars/","language":"TeX","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pat-alt.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-03-23T13:37:38.000Z","updated_at":"2025-04-09T10:15:37.000Z","dependencies_parsed_at":"2024-11-11T16:48:25.386Z","dependency_job_id":null,"html_url":"https://github.com/pat-alt/deepvars","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pat-alt%2Fdeepvars","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pat-alt%2Fdeepvars/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pat-alt%2Fdeepvars/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pat-alt%2Fdeepvars/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pat-alt","download_url":"https://codeload.github.com/pat-alt/deepvars/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251410152,"owners_count":21584973,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deeplearning","r","tensorflow","vectorautoregression"],"created_at":"2024-11-11T16:35:26.203Z","updated_at":"2025-10-13T11:11:31.134Z","avatar_url":"https://github.com/pat-alt.png","language":"TeX","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\nbibliography: bib.bib\nsuppress-bibliography: true\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n```\n\n\u003c!-- badges: start --\u003e\n[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)\n\u003c!-- badges: end --\u003e\n\n\u003e [!WARNING]  \n\u003e I worked on this code base during my master's project in 2021 and today it is no longer actively maintained. Since the TensorFlow interface uses reticulate, you may run into compatibility issues with Python dependencies (see [#4](https://github.com/pat-alt/deepvars/issues/4)). While these things should be salvageable and I welcome contributions through pull requests, I have no capacity to work on this package myself. \n\n\u003e [!NOTE]  \n\u003e This is the repository for the companion package to our paper @altmeyer2021deep. We recently presented our paper at the [NeurIPS 2021 MLECON workshop](https://nips.cc/Conferences/2021/ScheduleMultitrack?event=21847). For the specific code used for the paper and additional resources please see [this repository](https://github.com/pat-alt/deepvarsMacro).\n\n## `deepvars`\n\nThe `deepvars` package provides a framework for Deep Vector Autoregression in R. The methodology is based on [@altmeyer2021deep], a working paper initially prepared as part of the [Masters Degree in Data Science](https://bse.eu/study/masters-programs/data-science-methodology) at [Barcelona School of Economics](https://bse.eu). For a summary of the first version of the working paper see [here](https://thevoice.bse.eu/2021/09/16/deep-vector-autoregression-for-macroeconomic-data/). \n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"www/hex.png\" style=\"width: 250px;\" /\u003e\n\u003c/p\u003e\n\n## Installation\n\n### Prerequisites\n\nAs one of its dependencies the `deepvars` uses `tensorflow`, which is an R interface to the popular [TensorFlow](https://www.tensorflow.org) library. We have tried to automate the TensorFlow configuration as explained [here](https://rstudio.github.io/reticulate/articles/python_dependencies.html). \n\n```{r, eval=FALSE}\ninstall.packages(\"tensorflow\")\ntensorflow::install_tensorflow()\n```\n\nFor uncertainty quantification we use `tensorflow_probability` for Bayesian inference.\n\n```{r, eval=FALSE}\ninstall.packages(\"tfprobability\")\ntfprobability::install_tfprobability()\n```\n\nShould you run into issues you may have to manually install the TensorFlow dependencies. Detailed instructions to this end can be found [here](https://tensorflow.rstudio.com/installation/).\n\n### Install\n\nYou can either clone this repository and install from source or simply run the below in R:\n\n```{r, eval=FALSE}\ndevtools::install_github(\"pat-alt/deepvars\", build_vignettes=TRUE)\nlibrary(deepvars)\n```\n\n## Getting started\n\nFull documentation of the package is still a work-in-progress. In the meantime, detailed guidance on different topics and estimation methods covered by `deepvars`, can be found in the vignettes. Simply type the following command once you have completed the steps above:\n\n```{r, eval=FALSE}\nutils::browseVignettes('deepvars')\n```\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpat-alt%2Fdeepvars","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpat-alt%2Fdeepvars","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpat-alt%2Fdeepvars/lists"}