BikeSharing

class itergp.datasets.uci.BikeSharing(dir='data/uci/bike', overwrite=False)

Bases: UCIDataset

Bike sharing dataset (17,379 × 16). 1

This dataset contains the hourly (and daily) count of rental bikes between years 2011 and 2012 of the Capital bikeshare system with the corresponding weather and seasonal information.

Source: https://archive.ics.uci.edu/ml/datasets/bike+sharing+dataset

References

1

Fanaee-T, Hadi, and Gama, Joao, “Event labeling combining ensemble detectors and background knowledge”, Progress in Artificial Intelligence (2013): pp. 1-15, Springer Berlin Heidelberg, doi:10.1007/s13748-013-0040-3.

Attributes Summary

URL

input_shape

Input shape of the data.

output_shape

Output shape of the data.

test

Test data.

train

Training data.

Methods Summary

from_disk(dir)

resample(rng_state)

Resample the training and test set from the entire data set.

save([dir, overwrite])

Save dataset to disk.

Attributes Documentation

Parameters
  • dir (Optional[str]) –

  • overwrite (bool) –

URL = 'https://archive.ics.uci.edu/ml/machine-learning-databases/00275/'
input_shape

Input shape of the data.

output_shape

Output shape of the data.

test

Test data.

train

Training data.

Methods Documentation

classmethod from_disk(dir)
Parameters

dir (str) –

Return type

Dataset

resample(rng_state)

Resample the training and test set from the entire data set.

Randomly selects new datapoints for the training and test set of the same sizes as the original dataset.

Parameters

rng_state (SeedSequence) – Random number generator state.

Return type

Dataset

save(dir='data', overwrite=False)

Save dataset to disk.

Parameters
  • dir (str) – Directory to save data to.

  • overwrite – Whether to overwrite existing data.

Return type

None