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.8.zip (70.4 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

spotpy-1.0.8.win32.exe (265.3 kB view details)

Uploaded Source

spotpy-1.0.8-py2-none-any.whl (70.3 kB view details)

Uploaded Python 2

File details

Details for the file spotpy-1.0.8.zip.

File metadata

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

File hashes

Hashes for spotpy-1.0.8.zip
Algorithm Hash digest
SHA256 8a6b4d588db3a0c8c806f8871605ec5afc0b207b329a8e388906fa4a6e128190
MD5 a8634a374fcfec5d8cebc03ee9fc84ec
BLAKE2b-256 56ffc9696db3fd7f71a19f68ad66671c9152d628f57b4a701e9a1eb4c84d4798

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for spotpy-1.0.8.win32.exe
Algorithm Hash digest
SHA256 eed9d25fba42016ae5b79608998bfea7edd9024854a137008efcd06585d7a6e7
MD5 ccae76d3ee5d6083b9cd963053bfe783
BLAKE2b-256 bcdc46c78dc752ed11a593ed790b2f72c05c3a3cf412c896eaf1cda3248f0d6d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spotpy-1.0.8-py2-none-any.whl
Algorithm Hash digest
SHA256 8862b0715a7debaa9b78b654efdcf7a6cdddae3a89e778baebd63859dd98fba3
MD5 3b03bade6c56a4c8167c68c380643323
BLAKE2b-256 a502bc90045a7c4ee7186398fbae0f48bdc5eed72b5a6a8fb52aee484ba5137c

See more details on using hashes here.

Supported by

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