Skip to content

Commit d870b41

Browse files
committed
Changelog entry for v1.5.0 (#271)
Includes the new cross-validators and fixes to our base classes to accommodate Harmonica.
1 parent b35724f commit d870b41

File tree

3 files changed

+60
-0
lines changed

3 files changed

+60
-0
lines changed

README.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ Documentation for other versions
159159
* `Development <http://www.fatiando.org/verde/dev>`__ (reflects the *master* branch on
160160
Github)
161161
* `Latest release <http://www.fatiando.org/verde/latest>`__
162+
* `v1.5.0 <http://www.fatiando.org/verde/v1.5.0>`__
162163
* `v1.4.0 <http://www.fatiando.org/verde/v1.4.0>`__
163164
* `v1.3.0 <http://www.fatiando.org/verde/v1.3.0>`__
164165
* `v1.2.0 <http://www.fatiando.org/verde/v1.2.0>`__

doc/changes.rst

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,62 @@
33
Changelog
44
=========
55

6+
Version 1.5.0
7+
-------------
8+
9+
*Released on: 2020/06/04*
10+
11+
.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.3877060.svg
12+
:target: https://doi.org/10.5281/zenodo.3877060
13+
14+
Bug fixes:
15+
16+
* Apply projections using only the first two coordinates instead all given
17+
coordinates. Projections only really involve the first two (horizontal)
18+
coordinates. Only affects users passing ``extra_coords`` to gridder methods.
19+
(`#264 <https://github.com/fatiando/verde/pull/264>`__)
20+
21+
New features:
22+
23+
* **New** blocked cross-validation classes ``BlockShuffleSplit`` and
24+
``BlockKFold``. These are scikit-learn compatible cross-validators that split
25+
the data into spatial blocks before assigning them to folds. Blocked
26+
cross-validation can help avoid overestimation of prediction accuracy for
27+
spatial data (see [Roberts_etal2017]_). The classes work with
28+
``verde.cross_val_score`` and any other function/method/class that accepts a
29+
scikit-learn cross-validator.
30+
(`#251 <https://github.com/fatiando/verde/pull/251>`__ and
31+
`#254 <https://github.com/fatiando/verde/pull/254>`__)
32+
* Add the option for block-wise splitting in ``verde.train_test_split`` by
33+
passing in a ``spacing`` or ``shape`` parameters.
34+
(`#253 <https://github.com/fatiando/verde/pull/253>`__ and
35+
`#257 <https://github.com/fatiando/verde/pull/257>`__)
36+
37+
Base classes:
38+
39+
* Add optional argument to ``verde.base.least_squares`` to copy Jacobian
40+
matrix.
41+
(`#255 <https://github.com/fatiando/verde/pull/255>`__)
42+
* Add extra coordinates (specified by the ``extra_coords`` keyword argument
43+
to outputs of ``BaseGridder`` methods.
44+
(`#265 <https://github.com/fatiando/verde/pull/265>`__)
45+
46+
Maintenance:
47+
48+
* Update tests to ``repr`` changes in scikit-learn 0.23.0.
49+
(`#267 <https://github.com/fatiando/verde/pull/267>`__)
50+
51+
Documentation:
52+
53+
* Fix typo in README contributing section.
54+
(`#258 <https://github.com/fatiando/verde/pull/258>`__)
55+
56+
This release contains contributions from:
57+
58+
* Leonardo Uieda
59+
* Santiago Soler
60+
* Rowan Cockett
61+
662
Version 1.4.0
763
-------------
864

verde/tests/test_datasets.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323

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

0 commit comments

Comments
 (0)