API Reference¶
Wrappers¶
Module: sklearn_xarray
Wrap an sklearn estimator for xarray objects. |
|
A wrapper around sklearn classifiers compatible with xarray objects. |
|
A wrapper around sklearn regressors compatible with xarray objects. |
|
A wrapper around sklearn transformers compatible with xarray objects. |
Target¶
Module: sklearn_xarray
A pointer to xarray coordinates or variables to be used as a target. |
Pre-processing¶
Module: sklearn_xarray.preprocessing
Object interface:
Concatenate variables along a dimension. |
|
Stack all dimensions and variables except for sample dimension. |
|
Reduce data along some dimension. |
|
Resample along some dimension. |
|
Remove elements containing NaNs. |
|
Split into segments along some dimension. |
|
Selects a subset of the samples. |
|
Split along some dimension. |
|
Reorder data dimensions. |
Functional interface:
Concatenates variables along a dimension. |
|
Stacks all dimensions and variables except for sample dimension. |
|
Wraps preprocessing functions from sklearn for use with xarray types. |
|
Reduces data along some dimension. |
|
Resamples along some dimension. |
|
Removes elements containing NaNs. |
|
Segments X along some dimension. |
|
Selects a subset of the samples. |
|
Splits X along some dimension. |
|
Reorders data dimensions. |
Model selection¶
Module: sklearn_xarray.model_selection
Wrap an sklearn cross validator for use with xarray. |
Utility functions¶
Module: sklearn_xarray.utils
Convert xarray DataArray or Dataset to numpy ndarray. |
|
Get logical index vectors for each group. |
|
Segment an array along some axis. |
|
Check whether an object is a DataArray. |
|
Check whether an object is a Dataset. |
|
Check whether an object is a Target. |
Datasets¶
Module: sklearn_xarray.datasets
Load a DataArray for demonstration purposes. |
|
Load a Dataset for demonstration purposes. |
|
Load a the ‘digits’ dataset from sklearn as a DataArray. |
|
Load the WISDM activity recognition dataset. |