Haxxsh commited on
Commit
3d9d817
·
verified ·
1 Parent(s): f75482d

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +193 -0
README.md ADDED
@@ -0,0 +1,193 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ task_categories:
4
+ - tabular-regression
5
+ tags:
6
+ - motorsport
7
+ - formula-racing
8
+ - lap-time
9
+ - tabular
10
+ - gdgc-datathon
11
+ language:
12
+ - en
13
+ size_categories:
14
+ - 100K<n<1M
15
+ ---
16
+
17
+ # GDGC Datathon 2025 - Formula Racing Lap Time Dataset
18
+
19
+ Dataset for predicting Formula racing lap times, used in the GDGC Datathon 2025 competition.
20
+
21
+ ## Dataset Description
22
+
23
+ This dataset contains historical Formula racing data with various features related to circuits, weather conditions, rider/driver performance, and race configurations. The goal is to predict `Lap_Time_Seconds`.
24
+
25
+ ### Dataset Summary
26
+
27
+ | Split | Samples | Size |
28
+ |-------|---------|------|
29
+ | Train | 734,002 | 124 MB |
30
+ | Test | 195,001 | 51 MB |
31
+
32
+ ## Dataset Structure
33
+
34
+ ### Files
35
+
36
+ ```
37
+ data/
38
+ ├── train.csv # Training data with target variable
39
+ └── test.csv # Test data for predictions
40
+ ```
41
+
42
+ ### Features
43
+
44
+ | Column | Description | Type |
45
+ |--------|-------------|------|
46
+ | `id` | Unique identifier | int |
47
+ | `Unique ID` | Alternative unique ID | int |
48
+ | `Rider_ID` | Rider/driver identifier | int |
49
+ | `Formula_category_x` | Racing formula category | categorical |
50
+ | `Len_Circuit_inkm` | Circuit length in kilometers | float |
51
+ | `Laps` | Number of laps in the race | int |
52
+ | `Start_Position` | Starting grid position | int |
53
+ | `Formula_Avg_Speed_kmh` | Average speed in km/h | float |
54
+ | `Formula_Track_Condition` | Track condition rating | categorical |
55
+ | `Humidity_%` | Humidity percentage | float |
56
+ | `Tire_Compound` | Type of tire compound used | categorical |
57
+ | `Penalty` | Penalty time/status | float |
58
+ | `Champ_Points` | Championship points | float |
59
+ | `Champ_Position` | Championship standing position | int |
60
+ | `Session` | Race session type | categorical |
61
+ | `race_year` | Year of the race | int |
62
+ | `seq` | Sequence number | int |
63
+ | `position` | Final position | int |
64
+ | `points` | Points earned | float |
65
+ | `Formula_shortname` | Short name of formula | categorical |
66
+ | `circuit_name` | Name of the circuit | categorical |
67
+ | `Corners_in_Lap` | Number of corners per lap | int |
68
+ | `Tire_Degradation_Factor_per_Lap` | Tire degradation rate | float |
69
+ | `Pit_Stop_Duration_Seconds` | Pit stop time in seconds | float |
70
+ | `Ambient_Temperature_Celsius` | Air temperature | float |
71
+ | `Track_Temperature_Celsius` | Track surface temperature | float |
72
+ | `weather` | Weather condition | categorical |
73
+ | `track` | Track identifier | categorical |
74
+ | `air` | Air condition metric | float |
75
+ | `ground` | Ground condition metric | float |
76
+ | `starts` | Number of race starts | int |
77
+ | `finishes` | Number of race finishes | int |
78
+ | `with_points` | Races finished with points | int |
79
+ | `podiums` | Number of podium finishes | int |
80
+ | `wins` | Number of wins | int |
81
+ | `Lap_Time_Seconds` | **Target variable** - Lap time in seconds | float |
82
+
83
+ ### Target Variable Statistics
84
+
85
+ | Metric | Value |
86
+ |--------|-------|
87
+ | Count | 734,002 |
88
+ | Mean | 89.997 s |
89
+ | Std | 11.532 s |
90
+ | Min | 70.001 s |
91
+ | 25% | 79.989 s |
92
+ | 50% (Median) | 89.970 s |
93
+ | 75% | 99.914 s |
94
+ | Max | 109.999 s |
95
+
96
+ The target distribution is **nearly symmetric** with mean ≈ median, indicating no significant skew.
97
+
98
+ ## Usage
99
+
100
+ ### Loading with Pandas
101
+
102
+ ```python
103
+ import pandas as pd
104
+
105
+ # Load training data
106
+ train_df = pd.read_csv("train.csv")
107
+ print(f"Training samples: {len(train_df)}")
108
+
109
+ # Load test data
110
+ test_df = pd.read_csv("test.csv")
111
+ print(f"Test samples: {len(test_df)}")
112
+
113
+ # Separate features and target
114
+ X = train_df.drop(columns=["Lap_Time_Seconds", "id"])
115
+ y = train_df["Lap_Time_Seconds"]
116
+ ```
117
+
118
+ ### Loading from Hugging Face
119
+
120
+ ```python
121
+ from huggingface_hub import hf_hub_download
122
+ import pandas as pd
123
+
124
+ # Download files
125
+ train_path = hf_hub_download(
126
+ repo_id="Haxxsh/gdgc-datathon-data",
127
+ filename="train.csv",
128
+ repo_type="dataset"
129
+ )
130
+
131
+ test_path = hf_hub_download(
132
+ repo_id="Haxxsh/gdgc-datathon-data",
133
+ filename="test.csv",
134
+ repo_type="dataset"
135
+ )
136
+
137
+ # Load into pandas
138
+ train_df = pd.read_csv(train_path)
139
+ test_df = pd.read_csv(test_path)
140
+ ```
141
+
142
+ ### With Datasets Library
143
+
144
+ ```python
145
+ from datasets import load_dataset
146
+
147
+ dataset = load_dataset("Haxxsh/gdgc-datathon-data")
148
+ ```
149
+
150
+ ## Trained Models
151
+
152
+ Pre-trained models for this dataset are available at:
153
+ - **Models:** [Haxxsh/gdgc-datathon-models](https://huggingface.co/Haxxsh/gdgc-datathon-models)
154
+ - **Training Code:** [ezylopx5/DATATHON](https://github.com/ezylopx5/DATATHON)
155
+
156
+ ## Evaluation Metric
157
+
158
+ The primary evaluation metric is **RMSE** (Root Mean Squared Error):
159
+
160
+ ```python
161
+ from sklearn.metrics import mean_squared_error
162
+ import numpy as np
163
+
164
+ rmse = np.sqrt(mean_squared_error(y_true, y_pred))
165
+ ```
166
+
167
+ ## Data Preprocessing Tips
168
+
169
+ 1. **Handle categorical features:** Use label encoding or one-hot encoding for columns like `weather`, `circuit_name`, `Tire_Compound`
170
+ 2. **Feature scaling:** Normalize numerical features for certain models
171
+ 3. **Missing values:** Check for and handle any missing values appropriately
172
+ 4. **Feature engineering:** Consider creating interaction features or aggregations
173
+
174
+ ## License
175
+
176
+ MIT License
177
+
178
+ ## Citation
179
+
180
+ ```bibtex
181
+ @dataset{gdgc-datathon-2025-data,
182
+ author = {Haxxsh},
183
+ title = {GDGC Datathon 2025 - Formula Racing Lap Time Dataset},
184
+ year = {2025},
185
+ publisher = {Hugging Face},
186
+ url = {https://huggingface.co/datasets/Haxxsh/gdgc-datathon-data}
187
+ }
188
+ ```
189
+
190
+ ## Acknowledgments
191
+
192
+ - GDGC Datathon 2025 organizers
193
+ - Formula racing data providers