apopt.com

Data / tutorials / q31-scale-right

Tutorial Q-31: Scale two features, the right way and the wrong way

Tutorial

Predict running pace from step rate and step length with a nearest-neighbor model, and see what scaling does, and what fitting the scaler on the test runs too does, with only 30 runs.

Files for the tutorial Scale two features, the right way and the wrong way (https://apopt.com/course/tutorials/q31-scale-right/). raw/ holds the inputs as the device or app wrote them; clean/ holds the cleaned copies the tutorial writes; expected/ holds what a correct run prints and saves, so you can check your own run.

Files

FileSizeRowsWhat it is
expected/printed-output.txt489 BEverything the tutorial prints, cell by cell
raw/sessions_fit.csv114.5 KB693 rows693 watch activity summaries (FIT session fields), June 2024 to November 2026, in the watch's own units (step length in millimeters, cadence in strides per minute for one foot); this tutorial uses the first 30 outdoor runs

Every file has its own fixed address: copy a link and load it directly. preview.md shows the first rows of each table as text; datapackage.json lists columns, sizes and checksums.

Preview of raw/sessions_fit.csv

activity_idstart_timeutc_offset_hsportsub_sporttotal_timer_timetotal_elapsed_timetotal_distanceenhanced_avg_speedenhanced_max_speedavg_heart_ratemax_heart_ratemin_heart_rateavg_running_cadencemax_running_cadenceavg_cadencetotal_stridesavg_step_lengthavg_stance_timeavg_vertical_oscillationavg_vertical_ratioavg_powertotal_ascenttotal_descenttotal_caloriesavg_temperaturepool_lengthnum_active_lengthsEffort Pace
2024-06-28_0719_running2024-06-28T13:19:52Z-6.0running2355.333306.936663.452.8293.861168185106861053309980.00.00.00.011848452532.8980000019073486
2024-06-29_1855_swimming2024-06-30T00:55:25Z-6.0swimming570.82576.521.620.0380.98117802758
2024-07-04_0624_running2024-07-04T12:24:39Z-6.0running652.741495.91422.162.1793.1851451655377105829840.00.00.00.090315512.1589999198913574
2024-07-04_0650_running2024-07-04T12:50:13Z-6.0running1289.691877.085003.113.8795.3761711881309012719381280.00.00.00.016227151333.9679999351501465
2024-07-06_0739_running2024-07-06T13:39:37Z-6.0running4338.154727.910623.632.4494.34815918195771105529950.00.00.00.01031651823992.5439999103546143
2024-07-08_0734_running2024-07-08T13:34:23Z-6.0running375.49375.51606.044.2775.464186202124941045931360.00.00.00.01788981204.309999942779541
2024-07-09_0725_hiking2024-07-09T13:25:50Z-6.0hiking6592.686592.695729.90.8694.9441151637546630.00.00.00.0025226833126
2024-07-10_0727_running2024-07-10T13:27:47Z-6.0running3972.563972.568877.112.2353.497147166109791105227840.00.00.00.0945858498252.2769999504089355

First 8 of 693 rows.

Where it came from

  • Source: Data-Driven Athletics tutorials (IRSRI, 2027)
  • Removed: nothing; inputs are synthetic, published course data, or the instructor's own
  • Permission: Published with the course under CC BY 4.0
  • Prepared with: dda/tutorials/build.py

Load it

import pandas as pd
df = pd.read_csv("https://apopt.com/data/tutorials/q31-scale-right/raw/sessions_fit.csv")
const text = await (await fetch("https://apopt.com/data/tutorials/q31-scale-right/raw/sessions_fit.csv")).text();

Or download load.py / load.js.

How to cite

Tutorial Q-31: Scale two features, the right way and the wrong way. IRSRI Sports Research Institute, 2026. Data-Driven Athletics data repository. https://apopt.com/data/tutorials/q31-scale-right/