Skip to content

Commit

Permalink
Changelog entry for v1.5.0 (#271)
Browse files Browse the repository at this point in the history
Includes the new cross-validators and fixes to our base classes to
accommodate Harmonica.
  • Loading branch information
leouieda committed Jun 4, 2020
1 parent b35724f commit d870b41
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.rst
Expand Up @@ -159,6 +159,7 @@ Documentation for other versions
* `Development <http://www.fatiando.org/verde/dev>`__ (reflects the *master* branch on
Github)
* `Latest release <http://www.fatiando.org/verde/latest>`__
* `v1.5.0 <http://www.fatiando.org/verde/v1.5.0>`__
* `v1.4.0 <http://www.fatiando.org/verde/v1.4.0>`__
* `v1.3.0 <http://www.fatiando.org/verde/v1.3.0>`__
* `v1.2.0 <http://www.fatiando.org/verde/v1.2.0>`__
Expand Down
56 changes: 56 additions & 0 deletions doc/changes.rst
Expand Up @@ -3,6 +3,62 @@
Changelog
=========

Version 1.5.0
-------------

*Released on: 2020/06/04*

.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.3877060.svg
:target: https://doi.org/10.5281/zenodo.3877060

Bug fixes:

* Apply projections using only the first two coordinates instead all given
coordinates. Projections only really involve the first two (horizontal)
coordinates. Only affects users passing ``extra_coords`` to gridder methods.
(`#264 <https://github.com/fatiando/verde/pull/264>`__)

New features:

* **New** blocked cross-validation classes ``BlockShuffleSplit`` and
``BlockKFold``. These are scikit-learn compatible cross-validators that split
the data into spatial blocks before assigning them to folds. Blocked
cross-validation can help avoid overestimation of prediction accuracy for
spatial data (see [Roberts_etal2017]_). The classes work with
``verde.cross_val_score`` and any other function/method/class that accepts a
scikit-learn cross-validator.
(`#251 <https://github.com/fatiando/verde/pull/251>`__ and
`#254 <https://github.com/fatiando/verde/pull/254>`__)
* Add the option for block-wise splitting in ``verde.train_test_split`` by
passing in a ``spacing`` or ``shape`` parameters.
(`#253 <https://github.com/fatiando/verde/pull/253>`__ and
`#257 <https://github.com/fatiando/verde/pull/257>`__)

Base classes:

* Add optional argument to ``verde.base.least_squares`` to copy Jacobian
matrix.
(`#255 <https://github.com/fatiando/verde/pull/255>`__)
* Add extra coordinates (specified by the ``extra_coords`` keyword argument
to outputs of ``BaseGridder`` methods.
(`#265 <https://github.com/fatiando/verde/pull/265>`__)

Maintenance:

* Update tests to ``repr`` changes in scikit-learn 0.23.0.
(`#267 <https://github.com/fatiando/verde/pull/267>`__)

Documentation:

* Fix typo in README contributing section.
(`#258 <https://github.com/fatiando/verde/pull/258>`__)

This release contains contributions from:

* Leonardo Uieda
* Santiago Soler
* Rowan Cockett

Version 1.4.0
-------------

Expand Down
3 changes: 3 additions & 0 deletions verde/tests/test_datasets.py
Expand Up @@ -23,6 +23,9 @@

def test_datasets_locate():
"Make sure the data cache location has the right package name"
# Fetch a dataset first to make sure that the cache folder exists. Since
# Pooch 1.1.1 the cache isn't created until a download is requested.
fetch_texas_wind()
path = locate()
assert os.path.exists(path)
# This is the most we can check in a platform independent way without
Expand Down

0 comments on commit d870b41

Please sign in to comment.