Skip to main content

A Statistical Parameter Optimization Tool

Project description

Purpose

SPOTPY is a Python tool that enables the use of calibration, uncertainty and sensitivity analysis techniques for almost every environmental model.

The simplicity and flexibility enables the use and test of different algorithms 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 Adaptive Metropolis Algorithm (DE-MCz)

    • RObust Parameter Estimation (ROPE).

    • Fourier Amplitude Sensitivity Test (FAST)

  • Wide range of likelihood functions to validate the sampled results. Available Lieklihoods are Bias, Nash-Sutcliff (NSE), log Nash-Sutcliff (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).

  • 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

Installing SPOTPY is easy. Just use:

pip install spotpy

Or, after downloading the source code:

Linux:

sudo python setup.py install

Windows (after making sure python is in your path):

python setup.py install

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spotpy-1.0.10.zip (66.6 kB view details)

Uploaded Source

Built Distributions

spotpy-1.0.10.win32.exe (266.2 kB view details)

Uploaded Source

spotpy-1.0.10-py2-none-any.whl (71.2 kB view details)

Uploaded Python 2

File details

Details for the file spotpy-1.0.10.zip.

File metadata

  • Download URL: spotpy-1.0.10.zip
  • Upload date:
  • Size: 66.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for spotpy-1.0.10.zip
Algorithm Hash digest
SHA256 3adfe2c8c942d9a8adeeaeae327fe8c468f23c7c548854086e3ddb3ea6c9fc3c
MD5 2caea04f07eb24bec339148d2a67284c
BLAKE2b-256 62ce339244655020835313a87663323818bb198ef893e495f48dc37c77831eb9

See more details on using hashes here.

File details

Details for the file spotpy-1.0.10.win32.exe.

File metadata

  • Download URL: spotpy-1.0.10.win32.exe
  • Upload date:
  • Size: 266.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for spotpy-1.0.10.win32.exe
Algorithm Hash digest
SHA256 38b1961f30b2ea4ee270ad081068556d89d2f75544c36375af123b97f4aae2f0
MD5 df68c0d6c45ff14703ee63981f2f60d1
BLAKE2b-256 cde7b2ffb768f0025a8f01722ea099728e4c596a24e9a27ddb873c2f10532086

See more details on using hashes here.

File details

Details for the file spotpy-1.0.10-py2-none-any.whl.

File metadata

File hashes

Hashes for spotpy-1.0.10-py2-none-any.whl
Algorithm Hash digest
SHA256 45ac9a609d9f6637dd5f885c0f0e754cdd4993874475ab3722b24617edb61165
MD5 c1d4ac64adb94935b81572bb114e4de7
BLAKE2b-256 98d257d95e30ffd307468ecc78fb86650916f6a5c0efb56247cd4c7afd43bbd4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page