Coder Social home page Coder Social logo

nice7ninth / fastgwr Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ziqi-li/fastgwr

0.0 1.0 0.0 6.25 MB

Fast Geographically Weighted Regression (FastGWR)

Home Page: https://www.tandfonline.com/doi/full/10.1080/13658816.2018.1521523

Python 24.19% Jupyter Notebook 75.81%

fastgwr's Introduction

FastGWR

Paper: FastGWR

Li,Z., Fotheringham,A.S., Li,W., Oshan,T. (2018) Fast Geographically Weighted Regression (FastGWR): 
A Scalable Algorithm to Investigate Spatial Process Heterogeneity in Millions of Observations.
International Journal of Geographic Information Science. doi: 10.1080/13658816.2018.1521523

Fast computations developed in FastGWR have been integrated into mgwr python pacakge.

If you would like to use FastGWR directly (such as under HPC env), please read following instructions:

Install dependencies:

1. Install any MPI implementation
    OpenMPI: https://www.open-mpi.org
    Microsoft MPI: https://docs.microsoft.com/en-us/message-passing-interface/microsoft-mpi

2. Install `mpi4py` package

Example call to FastGWR which can be called on desktop or HPC:

mpiexec -np 4 python fastgwr-mpi.py -data input.csv -out results.csv -a -bw 1000
where:
-np 4: using 4 processors.
-data input.csv: input data matrix.
-out results.csv: output GWR results matrix including local parameter estimates, standard errors and local diagnostics.
-a (or --adaptive): Adaptive Bisquare kernel.
-f (or --fixed): Fixed Gaussian kernel.
-c (or --constant): Adding constant.
-bw 1000: Pre-defined bandwidth parameter. If missing, it will (golden-section) search for the optimal bandwidth and use that to fit GWR model.
-minbw 45: Lower bound in golden-section search.

The input needs to be prepared in this order:

X-coord Y-coord y X1 X2 ... Xk
where:
X-coord: X coordinate of the location point
Y-coord: Y coordinate of the location point
y: dependent variable
X1...Xk: independent variables

fastgwr's People

Contributors

ziqi-li avatar

Watchers

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