ModelSkill: Flexible Model skill evaluation.
ModelSkill is a python package for scoring MIKE models (other models can be evaluated as well).
Contribute with new ideas in the discussion, report an issue or browse the documentation. Access observational data (e.g. altimetry data) from the sister library WatObs.
Use cases
ModelSkill would like to be your companion during the different phases of a MIKE modelling workflow.
- Model setup - exploratory phase
- Model calibration
- Model validation and reporting - communicate your final results
Installation
From pypi:
> pip install modelskill
Or the development version:
> pip install https://github.com/DHI/modelskill/archive/main.zip
Example notebooks
- Hydrology_Vistula_Catchment.ipynb
- Metocean_multi_model_comparison.ipynb
- Multi_variable_comparison.ipynb
- Metocean_track_comparison_global.ipynb
- Gridded_NetCDF_ModelResult.ipynb
- Directional_data_comparison.ipynb
- Combine_comparers.ipynb
Workflow
- Define ModelResults
- Define Observations
- Match Observations and ModelResults
- Do plotting, statistics, reporting using the Comparer
Read more about the workflow in the getting started guide.
Example of use
Start by defining model results and observations:
>>> import modelskill as ms
>>> mr = ms.DfsuModelResult("HKZN_local_2017_DutchCoast.dfsu", name="HKZN_local", item=0)
>>> HKNA = ms.PointObservation("HKNA_Hm0.dfs0", item=0, x=4.2420, y=52.6887, name="HKNA")
>>> EPL = ms.PointObservation("eur_Hm0.dfs0", item=0, x=3.2760, y=51.9990, name="EPL")
>>> c2 = ms.TrackObservation("Alti_c2_Dutch.dfs0", item=3, name="c2")
Then, connect observations and model results, and extract data at observation points:
>>> cc = ms.match([HKNA, EPL, c2], mr)
With the comparer object, cc, all sorts of skill assessments and plots can be made:
>>> cc.skill().round(2)
n bias rmse urmse mae cc si r2
observation
HKNA 385 -0.20 0.35 0.29 0.25 0.97 0.09 0.99
EPL 66 -0.08 0.22 0.20 0.18 0.97 0.07 0.99
c2 113 -0.00 0.35 0.35 0.29 0.97 0.12 0.99
Overview of observation locations
ms.plotting.spatial_overview([HKNA, EPL, c2], mr, figsize=(7,7))
Scatter plot
cc.plot.scatter()
Timeseries plot
Timeseries plots can either be static and report-friendly (matplotlib) or interactive with zoom functionality (plotly).
cc["HKNA"].plot.timeseries(width=1000, backend="plotly")
Metadata
Release files for modelskill 1.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| modelskill-1.3.2.tar.gz | 1.2 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| modelskill-1.3.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.5 MB
Release files / modelskill-1.3.2.tar.gz
| Download URL | modelskill-1.3.2.tar.gz |
|---|---|
| Size | 1.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b1504ca616d272bc7a6223843fb21cc1324dac789df42595b025e3afd674475d
|
|
BLAKE2b-256 checksum How to use checksums |
0b54ae8299bfa41b549754123b8cb48eb5daee801bf0d9a3c9b5b55885a41196
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 2, 2026.
Transparency logRelease files / modelskill-1.3.2-py3-none-any.whl
| Download URL | modelskill-1.3.2-py3-none-any.whl |
|---|---|
| Size | 1.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a2e3ffe3a823141420c45901a471c0e24c0f6ee8086cdb0d894730dc2a613aa9
|
|
BLAKE2b-256 checksum How to use checksums |
b7295ca1e8bdc5c15b1b17c7b58f1f0918c4b46a93a6282c3da227197bb136cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 2, 2026.
Transparency log