Commit f02b195
Add time and distance fields to segment statistics for training optimization
The web UI segment statistics selector was missing the critical 'time' and
'distance' built-in metrics. These are essential for training optimization,
particularly for selecting the fastest segment driving for each segment.
Changes:
- Added 'time' and 'distance' as built-in computed fields in get_available_fields()
- Modified compute_segment_statistics() to handle built-in metrics without
field aggregation (they're already computed during segment analysis)
- Time rankings show percentile: 1.0 = fastest, 0.0 = slowest
This enables users to train on minimal time spent per segment, creating a
synthetic perfect lap from the best-driven instance of each segment.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent a47b6fd commit f02b195
1 file changed
+34
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
178 | 193 | | |
179 | 194 | | |
180 | 195 | | |
| |||
214 | 229 | | |
215 | 230 | | |
216 | 231 | | |
217 | | - | |
| 232 | + | |
| 233 | + | |
218 | 234 | | |
219 | | - | |
| 235 | + | |
220 | 236 | | |
221 | 237 | | |
222 | 238 | | |
| |||
226 | 242 | | |
227 | 243 | | |
228 | 244 | | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
233 | 259 | | |
234 | 260 | | |
235 | 261 | | |
| |||
248 | 274 | | |
249 | 275 | | |
250 | 276 | | |
251 | | - | |
252 | | - | |
| 277 | + | |
253 | 278 | | |
254 | 279 | | |
255 | 280 | | |
256 | 281 | | |
257 | | - | |
| 282 | + | |
258 | 283 | | |
259 | 284 | | |
260 | 285 | | |
| |||
0 commit comments