Git Product home page Git Product logo

mdekauwe / climatevegetationdynamics_grangercausality Goto Github PK

View Code? Open in Web Editor NEW

This project forked from h-cel/climatevegetationdynamics_grangercausality

0.0 2.0 0.0 3.42 MB

Source code for the publications on "a non-linear Granger-causality framework to investigate climate–vegetation dynamics", by Papagiannopoulou et al., GMD & ERL 2017

License: GNU General Public License v3.0

Python 100.00%

climatevegetationdynamics_grangercausality's Introduction

Climate - Vegetation Dynamics: a Granger causality framework

This repository contains the source codes used in the following publications:

Prerequisites

The script is mainly built using the following packages:

python 2.7.12 | Anaconda 2.3.0 (64-bit) (or higher)
scikit-learn

Running the tests

In order to test the framework, a test file is provided (test.csv). This file contains all features used in the publication for one pixel on earth.

The script allows you to test both the "linear" and "non-linear" framework. In order to execute these, use the following commands:

python GC_script.py test.csv linear
python GC_script.py test.csv non-linear

Output

The outcome of both tests provide you information on the explained variance of the baseline and full model as well as a quantification of the Granger causality. For more information, see publication.

The output should look as follows:

1. Linear case

Explained variance of baseline model: 0.076398
Explained variance of full model: 0.199819
Quantification of Granger causality: 0.123421
Total time: 58 seconds

2. Non-Linear case

Explained variance of baseline model: 0.055405
Explained variance of full model: 0.306413
Quantification of Granger causality: 0.251008
Total time: 6 seconds

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details

climatevegetationdynamics_grangercausality's People

Watchers

James Cloos avatar  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.