apopt.com

Data / tutorials / cs16-forecast-load

Tutorial CS-16: Forecast next week, and beat "same as last week"

Tutorial

Turn two and a half years of watch activity summaries into weekly training load from heart rate, build forecasts from the past only, split by time, and test whether a regression really beats the persistence baseline; end with next week's load and a range.

Files for the tutorial Forecast next week, and beat "same as last week" (https://apopt.com/course/tutorials/cs16-forecast-load/). 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
clean/change_log.csv109 B3 rowsCleaned copy written by the tutorial
clean/weekly_load.csv2.1 KB126 rowsCleaned copy written by the tutorial
expected/printed-output.txt2.4 KBEverything the tutorial prints, cell by cell
raw/sessions_fit.csv114.5 KB693 rows693 activity summaries (running, elliptical, swimming, cycling, hiking and others), June 2024 to November 2026, as FIT session fields in the watch's own names and units (seconds, meters, UTC start plus an offset)

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.

Data dictionary

ColumnUnitMeaning
start_timeISO 8601 UTC (ends in Z)start of the activity
utc_offset_hhlocal clock minus UTC at the start
sporttextsport as the watch labels it
total_timer_timestimer time with pauses excluded (the moving time)
total_distancemdistance
avg_heart_ratebeats/minaverage heart rate (wrist)
max_heart_ratebeats/minhighest heart rate in the activity

Where it came from

  • Source: COROS Training Hub bulk export of FIT activity files (session summaries only), as published in the course case file (athletes/jh/coros-history)
  • Removed: as published in the case file: every GPS position, all per-second records, the archive's activity ids and file names, device serial and account identifiers
  • Permission: The athlete publishes his own data in the course case file.
  • Prepared with: dda/tutorials/build.py

Load it

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

Or download load.py / load.js.

How to cite

Tutorial CS-16: Forecast next week, and beat "same as last week". IRSRI Sports Research Institute, 2026. Data-Driven Athletics data repository. https://apopt.com/data/tutorials/cs16-forecast-load/