shapiq.datasets.load_bike_sharing¶

shapiq.datasets.load_bike_sharing(*, to_numpy=False)[source]¶

Load the bike-sharing dataset from openml and preprocess it.

Note

The function requires the sklearn package to be installed.

Parameters:

to_numpy (bool) – Return numpy objects instead of pandas. Default is False.

Return type:

tuple[DataFrame, Series | DataFrame] | tuple[ndarray, ndarray]

Returns:

The bike-sharing dataset as a pandas DataFrame.

Example

>>> from shapiq.datasets import load_bike_sharing
>>> x_data, y_data = load_bike_sharing()
>>> print(x_data.shape, y_data.shape)
((17379, 12), (17379,))