Skip to main content

xarray integration with sklearn

Project description

Travis Coverage PyPI Black

sklearn-xarray

sklearn-xarray 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 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

or with conda:

$ conda install -c phausamann -c conda-forge sklearn-xarray

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-0.4.0.tar.gz (31.8 kB view details)

Uploaded Source

File details

Details for the file sklearn-xarray-0.4.0.tar.gz.

File metadata

  • Download URL: sklearn-xarray-0.4.0.tar.gz
  • Upload date:
  • Size: 31.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1.post20200616 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.6

File hashes

Hashes for sklearn-xarray-0.4.0.tar.gz
Algorithm Hash digest
SHA256 c25ef690057c90e78eac1c19624b46461ac2f4f0bac4b658cf58ba0f125cf61e
MD5 458e7cea226a927229b4a033e307e8ff
BLAKE2b-256 e76dff503591f631c4fe735ae8096646493cb53f2efde7bafb764d8a4308cf95

See more details on using hashes here.

Supported by

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