- Create statistical functionality for linear regression:
- Create :py
mesmer.stats.linear_regression.LinearRegression
which encapsulatesfit
,predict
, etc. methods around linear regression (#134). By Mathias Hauser. - Add
mesmer.stats._fit_linear_regression_xr
: xarray wrapper formesmer.stats._fit_linear_regression_np
. (#123 and #142). By Mathias Hauser. - Add add
fit_intercept
argument to thelinear_regression
fitting methods and functions (#144). By Mathias Hauser. - Allow to pass 1-dimensional targets to :py
mesmer.stats.linear_regression.LinearRegression.fit
(#221). By Mathias Hauser.
- Create :py
- Add
mesmer.stats.auto_regression._fit_auto_regression_xr
: xarray wrapper to fit an auto regression model (#139). By Mathias Hauser. - Add
mesmer.stats.auto_regression._draw_auto_regression_correlated_np
: to draw samples of an auto regression model (#161). By Mathias Hauser. - Extract function to select the order of the auto regressive model:
mesmer.stats.auto_regression._select_ar_order_xr
(#176). By Mathias Hauser. - Refactor the LOWESS smoothing for xarray objects: :py
mesmer.stats.smoothing.lowess
. (#193). By Mathias Hauser. - Added functions to stack regular lat-lon grids to 1D grids and unstack them again (#217). By Mathias Hauser.
- Added functions to mask the ocean and Antarctica for xarray objects (#219). By Mathias Hauser.
- Added functions to calculate the weighted global mean (#220). By Mathias Hauser.
- Localization radii that lead to singular matrices are now skipped (#187). By Mathias Hauser.
- Refactor and split :py
train_l_prepare_X_y_wgteq
into two functions: :pyget_scenario_weights
and :pystack_predictors_and_targets
(#143). By Mathias Hauser. - Moved
gaspari_cohn
&calc_geodist_exact
fromio.load_constant_files
tocore.computation
(#158). By Yann Quilcaille. - The function
mask_percentage
has been renamed to :pyutils.regionmaskcompat.mask_3D_frac_approx
(#202). By Mathias Hauser.
- Fix three issues with :py
utils.regionmaskcompat.mask_3D_frac_approx
. Note that these issues are only relevant if passing xarray objects and/ or masks close to the poles (#202 and #218). By Mathias Hauser.
- Add development/contributing docs (#121). By Zeb Nicholls.
- Restore compatibility with regionmask v0.9.0 (#136). By Mathias Hauser.
- Renamed the
interpolation
keyword ofnp.quantile
tomethod
changed in numpy v1.22.0 (#137). By Mathias Hauser. - Make use of :py
mesmer.stats.linear_regression.LinearRegression
in :pymesmer.calibrate_mesmer.train_gt_ic_OLSVOLC
(#145). By Mathias Hauser. - Add python 3.10 to list of supported versions (#162). By Mathias Hauser.
- Move contents of setup.py to setup.cfg (#169). By Mathias Hauser.
- Refactored functions dealing with the spatial covariance and its localization (#167 and #184). By Mathias Hauser.
- Use pyproject.toml for the build-system and setuptools_scm for the __version__ (#188). By Mathias Hauser.
Added additional tests for the calibration step (#209):
- one scenario (SSP5-8.5) and two ensemble members (#211)
- two scenarios (SSP1-2.6 and SSP5-8.5) with one and two ensemble members, respectively (#214)
By Mathias Hauser.
- Add
mesmer.stats._linear_regression
(renamed tomesmer.stats._fit_linear_regression_np
in #142). Starts the process of refactoring the codebase (#116). By Zeb Nicholls.
- Initialize
llh_max
to-inf
to ensure the cross validation loop is entered (#110). By Jonas Schwaab.
- Fix copyright notice and release version in documentation (#127). By Zeb Nicholls.
- Automatically upload the code coverage to codecov.io after the test suite has run (#99). By Mathias Hauser.
- Internal refactor: moved a number of inline comments to their own line (especially if this allows to have the code on one line instead of several) and other minor cleanups (#98). By Mathias Hauser.
- Refactor
io.load_cmipng_tas
andio.load_cmipng_hfds
to de-duplicate their code and add tests for them (#55). By Mathias Hauser.
- Reintroduce ability to read in cmip5 data from the cmip5-ng archive at ETH (#90). By Lea Beusch.
- Reproduce the test files because of a change in regionmask which affected the mesmer tests (#95). By Mathias Hauser.
- Refactor and speed up of the Gaspari-Cohn function and the calculation of the great circle distance (#85, #88). By Mathias Hauser.
- The geopy package is no longer a dependency of mesmer (#88). By Mathias Hauser.
- Convert README from Markdown to reStructuredText to fix package build errors. Also allows to include the README in the docs to avoid duplication (#102). By Mathias Hauser.
- Update example script (#80).
- First release on PyPI and conda (#79).