Skip to content

Commit 86bca13

Browse files
authored
Merge pull request #38 from phausamann/develop
Updates for release 0.2.0
2 parents bf31bac + bf6c20f commit 86bca13

File tree

18 files changed

+520
-369
lines changed

18 files changed

+520
-369
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Make sure you have:
2-
* added the necessary updates to `doc/content/whatsnew.rst`
3-
* added documentation for new features
4-
* updated actibelt/version.py if you are preparing a new release
2+
- [ ] added the necessary updates to `doc/content/whatsnew.rst`
3+
- [ ] added documentation for new features
4+
- [ ] updated sklearn_xarray/version.py if you are preparing a new release

doc/content/api/common.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ Top-level functions and classes
22
===============================
33

44
.. automodule:: sklearn_xarray
5-
:members:
5+
:members:

doc/content/whatsnew.rst

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,36 @@
11
What's New
22
==========
33

4-
.. v0.2.0
5-
.. Breaking changes
6-
.. The ``dataset`` and ``dataarray`` modules have been removed. Wrappers have
7-
to be directly imported from ``sklearn_xarray``.
4+
5+
v0.2.0 (April 9, 2018)
6+
----------------------
7+
8+
Breaking changes
9+
~~~~~~~~~~~~~~~~
10+
- ``wrap`` now returns a decorated ``EstimatorWrapper`` instead of an
11+
estimator-specific wrapper class.
12+
- Removed the ``common.decorators`` module, because the decorated
13+
estimators could not be pickled and therefore didn't pass the usual sklearn
14+
estimator checks.
15+
- Removed the ``dataset`` and ``dataarray`` modules. Wrappers have
16+
to be directly imported from ``sklearn_xarray``.
17+
- Removed the ``data`` module (now called ``datasets``).
18+
19+
20+
Enhancements
21+
~~~~~~~~~~~~
22+
23+
- Added wrappers for ``fit_transform``, ``partial_fit``, ``predict_proba``,
24+
``predict_log_proba`` and ``decision_function``.
825

926

1027
v0.1.4 (March 15, 2018)
11-
--------------------
28+
-----------------------
1229

1330
Enhancements
1431
~~~~~~~~~~~~
1532

16-
- ``preprocessing.Tranposer`` now also accepts a subset of ``X.dims`` for the
33+
- ``preprocessing.Transposer`` now also accepts a subset of ``X.dims`` for the
1734
``order`` parameter.
1835
- ``preprocessing.Splitter`` and ``preprocessing.Segmenter`` now accept an
1936
``axis`` argument that specifies where to insert the new dimension.

doc/content/wrappers.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ sklearn for use with a ``DataArray``::
2727
X = load_dummy_dataarray()
2828
Xt = wrap(StandardScaler()).fit_transform(X)
2929

30-
The :py:func:`wrap` function will try to guess the type of the estimator it
31-
wraps and return an object with the corresponding methods for each type of
32-
estimator (e.g. ``predict`` for classifiers and regressors).
30+
The :py:func:`wrap` function will return an object with the corresponding
31+
methods for each type of estimator (e.g. ``predict`` for classifiers and
32+
regressors).
3333

3434
.. note::
3535

examples/plot_activity_recognition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
from sklearn_xarray import wrap, Target
2828
from sklearn_xarray.preprocessing import (Splitter, Sanitizer, Featurizer)
2929
from sklearn_xarray.model_selection import CrossValidatorWrapper
30-
from sklearn_xarray.data import load_wisdm_dataarray
30+
from sklearn_xarray.datasets import load_wisdm_dataarray
3131

3232
from sklearn.preprocessing import StandardScaler, LabelEncoder
3333
from sklearn.decomposition import PCA

sklearn_xarray/__init__.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
""" ``sklearn_xarray`` """
22

33
from sklearn_xarray.common.wrappers import (
4-
wrap, ClassifierWrapper, RegressorWrapper, TransformerWrapper)
5-
from sklearn_xarray.common.decorators import (
6-
classifier, regressor, transformer)
4+
wrap, EstimatorWrapper, ClassifierWrapper, RegressorWrapper,
5+
TransformerWrapper)
76
from sklearn_xarray.target import Target
87

98
from sklearn_xarray.version import __version__, __release__
@@ -13,9 +12,7 @@
1312

1413
__all__ = [
1514
'wrap',
16-
'classifier',
17-
'regressor',
18-
'transformer',
15+
'EstimatorWrapper',
1916
'ClassifierWrapper',
2017
'RegressorWrapper',
2118
'TransformerWrapper',

0 commit comments

Comments
 (0)