资源简介
通过python编码实现MGWR、MGWTR模型的求解。能够解决空间非平稳性问题。
代码片段和文件信息
from setuptools import setup find_packages
from distutils.command.build_py import build_py
# Get __version__ from PACKAGE_NAME/__init__.py without importing the package
# __version__ has to be defined in the first line
with open(‘mgwr/__init__.py‘ ‘r‘) as f:
exec(f.readline())
def _get_requirements_from_files(groups_files):
groups_reqlist = {}
for kv in groups_files.items():
with open(v ‘r‘) as f:
pkg_list = f.read().splitlines()
groups_reqlist[k] = pkg_list
return groups_reqlist
def setup_package():
_groups_files = {
‘base‘: ‘requirements.txt‘
‘tests‘: ‘requirements_tests.txt‘
‘docs‘: ‘requirements_docs.txt‘
}
reqs = _get_requirements_from_files(_groups_files)
install_reqs = reqs.pop(‘base‘)
extras_reqs = reqs
setup(name=‘mgwr‘ #name of package
version=__version__
description=‘multiscale geographically weighted regression‘ #short <80chr description
url=‘https://github.com/pysal/mgwr‘ #github repo
maintainer=‘Taylor M. Oshan‘
maintainer_email=‘tayoshan@gmail.com‘
python_requires=‘>3.4‘
test_suite = ‘nose.collector‘
tests_require=[‘nose‘]
keywords=‘spatial statistics‘
classifiers=[
‘Development Status :: 5 - Production/Stable‘
‘Intended Audience :: Science/Research‘
‘Intended Audience :: Developers‘
‘Intended Audience :: Education‘
‘Topic :: Scientific/Engineering‘
‘Topic :: Scientific/Engineering :: GIS‘
‘License :: OSI Approved :: BSD License‘
‘Programming Language :: Python‘
‘Programming Language :: Python :: 3.5‘
‘Programming Language :: Python :: 3.6‘
]
license=‘3-Clause BSD‘
packages=find_packages()
install_requires=install_reqs
extras_require=extras_reqs
zip_safe=False
cmdclass = {‘build.py‘:build_py})
if __name__ == ‘__main__‘:
setup_package()
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-11-20 00:06 mgwr-master\
文件 232 2018-11-20 00:06 mgwr-master\.gitignore
文件 1400 2018-11-20 00:06 mgwr-master\.travis.yml
文件 2562 2018-11-20 00:06 mgwr-master\CHANGELOG.md
文件 1523 2018-11-20 00:06 mgwr-master\LICENSE
文件 93 2018-11-20 00:06 mgwr-master\MANIFEST.in
文件 1223 2018-11-20 00:06 mgwr-master\README.md
目录 0 2018-11-20 00:06 mgwr-master\doc\
文件 655 2018-11-20 00:06 mgwr-master\doc\Makefile
目录 0 2018-11-20 00:06 mgwr-master\doc\_static\
目录 0 2018-11-20 00:06 mgwr-master\doc\_static\images\
文件 711500 2018-11-20 00:06 mgwr-master\doc\_static\images\gwr-mgwr.png
文件 15086 2018-11-20 00:06 mgwr-master\doc\_static\images\pysal_favicon.ico
文件 1705 2018-11-20 00:06 mgwr-master\doc\_static\pysal-st
文件 21453 2018-11-20 00:06 mgwr-master\doc\_static\references.bib
文件 962 2018-11-20 00:06 mgwr-master\doc\api.rst
文件 8313 2018-11-20 00:06 mgwr-master\doc\conf.py
目录 0 2018-11-20 00:06 mgwr-master\doc\generated\
文件 85 2018-11-20 00:06 mgwr-master\doc\generated\mgwr.gwr.GWR.fit.rst
文件 89 2018-11-20 00:06 mgwr-master\doc\generated\mgwr.gwr.GWR.predict.rst
文件 113 2018-11-20 00:06 mgwr-master\doc\generated\mgwr.gwr.GWR.rst
文件 151 2018-11-20 00:06 mgwr-master\doc\generated\mgwr.gwr.GWRResults.rst
文件 158 2018-11-20 00:06 mgwr-master\doc\generated\mgwr.gwr.GWRResultsLite.rst
文件 106 2018-11-20 00:06 mgwr-master\doc\generated\mgwr.gwr.GWResults.ENP.rst
文件 106 2018-11-20 00:06 mgwr-master\doc\generated\mgwr.gwr.GWResults.RSS.rst
文件 106 2018-11-20 00:06 mgwr-master\doc\generated\mgwr.gwr.GWResults.TSS.rst
文件 112 2018-11-20 00:06 mgwr-master\doc\generated\mgwr.gwr.GWResults.adj_alpha.rst
文件 106 2018-11-20 00:06 mgwr-master\doc\generated\mgwr.gwr.GWResults.bse.rst
文件 111 2018-11-20 00:06 mgwr-master\doc\generated\mgwr.gwr.GWResults.conf_int.rst
文件 109 2018-11-20 00:06 mgwr-master\doc\generated\mgwr.gwr.GWResults.cooksD.rst
文件 113 2018-11-20 00:06 mgwr-master\doc\generated\mgwr.gwr.GWResults.cov_params.rst
............此处省略137个文件信息
- 上一篇:基于python的单机版中国象棋
- 下一篇:深度学习入门 基于python理论与实现
评论
共有 条评论