t22000t/bike-sharing-tabular
收藏资源简介:
这是一个即用型的UCI自行车共享数据集(小时粒度,17,379行×17列),附带了来自8架构表格建模管道的基准指标,用于直接比较。数据集由Fanaee-T和Gama(2014年)收集和发布,包含从2011年1月到2012年12月的小时观测数据。目标变量是每小时自行车租赁数量cnt(范围1-977),属于计数数据,建议使用泊松分布。特征包括7个连续特征(如温度、湿度、风速、时间特征)和5个分类特征(如季节、天气、星期几、假日、工作日)。数据集中没有缺失值,且不包含个人敏感信息,每个行是华盛顿特区Capital Bikeshare系统每小时聚合的自行车租赁计数。
许可证:CC BY 4.0 易读名称:每小时自行车共享需求(泊松分布(Poisson)版) 规模类别: - 10K < n < 100K 语言: - 英语 任务类别: - 表格回归(tabular-regression) 标签: - 表格数据(tabular) - 回归(regression) - 泊松分布(Poisson) - 计数数据(count-data) - 时间序列(time-series) - 基准测试(benchmark) - UCI 配置项: - 配置名称:default 数据文件:hour.csv # 每小时自行车共享需求(泊松分布(Poisson)版) 这是**UCI机器学习仓库(UCI ML Repository)自行车共享数据集**的小时级粒度版本(17,379行 × 17列),可直接使用,附带**8种架构的表格建模流水线基线指标**,便于直接进行性能对比。 原始数据由**Fanaee-T与Gama(2014)** 收集并发布。来源:[UCI机器学习仓库(UCI ML Repository)ID 275](https://archive.ics.uci.edu/dataset/275/bike+sharing+dataset)。 ## 概览 | 字段 | 取值 | |---|---| | 行数 | 17,379条小时级观测数据 | | 时间范围 | 2011年1月 — 2012年12月 | | 列数 | 17列(16个特征 + 1个目标变量) | | 目标变量 | `cnt`(小时级自行车租赁总数量) | | 目标变量取值范围 | 1 — 977 | | 目标变量均值/中位数 | 189 / 142 | | 分布族 | **泊松分布(Poisson)**(计数数据) | | 连续特征 | 7项(温度、湿度、风速、时间特征等) | | 分类特征 | 5项(季节、天气、星期几、节假日、工作日) | | 缺失值 | 无 | ## 推荐分布族 `cnt`为非负计数变量,因此**带对数连接函数的泊松分布(Poisson)族**是自然选择。[表格数据建模流水线](https://github.com/timothy22000/tabular_data_modelling_pipeline) 已内置现成配置:[`configs/example_bike_sharing.py`](https://github.com/timothy22000/tabular_data_modelling_pipeline/blob/master/configs/example_bike_sharing.py)。 ## 使用方法 ### 方式1:通过Hugging Face Datasets库加载 python from datasets import load_dataset ds = load_dataset("t22000t/bike-sharing-tabular", split="train") print(ds[0]) ### 方式2:使用纯Pandas加载 python import pandas as pd df = pd.read_csv("hf://datasets/t22000t/bike-sharing-tabular/hour.csv") print(df.shape, df["cnt"].describe()) ### 方式3:通过配套建模流水线使用 bash git clone https://github.com/timothy22000/tabular_data_modelling_pipeline cd tabular_data_modelling_pipeline pip install -e ".[all]" python scripts/download_data.py --dataset bike_sharing python train.py --config configs/example_bike_sharing.py --input data/bike_sharing.csv ## 特征字典 | 特征名称 | 类型 | 描述 | |---|---|---| | `instant` | 整数 | 记录ID(训练前需丢弃) | | `dteday` | 日期 | 日期字符串(需丢弃,改用`yr`/`mnth`) | | `season` | 分类 | 1=春季,2=夏季,3=秋季,4=冬季 | | `yr` | 整数 | 0=2011年,1=2012年 | | `mnth` | 整数 | 1-12(月份) | | `hr` | 整数 | 一天中的小时(0-23) | | `holiday` | 分类 | 0/1(是否为节假日) | | `weekday` | 分类 | 0=周日 … 6=周六 | | `workingday` | 分类 | 1=工作日,0=非工作日 | | `weathersit` | 分类 | 1=晴朗,2=薄雾,3=小雨/小雪,4=强降水 | | `temp` | 浮点数 | 归一化摄氏温度(除以41) | | `atemp` | 浮点数 | 归一化体感温度(除以50) | | `hum` | 浮点数 | 归一化湿度(除以100) | | `windspeed` | 浮点数 | 归一化风速(除以67) | | `casual` | 整数 | **数据泄露特征** - 非注册用户租赁量(需从特征集中排除) | | `registered` | 整数 | **数据泄露特征** - 注册用户租赁量(需从特征集中排除) | | `cnt` | 整数 | **目标变量** - 总租赁量(`casual + registered`) | `casual`与`registered`的和即为`cnt`,需从特征集中移除,内置配置已自动完成该步骤。 ## 基线指标(8架构流水线) _基线指标将在模型仓库[`t22000t/bike-sharing-tabular-models`](https://huggingface.co/t22000t/bike-sharing-tabular-models)上线后补充。_ ## 数据集划分 本数据集为单个CSV文件,包含2011年1月至2012年12月的17,379条小时级数据。建模流水线默认采用`seed=42`的确定性80/20随机划分。若需更贴合实际的时间序列划分,请将`DatasetConfig.split_col`设置为自行构建的列(例如“2012-09之前/之后”)。 ## 个人与敏感信息 无敏感信息。每条记录均为美国华盛顿特区Capital Bikeshare系统的聚合小时级自行车租赁计数,不包含任何骑手个体数据。 ## 许可证与署名 **CC BY 4.0**。原始发表文献: > Fanaee-T, Hadi, and Gama, Joao. _Event labeling combining ensemble detectors and background knowledge._ Progress in Artificial Intelligence (2014): pp. 1-15, Springer Berlin Heidelberg. UCI机器学习仓库(UCI ML Repository)链接:https://archive.ics.uci.edu/dataset/275/bike+sharing+dataset ## 引用格式 bibtex @article{fanaee2014event, title = {Event labeling combining ensemble detectors and background knowledge}, author = {Fanaee-T, Hadi and Gama, João}, journal = {Progress in Artificial Intelligence}, pages = {1--15}, year = {2014}, publisher = {Springer Berlin Heidelberg} } @software{tabular_data_modelling_pipeline, author = {Mun, Timothy}, title = {tabular-data-modelling-pipeline}, url = {https://github.com/timothy22000/tabular_data_modelling_pipeline}, year = {2026} } ## 相关资源 - 🤖 [t22000t/bike-sharing-tabular-models](https://huggingface.co/t22000t/bike-sharing-tabular-models) - 本数据集上预训练的模型 - 📂 [t22000t/house-prices-tabular](https://huggingface.co/datasets/t22000t/house-prices-tabular) - 配套数据集(伽马分布族) - 📦 [tabular-data-modelling-pipeline](https://github.com/timothy22000/tabular_data_modelling_pipeline) - 底层建模流水线




