spotpy


Namespotpy JSON
Version 1.6.2 PyPI version JSON
download
home_page
SummaryA Statistical Parameter Optimization Tool.
upload_time2023-02-28 09:27:54
maintainer
docs_urlNone
authorPhilipp Kraft, Alejandro Chamorro-Chavez, Lutz Breuer
requires_python>=3.7
licenseThe MIT License (MIT) Copyright (c) 2015 Tobias Houska Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords monte carlo mcmc mle sce-ua simulated annealing de-mcz dream rope artifical bee colony dds pa-dds nsgaii uncertainty calibration model signatures
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # spotpy
A Statistical Parameter Optimization Tool for Python

---

[![PyPI Version][pypi-v-image]][pypi-v-link]
[![Python Versions][pypi-pyv-image]][pypi-pyv-link]
[![Build Status][travis-image]][travis-link]
[![License][license-image]][license-link]
[![Coverage Status](https://coveralls.io/repos/github/thouska/spotpy/badge.svg?branch=master)](https://coveralls.io/github/thouska/spotpy?branch=master)
[![Documentation Status](https://readthedocs.org/projects/spotpy/badge/?version=latest)](https://readthedocs.org/projects/spotpy/badge/?version=latest)
[![DOI](https://zenodo.org/badge/47562322.svg)](https://zenodo.org/badge/latestdoi/47562322)

[pypi-v-image]: https://img.shields.io/pypi/v/spotpy.png
[pypi-v-link]: https://pypi.python.org/pypi/spotpy
[pypi-pyv-image]: https://img.shields.io/pypi/pyversions/spotpy.png
[pypi-pyv-link]: https://img.shields.io/pypi/pyversions/spotpy
[travis-image]: https://img.shields.io/travis/thouska/spotpy/master.png
[travis-link]: https://travis-ci.org/thouska/spotpy
[license-image]: https://img.shields.io/badge/license-MIT-blue.png
[license-link]: http://opensource.org/licenses/MIT



Purpose
=================

SPOTPY is a Python framework that enables the use of Computational optimization techniques for calibration, uncertainty
and sensitivity analysis techniques of almost every (environmental-) model. The package is puplished in the open source journal PLoS One:

Houska, T., Kraft, P., Chamorro-Chavez, A. and Breuer, L.: SPOTting Model Parameters Using a Ready-Made Python Package, PLoS ONE,
10(12), e0145180, doi:[10.1371/journal.pone.0145180](http://journals.plos.org/plosone/article?id=10.1371%2Fjournal.pone.0145180 "SPOTting Model Parameters Using a Ready-Made Python Package"), 2015

The simplicity and flexibility enables the use and test of different
algorithms of almost any model, without the need of complex codes::

	sampler = spotpy.algorithms.sceua(model_setup())     # Initialize your model with a setup file
	sampler.sample(10000)                                # Run the model
	results = sampler.getdata()                          # Load the results
	spotpy.analyser.plot_parametertrace(results)         # Show the results



Features
=================

Complex algorithms bring complex tasks to link them with a model.
We want to make this task as easy as possible.
Some features you can use with the SPOTPY package are:

* Fitting models to evaluation data with different algorithms.
  Available algorithms are:

  * Monte Carlo (`MC`)
  * Markov-Chain Monte-Carlo (`MCMC`)
  * Maximum Likelihood Estimation (`MLE`)
  * Latin-Hypercube Sampling (`LHS`)
  * Simulated Annealing (`SA`)
  * Shuffled Complex Evolution Algorithm (`SCE-UA`)
  * Differential Evolution Markov Chain Algorithm (`DE-MCz`)
  * Differential Evolution Adaptive Metropolis Algorithm (`DREAM`)
  * RObust Parameter Estimation (`ROPE`)
  * Fourier Amplitude Sensitivity Test (`FAST`)
  * Artificial Bee Colony (`ABC`)
  * Fitness Scaled Chaotic Artificial Bee Colony (`FSCABC`)
  * Dynamically Dimensioned Search algorithm (`DDS`)
  * Pareto Archived - Dynamicallly Dimensioned Search algorithm (`PA-DDS`)
  * Fast and Elitist Multiobjective Genetic Algorithm (`NSGA-II`)

* Wide range of objective functions (also known as loss function, fitness function or energy function) to validate the sampled results. Available functions are

  * Bias
  * PBias
  * Nash-Sutcliffe (`NSE`)
  * logarithmic Nash-Sutcliffe (`logNSE`)
  * logarithmic probability (`logp`)
  * Correlation Coefficient (`r`)
  * Coefficient of Determination (`r^2`)
  * Mean Squared Error (`MSE`)
  * Root Mean Squared Error (`RMSE`)
  * Mean Absolute Error (`MAE`)
  * Relative Root Mean Squared Error (`RRMSE`)
  * Agreement Index (`AI`)
  * Covariance, Decomposed MSE (`dMSE`)
  * Kling-Gupta Efficiency (`KGE`)
  * Non parametric Kling-Gupta Efficiency (`KGE_non_parametric`)

* Wide range of hydrological signatures functions to validate the sampled results:

  * Slope
  * Flooding/Drought events
  * Flood/Drought frequency
  * Flood/Drought duration
  * Flood/Drought variance
  * Mean flow
  * Median flow
  * Skewness
  * compare percentiles of discharge

* Prebuild parameter distribution functions:

  * Uniform
  * Normal
  * logNormal
  * Chisquare
  * Exponential
  * Gamma
  * Wald
  * Weilbull

* Wide range to adapt algorithms to perform uncertainty-, sensitivity analysis or calibration
  of a model.

* Multi-objective support

* MPI support for fast parallel computing

* A progress bar monitoring the sampling loops. Enables you to plan your coffee brakes.

* Use of NumPy functions as often as possible. This makes your coffee brakes short.

* Different databases solutions: `ram` storage for fast sampling a simple , `csv` tables
  the save solution for long duration samplings.

* Automatic best run selecting and plotting

* Parameter trace plotting

* Parameter interaction plot including the Gaussian-kde function

* Regression analysis between simulation and evaluation data

* Posterior distribution plot

* Convergence diagnostics with Gelman-Rubin and the Geweke plot


Install
=================

Classical Python options exist to install SPOTPY:

From PyPi:

	pip install spotpy

From Conda-Forge:

	conda config --add channels conda-forge
	conda config --set channel_priority strict
	conda install spotpy

From [Source](https://pypi.python.org/pypi/spotpy):

	python setup.py install


Support
=================

* Documentation: https://spotpy.readthedocs.io/en/latest/

* Feel free to contact the authors of this tool for any support questions.

* Please contact the authors in case of any bug.

* If you use this package for a scientific research paper, please cite SPOTPY. It is [peer-reviewed](http://journals.plos.org/plosone/article?id=10.1371%2Fjournal.pone.0145180 "SPOTting Model Parameters Using a Ready-Made Python Package").

* Patches/enhancements and any other contributions to this package are very welcome!


Getting started
=================
Have a look at https://github.com/thouska/spotpy/tree/master/spotpy/examples and https://spotpy.readthedocs.io/en/latest/getting_started/


Contributing
=================
Patches/enhancements/new algorithms and any other contributions to this package are very welcome!

1. Fork it ( http://github.com/thouska/spotpy/fork )
2. Create your feature branch (``git checkout -b my-new-feature``)
3. Add your modifications
4. Add short summary of your modifications on ``CHANGELOG.md``
5. Commit your changes (``git commit -m "Add some feature"``)
6. Push to the branch (``git push origin my-new-feature``)
7. Create new Pull Request

Papers citing SPOTPY
=====================
See [Google Scholar](https://scholar.google.de/scholar?cites=17155001516727704728&as_sdt=2005&sciodt=0,5&hl=de) for a continuously updated list.


            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "spotpy",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "Tobias Houska <tobias.houska@umwelt.uni-giessen.de>",
    "keywords": "Monte Carlo,MCMC,MLE,SCE-UA,Simulated Annealing,DE-MCz,DREAM,ROPE,Artifical Bee Colony,DDS,PA-DDS,NSGAii,Uncertainty,Calibration,Model,Signatures",
    "author": "Philipp Kraft, Alejandro Chamorro-Chavez, Lutz Breuer",
    "author_email": "Tobias Houska <tobias.houska@umwelt.uni-giessen.de>, Sebastian M\u00fcller <sebastian.mueller@ufz.de>",
    "download_url": "https://files.pythonhosted.org/packages/36/e5/e3bc6ae57009f768a16461f2ded44c05b90fc06df608d6191ed5ef2c742d/spotpy-1.6.2.tar.gz",
    "platform": null,
    "description": "# spotpy\nA Statistical Parameter Optimization Tool for Python\n\n---\n\n[![PyPI Version][pypi-v-image]][pypi-v-link]\n[![Python Versions][pypi-pyv-image]][pypi-pyv-link]\n[![Build Status][travis-image]][travis-link]\n[![License][license-image]][license-link]\n[![Coverage Status](https://coveralls.io/repos/github/thouska/spotpy/badge.svg?branch=master)](https://coveralls.io/github/thouska/spotpy?branch=master)\n[![Documentation Status](https://readthedocs.org/projects/spotpy/badge/?version=latest)](https://readthedocs.org/projects/spotpy/badge/?version=latest)\n[![DOI](https://zenodo.org/badge/47562322.svg)](https://zenodo.org/badge/latestdoi/47562322)\n\n[pypi-v-image]: https://img.shields.io/pypi/v/spotpy.png\n[pypi-v-link]: https://pypi.python.org/pypi/spotpy\n[pypi-pyv-image]: https://img.shields.io/pypi/pyversions/spotpy.png\n[pypi-pyv-link]: https://img.shields.io/pypi/pyversions/spotpy\n[travis-image]: https://img.shields.io/travis/thouska/spotpy/master.png\n[travis-link]: https://travis-ci.org/thouska/spotpy\n[license-image]: https://img.shields.io/badge/license-MIT-blue.png\n[license-link]: http://opensource.org/licenses/MIT\n\n\n\nPurpose\n=================\n\nSPOTPY is a Python framework that enables the use of Computational optimization techniques for calibration, uncertainty\nand sensitivity analysis techniques of almost every (environmental-) model. The package is puplished in the open source journal PLoS One:\n\nHouska, T., Kraft, P., Chamorro-Chavez, A. and Breuer, L.: SPOTting Model Parameters Using a Ready-Made Python Package, PLoS ONE,\n10(12), e0145180, doi:[10.1371/journal.pone.0145180](http://journals.plos.org/plosone/article?id=10.1371%2Fjournal.pone.0145180 \"SPOTting Model Parameters Using a Ready-Made Python Package\"), 2015\n\nThe simplicity and flexibility enables the use and test of different\nalgorithms of almost any model, without the need of complex codes::\n\n\tsampler = spotpy.algorithms.sceua(model_setup())     # Initialize your model with a setup file\n\tsampler.sample(10000)                                # Run the model\n\tresults = sampler.getdata()                          # Load the results\n\tspotpy.analyser.plot_parametertrace(results)         # Show the results\n\n\n\nFeatures\n=================\n\nComplex algorithms bring complex tasks to link them with a model.\nWe want to make this task as easy as possible.\nSome features you can use with the SPOTPY package are:\n\n* Fitting models to evaluation data with different algorithms.\n  Available algorithms are:\n\n  * Monte Carlo (`MC`)\n  * Markov-Chain Monte-Carlo (`MCMC`)\n  * Maximum Likelihood Estimation (`MLE`)\n  * Latin-Hypercube Sampling (`LHS`)\n  * Simulated Annealing (`SA`)\n  * Shuffled Complex Evolution Algorithm (`SCE-UA`)\n  * Differential Evolution Markov Chain Algorithm (`DE-MCz`)\n  * Differential Evolution Adaptive Metropolis Algorithm (`DREAM`)\n  * RObust Parameter Estimation (`ROPE`)\n  * Fourier Amplitude Sensitivity Test (`FAST`)\n  * Artificial Bee Colony (`ABC`)\n  * Fitness Scaled Chaotic Artificial Bee Colony (`FSCABC`)\n  * Dynamically Dimensioned Search algorithm (`DDS`)\n  * Pareto Archived - Dynamicallly Dimensioned Search algorithm (`PA-DDS`)\n  * Fast and Elitist Multiobjective Genetic Algorithm (`NSGA-II`)\n\n* Wide range of objective functions (also known as loss function, fitness function or energy function) to validate the sampled results. Available functions are\n\n  * Bias\n  * PBias\n  * Nash-Sutcliffe (`NSE`)\n  * logarithmic Nash-Sutcliffe (`logNSE`)\n  * logarithmic probability (`logp`)\n  * Correlation Coefficient (`r`)\n  * Coefficient of Determination (`r^2`)\n  * Mean Squared Error (`MSE`)\n  * Root Mean Squared Error (`RMSE`)\n  * Mean Absolute Error (`MAE`)\n  * Relative Root Mean Squared Error (`RRMSE`)\n  * Agreement Index (`AI`)\n  * Covariance, Decomposed MSE (`dMSE`)\n  * Kling-Gupta Efficiency (`KGE`)\n  * Non parametric Kling-Gupta Efficiency (`KGE_non_parametric`)\n\n* Wide range of hydrological signatures functions to validate the sampled results:\n\n  * Slope\n  * Flooding/Drought events\n  * Flood/Drought frequency\n  * Flood/Drought duration\n  * Flood/Drought variance\n  * Mean flow\n  * Median flow\n  * Skewness\n  * compare percentiles of discharge\n\n* Prebuild parameter distribution functions:\n\n  * Uniform\n  * Normal\n  * logNormal\n  * Chisquare\n  * Exponential\n  * Gamma\n  * Wald\n  * Weilbull\n\n* Wide range to adapt algorithms to perform uncertainty-, sensitivity analysis or calibration\n  of a model.\n\n* Multi-objective support\n\n* MPI support for fast parallel computing\n\n* A progress bar monitoring the sampling loops. Enables you to plan your coffee brakes.\n\n* Use of NumPy functions as often as possible. This makes your coffee brakes short.\n\n* Different databases solutions: `ram` storage for fast sampling a simple , `csv` tables\n  the save solution for long duration samplings.\n\n* Automatic best run selecting and plotting\n\n* Parameter trace plotting\n\n* Parameter interaction plot including the Gaussian-kde function\n\n* Regression analysis between simulation and evaluation data\n\n* Posterior distribution plot\n\n* Convergence diagnostics with Gelman-Rubin and the Geweke plot\n\n\nInstall\n=================\n\nClassical Python options exist to install SPOTPY:\n\nFrom PyPi:\n\n\tpip install spotpy\n\nFrom Conda-Forge:\n\n\tconda config --add channels conda-forge\n\tconda config --set channel_priority strict\n\tconda install spotpy\n\nFrom [Source](https://pypi.python.org/pypi/spotpy):\n\n\tpython setup.py install\n\n\nSupport\n=================\n\n* Documentation: https://spotpy.readthedocs.io/en/latest/\n\n* Feel free to contact the authors of this tool for any support questions.\n\n* Please contact the authors in case of any bug.\n\n* If you use this package for a scientific research paper, please cite SPOTPY. It is [peer-reviewed](http://journals.plos.org/plosone/article?id=10.1371%2Fjournal.pone.0145180 \"SPOTting Model Parameters Using a Ready-Made Python Package\").\n\n* Patches/enhancements and any other contributions to this package are very welcome!\n\n\nGetting started\n=================\nHave a look at https://github.com/thouska/spotpy/tree/master/spotpy/examples and https://spotpy.readthedocs.io/en/latest/getting_started/\n\n\nContributing\n=================\nPatches/enhancements/new algorithms and any other contributions to this package are very welcome!\n\n1. Fork it ( http://github.com/thouska/spotpy/fork )\n2. Create your feature branch (``git checkout -b my-new-feature``)\n3. Add your modifications\n4. Add short summary of your modifications on ``CHANGELOG.md``\n5. Commit your changes (``git commit -m \"Add some feature\"``)\n6. Push to the branch (``git push origin my-new-feature``)\n7. Create new Pull Request\n\nPapers citing SPOTPY\n=====================\nSee [Google Scholar](https://scholar.google.de/scholar?cites=17155001516727704728&as_sdt=2005&sciodt=0,5&hl=de) for a continuously updated list.\n\n",
    "bugtrack_url": null,
    "license": "The MIT License (MIT)  Copyright (c) 2015 Tobias Houska  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.  ",
    "summary": "A Statistical Parameter Optimization Tool.",
    "version": "1.6.2",
    "project_urls": {
        "Changelog": "https://github.com/thouska/spotpy/blob/master/CHANGELOG.md",
        "Conda-Forge": "https://anaconda.org/conda-forge/spotpy",
        "Documentation": "https://spotpy.readthedocs.io",
        "Homepage": "https://github.com/thouska/spotpy",
        "Source": "https://github.com/thouska/spotpy",
        "Tracker": "https://github.com/thouska/spotpy/issues"
    },
    "split_keywords": [
        "monte carlo",
        "mcmc",
        "mle",
        "sce-ua",
        "simulated annealing",
        "de-mcz",
        "dream",
        "rope",
        "artifical bee colony",
        "dds",
        "pa-dds",
        "nsgaii",
        "uncertainty",
        "calibration",
        "model",
        "signatures"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "86fd867991bdd0d8d4196dffb6e02307e25d6ed019fb51fd820128acdc7e792f",
                "md5": "3555001dc9265ec0a2a3ce74ae6d4108",
                "sha256": "cbb5f6df684b7a6bfae3f4d8904ad2ab293236b6fc80bcf38972e65efa55fe58"
            },
            "downloads": -1,
            "filename": "spotpy-1.6.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "3555001dc9265ec0a2a3ce74ae6d4108",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 6980509,
            "upload_time": "2023-02-28T09:27:51",
            "upload_time_iso_8601": "2023-02-28T09:27:51.952189Z",
            "url": "https://files.pythonhosted.org/packages/86/fd/867991bdd0d8d4196dffb6e02307e25d6ed019fb51fd820128acdc7e792f/spotpy-1.6.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "36e5e3bc6ae57009f768a16461f2ded44c05b90fc06df608d6191ed5ef2c742d",
                "md5": "2e2f41001e8d91c9d2a938fd42fe0155",
                "sha256": "5bad39a4d7605167a7874bc8b8eca72708b9ee0e7a3fb7088204333dbdf77350"
            },
            "downloads": -1,
            "filename": "spotpy-1.6.2.tar.gz",
            "has_sig": false,
            "md5_digest": "2e2f41001e8d91c9d2a938fd42fe0155",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 7117479,
            "upload_time": "2023-02-28T09:27:54",
            "upload_time_iso_8601": "2023-02-28T09:27:54.572624Z",
            "url": "https://files.pythonhosted.org/packages/36/e5/e3bc6ae57009f768a16461f2ded44c05b90fc06df608d6191ed5ef2c742d/spotpy-1.6.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-02-28 09:27:54",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "thouska",
    "github_project": "spotpy",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "spotpy"
}
        
Elapsed time: 0.17260s