{
 "name": "tutorial-q31-scale-right",
 "title": "Tutorial Q-31: Scale two features, the right way and the wrong way",
 "description": "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.",
 "homepage": "https://apopt.com/data/tutorials/q31-scale-right/",
 "licenses": [
  {
   "name": "CC BY 4.0",
   "path": "https://creativecommons.org/licenses/by/4.0/"
  }
 ],
 "created": "2026-12-03",
 "keywords": [
  "tutorial",
  "quick tutorial",
  "running",
  "watch",
  "scaling",
  "leakage",
  "nearest neighbors"
 ],
 "resources": [
  {
   "name": "expected-printed-output.txt",
   "path": "expected/printed-output.txt",
   "url": "https://apopt.com/data/tutorials/q31-scale-right/expected/printed-output.txt",
   "format": "text",
   "mediatype": "text/plain",
   "bytes": 489,
   "hash": "sha256:d5051bdcf6f8facd6f5c54d7463801698dc7768c1a444c52accdb1de8fdc6926",
   "description": "Everything the tutorial prints, cell by cell"
  },
  {
   "name": "raw-sessions_fit.csv",
   "path": "raw/sessions_fit.csv",
   "url": "https://apopt.com/data/tutorials/q31-scale-right/raw/sessions_fit.csv",
   "format": "csv",
   "mediatype": "text/csv",
   "bytes": 117262,
   "hash": "sha256:6ce4b0840738b80e4b3e1c2e1c65199f733fe38c0b678647229d64ccf3274731",
   "description": "693 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",
   "rows": 693,
   "schema": {
    "fields": [
     {
      "name": "activity_id",
      "type": "string",
      "unit": null,
      "description": null
     },
     {
      "name": "start_time",
      "type": "string",
      "unit": null,
      "description": null
     },
     {
      "name": "utc_offset_h",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "sport",
      "type": "string",
      "unit": null,
      "description": null
     },
     {
      "name": "sub_sport",
      "type": "string",
      "unit": null,
      "description": null
     },
     {
      "name": "total_timer_time",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "total_elapsed_time",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "total_distance",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "enhanced_avg_speed",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "enhanced_max_speed",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "avg_heart_rate",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "max_heart_rate",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "min_heart_rate",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "avg_running_cadence",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "max_running_cadence",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "avg_cadence",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "total_strides",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "avg_step_length",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "avg_stance_time",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "avg_vertical_oscillation",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "avg_vertical_ratio",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "avg_power",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "total_ascent",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "total_descent",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "total_calories",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "avg_temperature",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "pool_length",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "num_active_lengths",
      "type": "string",
      "unit": null,
      "description": null
     },
     {
      "name": "Effort Pace",
      "type": "number",
      "unit": null,
      "description": null
     }
    ],
    "missingValues": [
     ""
    ]
   }
  }
 ],
 "sources": [
  {
   "title": "Data-Driven Athletics tutorials (IRSRI, 2027)"
  }
 ]
}
