Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,27 @@
__pycache__
*.swp
*.pyc
.rope*
.idea/
notebooks/.ipynb_checkpoints/
.DS_Store
.ipynb_checkpoints/
*.bak
.eggs/
*.egg-info/

# Packages
*.egg
*.egg-info
dist
build
eggs
parts
bin
var
sdist
develop-eggs
.installed.cfg
lib
lib64
_build
14 changes: 4 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,16 @@ before_install:
- conda config --add channels conda-forge
- conda create -y -q -n test-env python=$TRAVIS_PYTHON_VERSION
- source activate test-env
- if [[ $TRAVIS_PYTHON_VERSION == 3* ]];
then 2to3 -nw mgwr > /dev/null;
fi

install:
- conda install --yes pip
- conda install --yes --file requirements.txt;
- conda install --yes nose
- pip install libpysal
- pip install spglm
- pip install spreg
- pip install -r requirements_dev.txt
- pip install -r requirements.txt
- pip install -r requirements_tests.txt

script:
- python setup.py sdist >/dev/null
- nosetests --with-coverage --cover-package=mgwr;
- python setup.py install
- nosetests --verbose --with-coverage --cover-package=mgwr

notifications:
email:
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include LICENSE.txt MANIFEST.in requirements_docs.txt requirements_tests.txt requirements.txt
24 changes: 24 additions & 0 deletions doc/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Minimal makefile for Sphinx documentation
#

# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SPHINXPROJ = mgwr
SOURCEDIR = .
BUILDDIR = _build

# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

clean:
rm -rf $(BUILDDIR)/*
rm -rf auto_examples/
Binary file added doc/_static/images/gwr-mgwr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/_static/images/pysal_favicon.ico
Binary file not shown.
73 changes: 73 additions & 0 deletions doc/_static/pysal-styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
/* Make thumbnails with equal heights */
@media only screen and (min-width : 481px) {
.row.equal-height {
display: flex;
flex-wrap: wrap;
}
.row.equal-height > [class*='col-'] {
display: flex;
flex-direction: column;
}
.row.equal-height.row:after,
.row.equal-height.row:before {
display: flex;
}

.row.equal-height > [class*='col-'] > .thumbnail,
.row.equal-height > [class*='col-'] > .thumbnail > .caption {
display: flex;
flex: 1 0 auto;
flex-direction: column;
}
.row.equal-height > [class*='col-'] > .thumbnail > .caption > .flex-text {
flex-grow: 1;
}
.row.equal-height > [class*='col-'] > .thumbnail > img {
width: 100%;
height: 400px; /* force image's height */

/* force image fit inside it's "box" */
-webkit-object-fit: cover;
-moz-object-fit: cover;
-ms-object-fit: cover;
-o-object-fit: cover;
object-fit: cover;
}
}

.row.extra-bottom-padding{
margin-bottom: 20px;
}


.topnavicons {
margin-left: 10% !important;
}

.topnavicons li {
margin-left: 0px !important;
min-width: 100px;
text-align: center;
}

.topnavicons .thumbnail {
margin-right: 10px;
border: none;
box-shadow: none;
text-align: center;
font-size: 85%;
font-weight: bold;
line-height: 10px;
height: 100px;
}

.topnavicons .thumbnail img {
display: block;
margin-left: auto;
margin-right: auto;
}


/* Table with a scrollbar */
.bodycontainer { max-height: 600px; width: 100%; margin: 0; overflow-y: auto; }
.table-scrollable { margin: 0; padding: 0; }
208 changes: 208 additions & 0 deletions doc/_static/references.bib

Large diffs are not rendered by default.

53 changes: 53 additions & 0 deletions doc/api.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
.. _api_ref:

.. currentmodule:: mgwr

API reference
=============

.. _gwr_api:

GWR Model Estimation and Inference
----------------------------------

.. autosummary::
:toctree: generated/

mgwr.gwr.GWR
mgwr.gwr.GWRResults
mgwr.gwr.GWRResultsLite


MGWR Estimation and Inference
-----------------------------

.. autosummary::
:toctree: generated/

mgwr.gwr.MGWR
mgwr.gwr.MGWRResults


Utility Functions
-----------------

Kernel Specification
~~~~~~~~~~~~~~~~~~~~

.. autosummary::
:toctree: generated/

mgwr.kernels.fix_gauss
mgwr.kernels.adapt_gauss
mgwr.kernels.fix_bisquare
mgwr.kernels.adapt_bisquare
mgwr.kernels.fix_exp
mgwr.kernels.adapt_exp

Bandwidth Selection
~~~~~~~~~~~~~~~~~~~~

.. autosummary::
:toctree: generated/

mgwr.sel_bw.Sel_BW
Loading