What’s New¶
v0.4.0 (June 18, 2020)¶
Breaking changes¶
Python <3.6 is no longer officially supported. The package might still work, but we don’t test against these versions anymore.
Enhancements¶
The package can now be installed via conda:
conda install -c phausamann -c conda-forge sklearn-xarray
v0.3.0 (November 5, 2018)¶
Breaking changes¶
wrapnow returns a new classCompatEstimatorWrapperwhencompat=True.The standard
EstimatorWrapperdirectly reflects the parameters of the underlying estimator as instance attributes, regardless of the value ofcompat(which is deprecated and has no effect).
Enhancements¶
EstimatorWrappernow directly reflects both the parameters and the fitted attributes (e.g.mean_) of the underlying estimator. Theestimatorattribute is still an instance of the actual estimator but is treated mostly as just thetypeof the instance (It’s not stored as the type for compatibility withclone).Added the
CompatEstimatorWrapperwhich acts like a standard sklearn estimator (with the wrapped estimator as nested) and does not present the attributes of the underlying estimator.Added
inverse_transformtopreprocessing.Concatenator.
Bug fixes¶
Fixed failing tests with sklearn 0.20.
v0.2.0 (April 9, 2018)¶
Breaking changes¶
wrapnow returns a decoratedEstimatorWrapperinstead of an estimator-specific wrapper class.Removed the
common.decoratorsmodule, because the decorated estimators could not be pickled and therefore didn’t pass the usual sklearn estimator checks.Removed the
datasetanddataarraymodules. Wrappers have to be directly imported fromsklearn_xarray.Removed the
datamodule (now calleddatasets).
Enhancements¶
Added wrappers for
fit_transform,partial_fit,predict_proba,predict_log_probaanddecision_function.
v0.1.4 (March 15, 2018)¶
Enhancements¶
preprocessing.Transposernow also accepts a subset ofX.dimsfor theorderparameter.preprocessing.Splitterandpreprocessing.Segmenternow accept anaxisargument that specifies where to insert the new dimension.Huge performance improvements for
preprocessing.Segmenterby usingnumpy.lib.stride_tricks.as_stridedinstead of a loop. The general-purpose backend for segmenting can be found inutils.segment_array.
Deprecations¶
The
datamodule containing different example datasets is being renamed todatasetsaccording to the scikit-learn standards. Since thedatasetmodule will be removed, there will no longer be confusion due to similar naming.
v0.1.3 (January 9, 2018)¶
Enhancements¶
The wrapper now passes the DataArray’s data attribute to the wrapped
estimator, making it possible to wrap estimators from dask-ml and use
dask-backed DataArrays and Datasets as inputs.
v0.1.2 (December 10, 2017)¶
Enhancements¶
The wrapping mechanism has been changed to work with both DataArrays and
Datasets. From now on, you can use from sklearn_xarray import wrap which
will automatically determine the type of xarray object when calling fit.
Note that a wrapper fitted for DataArrays cannot be used for Datasets and
vice-versa.
The wrappers now also support passing an estimator type rather than an instance and passing the parameters of the wrapped estimator directly to the wrapper.