Skip to content

Latest commit

 

History

History
453 lines (364 loc) · 17.3 KB

CHANGELOG.rst

File metadata and controls

453 lines (364 loc) · 17.3 KB

Changelog History

xskillscore vNext (unreleased)

Breaking Changes

  • Dropped support for Python 3.9 and 3.10. The minimum supported version is now Python 3.11, following xarray's support window (3.11 to 3.14). (:issue:`468`) Aaron Spring

Features

  • Added :py:meth:`xskillscore.Contingency.cramers_v` for measuring association between categorical observations and forecasts. (:pr:`459`) Kkkakania
  • Added fair keyword to :py:func:`~xskillscore.crps_ensemble` implementing the ensemble-size adjusted, unbiased CRPS of Ferro (2014), matching the fair keyword of :py:func:`~xskillscore.rps` and :py:func:`~xskillscore.brier_score`. (:issue:`461`, :pr:`462`) Aaron Spring

Bug Fixes

  • Fixed :py:func:`~xskillscore.roc` with bin_edges="continuous" returning incorrect areas (down to 0.0 instead of 1.0) when forecast values fall outside the [0, 1] range of the binary observations. Observations are now categorised with a fixed split rather than the forecast-derived threshold, so results match sklearn.metrics.roc_auc_score. (:issue:`442`, :pr:`450`) Aaron Spring

Documentation

  • Made the documentation discoverable and parseable by LLMs and coding agents by generating llms.txt, llms-full.txt and per-page markdown during the docs build (via sphinx-llm) and adding documentation breadcrumbs to the package __init__. (:pr:`451`) Aaron Spring
  • Added a Context7 documentation badge to the README and docs landing page. (:pr:`451`) Aaron Spring

Internal Changes

  • Fixed the Read the Docs build, which had been failing since Sphinx 9 was released: sphinx-autosummary-accessors (2025.3.1, latest) calls Autosummary.create_documenter, removed in Sphinx 9, so importing it in docs/source/conf.py aborted the build. Pinned sphinx <9 in ci/doc.yml, ci/dev.yml, ci/docs_notebooks.yml and the complete extra until the extension supports Sphinx 9. (:pr:`467`) Aaron Spring
  • Bumped GitHub Actions to versions running on Node.js 24 (actions/checkout@v5, actions/setup-python@v6, actions/upload-artifact@v6, actions/download-artifact@v7, actions/github-script@v8, mamba-org/setup-micromamba@v3) to silence Node.js 20 deprecation warnings. Aaron Spring

xskillscore v0.0.29 (2026-02-18)

Internal Changes

  • Lifted numpy<2.4 dependency constraint and bumped minimum to numpy>=1.25. (:pr:`444`) Aaron Spring

xskillscore v0.0.28 (2026-01-19)

Bug Fixes

  • Fixed a bug introduced in v0.0.27 where numpy v1.x support was broken for some algorithms. (:pr:`431`) Trevor James Smith.
  • Removed all numpy.atleast_1d() calls that were causing numerical differences in p-value calculations with numpy v2.x and fixed several doctest expected outputs. (:pr:`440`) Aaron Spring.

Internal Changes

  • Pinned numpy below v2.4 due to breaking API changes. (:pr:`441`) Trevor James Smith
  • Adjusted tests to adapt to new xarray attributes preservation behaviour. (:pr:`441`) Trevor James Smith
  • Updated pre-commit configuration. (:pr:`434`)

xskillscore v0.0.27 (2025-07-14)

Bug Fixes

  • Updated and corrected the build configurations in the GitHub workflows so that the correct Python is used when running automated build tests. (:pr:`426`) Trevor James Smith

Internal Changes

  • Adapted code base for modern numpy and xarray. (:pr:`426`) Trevor James Smith
  • Removed :py:func:`xskillscore.core.utils.suppress_warnings` in lieu of :py:func:`warnings.filterwarnings`. (:pr:`426`) Trevor James Smith
  • The minimum supported versions for several dependencies have been updated. (:pr:`426`) Trevor James Smith
  • xskillscore now uses setuptools-scm to automatically determine the version number. (:pr:`427`) Trevor James Smith
  • Updated GitHub Actions and pre-commit hook versions to more modern versions. (:pr:`428`) Trevor James Smith
  • Release documentation steps have been updated to to refer to the new setuptools-scm-based approach. (:pr:`428`) Trevor James Smith
  • The test suite now refers to the xarray.testing submodule for basic testing helpers. (:pr:`422`) weipeng1999

xskillscore v0.0.26 (2024-03-10)

Internal Changes

xskillscore v0.0.25 (2024-03-10)

Bug Fixes

  • :py:func:`~xskillscore.rank_histogram` random_for_tied=True handles tied ranks correctly by default. random_for_tied=False ignores this and retains previous behaviour. (:issue:`335`, :pr:`364`) Aaron Spring.
  • Allow singleton dimension in :py:func:`~xskillscore.resample_iterations_idx` as this is allowed in :py:func:`~xskillscore.resample_iterations` also. (:issue:`375`, :pr:`376`) Aaron Spring.

Internal Changes

  • Reduce dependencies (:issue:`359`, :pr:`363`) Aaron Spring.
  • Implement typing for all xs.{calls}. (:issue:`317`, :pr:`366`) Aaron Spring.
  • Refactor masking NaN in :py:func:`~xskillscore.rps`. (:pr:`397`) Aaron Spring.
  • Use to pyproject.toml and use ruff for linting Ray Bell.

xskillscore v0.0.24 (2021-10-08)

Documentation

  • Replaced Boston house data in tabular.ipynb (:pr:`352`) Ray Bell.

xskillscore v0.0.23 (2021-08-09)

Features

  • :py:func:`~xskillscore.multipletests` controlling the false discovery rate for multiple hypothesis tests. (:issue:`365`, :pr:`370`) Aaron Spring.

Bug Fixes

  • :py:func:`~xskillscore.crps_ensemble` broadcasts (:issue:`345`, :pr:`346`) Aaron Spring.

Internal Changes

  • :py:func:`~xskillscore.resampling.resample_iterations_idx` do not break when dim is not coordinate. (:issue:`303`, :pr:`339`) Aaron Spring.
  • Allow float or integer forecasts in :py:func:`~xskillscore.brier_score` (:issue:`285`, :pr:`341`) Aaron Spring.

xskillscore v0.0.22 (2021-06-29)

Internal Changes

  • Created np_probabilistic.py (:pr:`333`) Ray Bell.
  • Require xhistogram>=0.3.0 (:pr:`337`).

xskillscore v0.0.21 (2021-06-13)

  • Allow float or integer forecasts in :py:func:`~xskillscore.brier_score` (:issue:`285`, :pr:`342`) Aaron Spring

Internal Changes

Documentation

  • Added more info in quick-start.ipynb (:pr:`316`) Ray Bell.
  • Created tabular-data.ipynb (:pr:`330`) Ray Bell.

Breaking changes

  • Renamed mae_test to halfwidth_ci_test to make this comparative metric generic. Now, it accepts any of the distance metrics functions except for mape. The new function has an additional argument called metric which is a string and name of the target distance metric. (:pr:`319`) Taher Chegini.

xskillscore v0.0.20 (2021-05-08)

Features

  • Specify category distribution type with input_distributions in :py:func:`~xskillscore.rps` if category_edges==None that forecasts and observations are probability distributions p or cumulative distributionss c. See :py:func:`~xskillscore.rps` docstrings and doctests for examples. (:pr:`300`) Aaron Spring
  • Added slope of linear fit :py:func:`~xskillscore.linslope`. (:pr:`307`) Ray Bell

Internal Changes

  • Use pytest-xdist and matplotlib-base in environments to speed up CI. (:pr:`283`) Aaron Spring
  • :py:func:`~xskillscore.rps` does not break from masking NaNs anymore. :py:func:`~xskillscore.rps` expilicty checks for bin_dim if category_edges==None. (:pr:`287`) Aaron Spring
  • Add doctest on the docstring examples. (:pr:`302`) Ray Bell
  • Removed a call to compute weights in testing. (:pr:`306`) Ray Bell
  • Use built in xarray clip method. (:pr:`309`) Ray Bell

xskillscore v0.0.19 (2021-03-12)

Features

  • Added mean error :py:func:`~xskillscore.me`. (:issue:`202`, :pr:`200`) Andrew Huang
  • :py:func:`~xskillscore.brier_score` and :py:func:`~xskillscore.rps` now contain keyword fair to account for ensemble-size adjustments, but defaults to False. :py:func:`~xskillscore.brier_score` also accepts binary or boolean forecasts when a member_dim dimension is present. (:issue:`162`, :pr:`211`) Aaron Spring
  • Added MAE significance test :py:func:`~xskillscore.mae_test` from Jolliffe and Ebert https://www.cawcr.gov.au/projects/verification/CIdiff/FAQ-CIdiff.html (:issue:`192`, :pr:`209`) Aaron Spring
  • :py:func:`~xskillscore.resampling.resample_iterations` and faster :py:func:`~xskillscore.resampling.resample_iterations_idx` for resampling with and without replacement. (:issue:`215`, :pr:`225`) Aaron Spring
  • Added receiver operating characteristic (ROC) :py:func:`~xskillscore.roc`. (:issue:`114`, :issue:`256`, :pr:`236`, :pr:`259`) Aaron Spring
  • Added many options for category_edges in :py:func:`~xskillscore.rps`, which allows multi-dimensional edges. :py:func:`~xskillscore.rps` now requires dimension member_dim in forecasts. (:issue:`275`, :pr:`277`) Aaron Spring

Breaking changes

  • Aligned output of :py:func:`~xskillscore.sign_test` with :py:func:`~xskillscore.mae_test`. Now tests from comparative.py return more than one object including a boolean indicating signficance based on alpha. (:pr:`209`) Aaron Spring
  • Drop support for python 3.6. (:issue:`237`, :pr:`276`) Ray Bell

Bug Fixes

  • :py:func:`~xskillscore.sign_test` now works for xr.Dataset inputs. (:issue:`198`, :pr:`199`) Aaron Spring
  • :py:func:`~xskillscore.threshold_brier_score` does not average over thresholds when dim==None. Now also carries threshold as coordinate. (:issue:`255`, :pr:`211`) Aaron Spring
  • Passing weights no longer triggers eager computation. (:issue:`218`, :pr:`224`). Andrew Huang
  • :py:func:`~xskillscore.rps` not restricted to [0, 1]. (:issue:`266`, :pr:`277`) Aaron Spring

Internal Changes

  • Added Python 3.7 and Python 3.8 to the CI. Use the latest version of Python 3 for development. (:issue:`21`, :pr:`189`) Aaron Spring
  • Lint with the latest black. (:issue:`179`, :pr:`191`) Ray Bell
  • Update mape algorithm from scikit-learn v0.24.0 and test against it. (:issue:`160`, :pr:`230`) Ray Bell
  • Pin numba to >=0.52 to fix CI (:issue:`233`, :pr:`234`) Ray Bell
  • Refactor asv benchmarks. (:pr:`231`) Aaron Spring
  • Added tests for nans in correlation metrics (:issue:`246`, :pr:`247`) Ray Bell
  • Added tests for weighted metrics against scikit-learn (:pr:`257`) Ray Bell
  • Pin xhistogram to >=0.1.2 and adjust code/documentation so that, as in np.histogram, right-most bin is right-edge inclusive where bins are specified (:pr:`269`) Dougie Squire
  • Reduce warnings. (:issue:`41`, :pr:`268`) Aaron Spring
  • Use raise_if_dask_computes from xarray. (:issue:`272`, :pr:`273`) Ray Bell
  • :py:func:`~xskillscore.threshold_brier_score` now carries threshold values as coordinates. (:pr:`279`) Aaron Spring

xskillscore v0.0.18 (2020-09-23)

Features

  • Added the sign test described in DelSole and Tippett 2016: :py:func:`~xskillscore.sign_test`. (:issue:`133`, :pr:`176`) Aaron Spring and Dougie Squire

Internal Changes

  • Removed an unused variable in _rmse, resulting in 2x speedup (:pr:`182`). Andrew Huang
  • Require xarray=0.16.1 (:issue:`183`, :pr:`184`) Aaron Spring

Bug Fixes

  • Fix incompatibility with xarray=0.16.1 in apply_ufunc (:issue:`183`, :pr:`184`) Aaron Spring

Documentation

  • Added CONTRIBUTING.md to trigger built-in Github contribution guide reference (:pr:`181`) mcsitter.

xskillscore v0.0.17 (2020-09-06)

Features

  • Added contingency table :py:func:`~xskillscore.Contingency` and associated metrics (:pr:`119`, :pr:`153`). Dougie Squire
  • Added :py:func:`~xskillscore.rank_histogram` and :py:func:`~xskillscore.discrimination` to probabilistic metrics (:pr:`136`). Dougie Squire
  • Added :py:func:`~xskillscore.reliability` to probabilistic metrics (:pr:`164`). Dougie Squire
  • Added dim and weights kwargs for probabilistic metrics. (:pr:`121`) Aaron Spring
  • Added keep_attrs kwarg for all metrics. (:pr:`122`) Andrew Huang
  • Added ranked probability score :py:func:`~xskillscore.rps`. (:pr:`163`) Aaron Spring
  • Deterministic metrics now automatically broadcast any non-core dimensions. E.g., a single time series can be compared to a gridded product spanning that same time span. (:issue:`165`, :issue:`71`, :issue:`156`, :pr:`166`) Aaron Spring

Breaking Changes

  • Renamed dim to member_dim in probabilistic metrics. (:pr:`121`) Aaron Spring
  • Argument dim becomes keyword dim=None in all metrics. (:issue:`137`, :pr:`143`) Aaron Spring
  • dim=None reduces all dimensions as in xr.mean(dim=None). (:issue:`137`, :pr:`143`) Aaron Spring

Bug Fixes

  • Fixes weights=None type issue with latest version of dask. (:issue:`168`, :pr:`171`) Andrew Huang

Documentation

Internal Changes

  • Added utils module to house utilities shared across multiple modules (:pr:`119`). Dougie Squire
  • Added conftest.py to gather all pytest.fixtures. (:issue:`126`, :pr:`159`). Aaron Spring and Ray Bell
  • Removed test_np_deterministic covered by test_metric_results_accurate. (:pr:`159`) Aaron Spring

xskillscore v0.0.16 (2020-07-18)

Internal Changes

Bug Fixes

  • Avoid mutating inputted arrays when skipna=True. (:pr:`111`) Riley X. Brady.
  • Avoid read-only error that appeared due to not copying input arrays when dealing with NaNs. (:pr:`111`) Riley X. Brady.

xskillscore v0.0.15 (2020-03-24)

Features

  • Update the XSkillScoreAccessor with all metrics. Ray Bell

xskillscore v0.0.14 (2020-03-20)

Features

  • Add r2 as an implementation of sklearn.metrics.r2_score. Ray Bell

xskillscore v0.0.13 (2020-03-17)

Bug Fixes

  • Fixes #79 assignment destination is read-only error when skipna=True and weights are passed. Andrew Huang

xskillscore v0.0.12 (2020-01-09)

Internal Changes

  • ~30-50% speedup for deterministic metrics when weights=None. Aaron Spring

xskillscore v0.0.11 (2020-01-06)

Features

  • Add effective_sample_size, pearson_r_eff_p_value, and spearman_r_eff_p_value for computing statistical significance for temporally correlated data with autocorrelation. Riley X. Brady

xskillscore v0.0.10 (2019-12-21)

Deprecations

  • mad no longer works and is replaced by median_absolute_error. Riley X. Brady

Bug Fixes

  • skipna for pearson_r and spearman_r and their p-values now reports accurate results when there are pairwise nans (i.e., nans that occur in different indices in a and b) Riley X. Brady

Testing

  • Test that results from grid cells in a gridded product match the same value if their time series were input directly into functions. Riley X. Brady
  • Test that metric results from xskillscore are the same value as an external package (e.g. numpy, scipy, sklearn). Riley X. Brady
  • Test that skipna=True works properly with pairwise nans. Riley X. Brady