Skip to main content

xarray integration with sklearn (maintained fork)

Project description

PyPI Black

sklearn-xarray-ext

sklearn-xarray-ext is a maintained fork of sklearn-xarray by Peter Hausamann.

It is an open-source python package that combines the n-dimensional labeled arrays of xarray with the machine learning and model selection tools of scikit-learn. The package contains wrappers that allow the user to apply scikit-learn estimators to xarray types without losing their labels.

Documentation

The original package documentation can be found at https://phausamann.github.io/sklearn-xarray/

Features

  • Makes sklearn estimators compatible with xarray DataArrays and Datasets.

  • Allows for estimators to change the number of samples.

  • Adds a large number of pre-processing transformers.

Installation

The package can be installed with pip:

$ pip install sklearn-xarray-ext

Example

The activity recognition example demonstrates how to use the package for cross-validated grid search for an activity recognition task. You can also download the example as a jupyter notebook.

Contributing

Please read the contribution guide if you want to contribute to this project.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sklearn_xarray_ext-0.5.0.tar.gz (34.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sklearn_xarray_ext-0.5.0-py3-none-any.whl (31.1 kB view details)

Uploaded Python 3

File details

Details for the file sklearn_xarray_ext-0.5.0.tar.gz.

File metadata

  • Download URL: sklearn_xarray_ext-0.5.0.tar.gz
  • Upload date:
  • Size: 34.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for sklearn_xarray_ext-0.5.0.tar.gz
Algorithm Hash digest
SHA256 a3b7c26cc1c3b4688dbf82c337b961c14e7daa4254e56acc929ed7549f3f1c26
MD5 b5b07c7ef4e964ce4b0374f58e592895
BLAKE2b-256 bb79396b62d35ece0bcbc1c819f7be010af38bf6b91eec7404af9a7a02cb74df

See more details on using hashes here.

File details

Details for the file sklearn_xarray_ext-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sklearn_xarray_ext-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 87fe4d7960bb6d58e5159ea0e894674524fde9b66df4d8f0ce4950e55bc9857d
MD5 132b65ac246ac453b13dc660967893db
BLAKE2b-256 1d6d590ee9399d666dbe6ce31ba612c430568eb781d1c1506dd5aef4802a249c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page