nirvar


Namenirvar JSON
Version 1.1.0 PyPI version JSON
download
home_pageNone
SummaryNetwork Informed Restricted Vector Autoregression
upload_time2024-07-23 09:36:36
maintainerNone
docs_urlNone
authorBrendan Martin
requires_pythonNone
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            NIRVAR
==============================

Network Informed Restricted Vector Autoregression

This repository contains the code and data used to obtain simulation study and applications results for 
the NIRVAR paper.

Note that the financial returns data is too large to store on GitHub. The data is available upon request from b.martin22@imperial.ac.uk.

Installation
------------
You can install from pypi.org using 
`pip install nirvar` 

Alternatively, you can clone the repository using SSH or HTTPS:

`git clone git@github.com:bmartin9/NIRVAR.git` 

or 

`git clone https://github.com/bmartin9/NIRVAR.git`

Once cloned, change to the project root directory and install the nirvar package in edit mode using 

`pip install -e .` 

Usage
------------
If you have installed using pip, you can import classes and functions using, for example 

`from nirvar.models import train_model` 

If you have cloned the repository from GitHub and installed it in editable mode, use `src` instead of `nirvar`. For example,

`from src.models import train_model`



Project Organization
------------

    ├── LICENSE            <- MIT
    ├── Makefile           <- Makefile based on cookiecutter data-science template
    ├── README.md          <- The top-level README for developers using this project.
    ├── data
    │   ├── generated      <- Data generated from simulation studies
    │   ├── processed      <- Transformed data used for model training
    │   └── raw            <- The original, immutable data dump.
    │
    ├── docs               <- A default Sphinx project; see sphinx-doc.org for details
    │
    ├── models             <- Scripts for training NIRVAR/FARM/FNETS/GNAR models on application datasets.
                              Also contains scripts for NIRVAR simulation studies.
    │
    ├── requirements.txt   <- The requirements file for reproducing the analysis environment
    │
    ├── setup.py           <- makes project pip installable (pip install -e .) so src can be imported
    ├── src                <- Source code for use in this project.
    │   ├── __init__.py    <- Makes src a Python module
    │   │
    │   ├── data           <- Scripts to transform data for applications 
    │       └── clean_stocks.py
    │       └── transform_raw_data.R
    │   │
    │   ├── models         <- Scripts to generate simulation data, train a NIRVAR model on data, and do predictions 
    │   │                     using trained model
    │   │   ├── generativeVAR.py
    │   │   └── train_model.py
        |   └── predict_model.py
    │   │
    │   └── visualization  <- Scripts to visualize results 
    │       └── 0.3-ARI-comparisons.py
    │       └── 0.3-embedding-dim.py
    │       └── 0.3-SICCD-bars-plot.py
    │       └── 0.3-turnover.py
    │       └── 0.3-visualise-backtesting.py
    │       └── factors_over_time.py
    │       └── utility_funcs.py
    │
    └── tox.ini            <- tox file with settings for running tox; see tox.readthedocs.io


--------


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "nirvar",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": "Brendan Martin",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/21/f8/04eaf25d66cd945484ccdb01bdd8f892a9e30afaea3bcec73da216e71523/nirvar-1.1.0.tar.gz",
    "platform": null,
    "description": "NIRVAR\n==============================\n\nNetwork Informed Restricted Vector Autoregression\n\nThis repository contains the code and data used to obtain simulation study and applications results for \nthe NIRVAR paper.\n\nNote that the financial returns data is too large to store on GitHub. The data is available upon request from b.martin22@imperial.ac.uk.\n\nInstallation\n------------\nYou can install from pypi.org using \n`pip install nirvar` \n\nAlternatively, you can clone the repository using SSH or HTTPS:\n\n`git clone git@github.com:bmartin9/NIRVAR.git` \n\nor \n\n`git clone https://github.com/bmartin9/NIRVAR.git`\n\nOnce cloned, change to the project root directory and install the nirvar package in edit mode using \n\n`pip install -e .` \n\nUsage\n------------\nIf you have installed using pip, you can import classes and functions using, for example \n\n`from nirvar.models import train_model` \n\nIf you have cloned the repository from GitHub and installed it in editable mode, use `src` instead of `nirvar`. For example,\n\n`from src.models import train_model`\n\n\n\nProject Organization\n------------\n\n    \u251c\u2500\u2500 LICENSE            <- MIT\n    \u251c\u2500\u2500 Makefile           <- Makefile based on cookiecutter data-science template\n    \u251c\u2500\u2500 README.md          <- The top-level README for developers using this project.\n    \u251c\u2500\u2500 data\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 generated      <- Data generated from simulation studies\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 processed      <- Transformed data used for model training\n    \u2502\u00a0\u00a0 \u2514\u2500\u2500 raw            <- The original, immutable data dump.\n    \u2502\n    \u251c\u2500\u2500 docs               <- A default Sphinx project; see sphinx-doc.org for details\n    \u2502\n    \u251c\u2500\u2500 models             <- Scripts for training NIRVAR/FARM/FNETS/GNAR models on application datasets.\n                              Also contains scripts for NIRVAR simulation studies.\n    \u2502\n    \u251c\u2500\u2500 requirements.txt   <- The requirements file for reproducing the analysis environment\n    \u2502\n    \u251c\u2500\u2500 setup.py           <- makes project pip installable (pip install -e .) so src can be imported\n    \u251c\u2500\u2500 src                <- Source code for use in this project.\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 __init__.py    <- Makes src a Python module\n    \u2502   \u2502\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 data           <- Scripts to transform data for applications \n    \u2502\u00a0\u00a0     \u2514\u2500\u2500 clean_stocks.py\n    \u2502\u00a0\u00a0     \u2514\u2500\u2500 transform_raw_data.R\n    \u2502   \u2502\n    \u2502\u00a0\u00a0 \u251c\u2500\u2500 models         <- Scripts to generate simulation data, train a NIRVAR model on data, and do predictions \n    \u2502   \u2502                     using trained model\n    \u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 generativeVAR.py\n    \u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u2514\u2500\u2500 train_model.py\n        |   \u2514\u2500\u2500 predict_model.py\n    \u2502   \u2502\n    \u2502\u00a0\u00a0 \u2514\u2500\u2500 visualization  <- Scripts to visualize results \n    \u2502\u00a0\u00a0     \u2514\u2500\u2500 0.3-ARI-comparisons.py\n    \u2502\u00a0\u00a0     \u2514\u2500\u2500 0.3-embedding-dim.py\n    \u2502\u00a0\u00a0     \u2514\u2500\u2500 0.3-SICCD-bars-plot.py\n    \u2502\u00a0\u00a0     \u2514\u2500\u2500 0.3-turnover.py\n    \u2502\u00a0\u00a0     \u2514\u2500\u2500 0.3-visualise-backtesting.py\n    \u2502\u00a0\u00a0     \u2514\u2500\u2500 factors_over_time.py\n    \u2502\u00a0\u00a0     \u2514\u2500\u2500 utility_funcs.py\n    \u2502\n    \u2514\u2500\u2500 tox.ini            <- tox file with settings for running tox; see tox.readthedocs.io\n\n\n--------\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Network Informed Restricted Vector Autoregression",
    "version": "1.1.0",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c1c16fd2726a417f272135d47e8af6f028240cb14fdc0bd00d928db91448ce84",
                "md5": "4f178f058010963f32433e96dd4775fe",
                "sha256": "f3f6de39789f272291993e1f7689ff8f4d80d6c5fc37c0e3ec57a047dc71bc35"
            },
            "downloads": -1,
            "filename": "nirvar-1.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "4f178f058010963f32433e96dd4775fe",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 55731,
            "upload_time": "2024-07-23T09:36:34",
            "upload_time_iso_8601": "2024-07-23T09:36:34.942717Z",
            "url": "https://files.pythonhosted.org/packages/c1/c1/6fd2726a417f272135d47e8af6f028240cb14fdc0bd00d928db91448ce84/nirvar-1.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "21f804eaf25d66cd945484ccdb01bdd8f892a9e30afaea3bcec73da216e71523",
                "md5": "7e58dcdb3761812136944024f447895f",
                "sha256": "7830c8b5f97a52f009e82e01f05d27b2c7c907fb5edc1b7d3d4f45c96e00bfe4"
            },
            "downloads": -1,
            "filename": "nirvar-1.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "7e58dcdb3761812136944024f447895f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 30564,
            "upload_time": "2024-07-23T09:36:36",
            "upload_time_iso_8601": "2024-07-23T09:36:36.575179Z",
            "url": "https://files.pythonhosted.org/packages/21/f8/04eaf25d66cd945484ccdb01bdd8f892a9e30afaea3bcec73da216e71523/nirvar-1.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-23 09:36:36",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "nirvar"
}
        
Elapsed time: 4.89094s