deepvars

Vector Autoregression augmented with deep learning.

https://github.com/pat-alt/deepvars

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 (19.3%) to scientific vocabulary

Keywords

deeplearning r tensorflow vectorautoregression
Last synced: 4 months ago · JSON representation ·

Repository

Vector Autoregression augmented with deep learning.

Basic Info
Statistics
  • Stars: 16
  • Watchers: 2
  • Forks: 8
  • Open Issues: 1
  • Releases: 0
Topics
deeplearning r tensorflow vectorautoregression
Created almost 6 years ago · Last pushed almost 2 years ago
Metadata Files
Readme License Citation

README.Rmd

---
output: github_document
bibliography: bib.bib
suppress-bibliography: true
---



```{r, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)
```


[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)


> [!WARNING]  
> 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. 

> [!NOTE]  
> 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).

## `deepvars`

The `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/). 

## Installation ### Prerequisites As 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). ```{r, eval=FALSE} install.packages("tensorflow") tensorflow::install_tensorflow() ``` For uncertainty quantification we use `tensorflow_probability` for Bayesian inference. ```{r, eval=FALSE} install.packages("tfprobability") tfprobability::install_tfprobability() ``` Should 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/). ### Install You can either clone this repository and install from source or simply run the below in R: ```{r, eval=FALSE} devtools::install_github("pat-alt/deepvars", build_vignettes=TRUE) library(deepvars) ``` ## Getting started Full 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: ```{r, eval=FALSE} utils::browseVignettes('deepvars') ```

Owner

  • Name: Patrick Altmeyer
  • Login: pat-alt
  • Kind: user
  • Location: Netherlands
  • Company: Delft University of Technology

PhD Candidate in Trustworthy Artificial Intelligence at Delft University of Technology working on Counterfactual Explanations and Probabilistic Machine Learning

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this package, please cite it as below."
authors:
- family-names: "Altmeyer"
  given-names: "Patrick"
  orcid: "https://orcid.org/0000-0000-0000-0000"
title: "deepvars: Deep Vector Autoregression"
version: 0.1.0
date-released: 2021-12-02
url: "https://github.com/pat-alt/deepvars"

GitHub Events

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

Issues and Pull Requests

Last synced: about 1 year ago

All Time
  • Total issues: 4
  • Total pull requests: 0
  • Average time to close issues: about 1 month
  • Average time to close pull requests: N/A
  • Total issue authors: 2
  • Total pull request authors: 0
  • Average comments per issue: 1.5
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 1
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 1
  • Pull request authors: 0
  • Average comments per issue: 1.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • pat-alt (3)
  • Shafi2016 (1)
Pull Request Authors
Top Labels
Issue Labels
bug (1)
Pull Request Labels

Dependencies

DESCRIPTION cran
  • R >= 2.10 depends
  • data.table >= 1.12.6 imports
  • expm >= 0.999.4 imports
  • ggplot2 >= 3.2.1 imports
  • keras >= 2.4.0 imports
  • knitr * imports
  • rmarkdown * imports
  • scales >= 1.1.0 imports
  • tensorflow >= 2.4.0 imports
  • tfprobability >= 0.12.0.0 imports
  • testthat >= 2.3.1 suggests