Datasets¶
sklearn_xarray.datasets
-
load_digits_dataarray
(load_images=False, nan_probability=0)[source]¶ Load a the ‘digits’ dataset from sklearn as a DataArray.
- Parameters
- load_imagesbool, optional
If true, the DataArray will contain the two-dimensional images as data instead of the vectorized samples.
- nan_probabilityfloat between 0 and 1
The probability with which a sample is injected with NaN values. For demonstration purposes only.
-
load_wisdm_dataarray
(url='http://www.cis.fordham.edu/wisdm/includes/datasets/latest/WISDM_ar_latest.tar.gz', file='WISDM_ar_v1.1/WISDM_ar_v1.1_raw.txt', folder='data/', tmp_file='widsm.tar.gz')[source]¶ Load the WISDM activity recognition dataset.
- Parameters
- urlstr, optional
The URL of the dataset.
- filestr, optional
The file containing the data.
- folderstr, optional
The folder where the data will be downloaded and extracted to.
- tmp_filestr, optional
The name of the temporary .tar file in the folder.
- Returns
- X: xarray DataArray
The loaded dataset.