Add files using upload-large-folder tool
Browse filesFiles changed (9)
- README.md+418-3
- RELEASE_MANIFEST.jsonAdded+130
- data/activities/activities.parquetAdded+3
- data/athlete_years/athlete_years.parquetAdded+3
- data/athletes/athletes.parquetAdded+3
- data/manifest/manifest.parquetAdded+3
- data/timeseries/part-00000.parquetAdded+3
- data/timeseries/part-00001.parquetAdded+3
- data_dictionary.mdAdded+170
123---license: mit---123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418---license: cc0-1.0pretty_name: GCcleantask_categories:- othersize_categories:- 1B<n<10Btags:- cycling- power meter- time series- sports science- golden cheetah- parquetconfigs:- config_name: activitiesdata_files: "data/activities/*.parquet"default: true- config_name: athletesdata_files: "data/athletes/*.parquet"- config_name: athlete_yearsdata_files: "data/athlete_years/*.parquet"- config_name: manifestdata_files: "data/manifest/*.parquet"- config_name: timeseriesdata_files: "data/timeseries/*.parquet"---> **Test slice, not the release.** The `activities`, `athletes` and `athlete_years` tables are complete; `timeseries` and `manifest` hold 17 of the 1,869 athletes in 2 part files (`part-00000`, `part-00001`), chosen to include 34 rides whose start time, offset or sport differ from GoldenCheetah/opendata-test. File counts and sizes below describe the full release.# GCcleanGCclean is a cleaned cohort of second-by-second (1 Hz) cycling data from the Golden CheetahOpen Data project (GCOD; Liversedge 2018, OSF doi:10.17605/OSF.IO/6HFPZ). GCOD holds ride filesthat GoldenCheetah users chose to share. GCclean keeps the cycling rides with power and theathlete-years that pass the build's screening, trims each ride to its active window, and shipsthe result as 58 Parquet part files of per-second rows, each athlete whole in one file, withfour metadata tables. The dataset is about 30 GB.| | count ||---|---|| athletes | 1,869 || athlete-years | 4,032 || rides | 780,523 || one-second samples | 5,436,415,075 || ride years | 2005 to 2020 || timeseries part files | 58 (29,850,222,061 bytes) || dataset, all files | 29,883,966,623 bytes (about 30 GB) |Counts are read from the deposited tables: `manifest` (athletes, and the sums of`n_rides` and `n_samples`), `athlete_years` (athlete-years) and `activities` (rides).- **Paper:** Data descriptor in preparation.- **Version:** v1.0.0- **Code:** https://github.com/mpuchowicz/gcclean_test, tagged release `v1.0.0-test`, MIT licence- **Licence:** CC0 1.0 (Creative Commons Zero), matching GCOD- **Source data:** Golden Cheetah Open Data, CC0 1.0 (OSF project 6hfpz), doi:10.17605/OSF.IO/6HFPZ;the 6,581 athlete zips were downloaded on 12-13 April 2026, and `manifest.gcod_zip_sha256`identifies the zip each partition was built from- **Contact:** questions and problem reports through GitHub issues at https://github.com/mpuchowicz/gcclean/issues or this repository's Discussions tab## What the cleaning doesIn outline (the paper is the reference for each step, and the code is the definition):1. **Inventory and keys.** Each GCOD athlete archive is read, each ride's GoldenCheetah CSV ispaired with its JSON summary, and rides that cannot be read or paired are excluded by namedreason.2. **Ride filters.** Rides with a non-cycling activity label are removed (a declared list of105 labels, matched on the trimmed lower-case label; see the data dictionary for what thisrule cannot detect). Corrupt or over-long rides are excluded at source, duplicates areremoved, and flat-line and spike artifacts are screened.3. **Athlete-year cuts.** Whole athlete-years are removed by a sequence of cuts on datacoverage and physiological plausibility of the season's power-duration profile.4. **Active window.** A two-state hidden Markov model labels each second as live pedalling ornot. Each ride is trimmed to the window from its first to its last live pedalling, and`time_s` restarts at 0.5. **Mean-power floor.** A ride is removed when its average power over the active window isbelow 0.5 W/kg of the athlete-year's body mass, unless its maximal mean power comes within10% of the athlete-year's best at any of 28 durations from 1 s to 7200 s. The delivered setholds 129 rides below 0.5 W/kg kept only by that protection. 170 were kept by it at the floorgate itself, and the later exclusions, athlete-year recount and final recheck removed 41 of them.The companion channels (distance, heart rate, cadence, altitude) are not cleaned: they shipraw where recorded and `null` where not. Validity screening of those channels, and of year ofbirth, is left to the user.Athlete-years removed, by stage, from the build's cohort-status ledger (20,953 athlete-years of6,480 athletes entered; 4,032 remain):| stage | athlete-years removed | reasons ||---|---|---|| body mass (Cut 0) | 764 | no recorded weight (735), weight out of range (29) || ride count (Cut 1) | 15,965 | too few qualifying rides (15,801), or too few after a later ride removal (164) || low power floor (Cut 2) | 106 | season power below the MAD floor || low volatility (Cut 3) | 11 | || high volatility (Cut 5) | 5 | || plausibility recount | 67 | too few rides after the plausibility removals || spike recheck | 3 | too few rides after the final spike recheck |Cut 4 (physiological ceiling) removes rides, not whole athlete-years; `athlete_years` carriesthe rides it and Cut 5 removed per athlete-year.## Files and layout```data/timeseries/part-00000.parquet ... part-00057.parquet one row per second; each athlete whole in one filedata/athletes/athletes.parquet one row per athletedata/athlete_years/athlete_years.parquet one row per athlete-yeardata/activities/activities.parquet one row per ridedata/manifest/manifest.parquet one row per athletedata_dictionary.md the meaning of every column, with counts from this buildRELEASE_MANIFEST.json the SHA-256 and size of every file, and each athlete's part file```A ride's 1 Hz rows run from its first to its last live pedalling, stops included; `is_live`marks the pedalled seconds. The ride-count rule (Cut 1) counts ride duration including stops,so filter on `is_live` for time actually pedalled.The layout follows GoldenCheetah OpenData's own Hugging Face upload: one folder per table, oneconfiguration per folder, `activities` the default. `timeseries` is a flat folder of part filesof about 500 MB, as in GoldenCheetah OpenData's own layout. Athletes are in `athlete_id` order andeach athlete sits whole in one part file, named in `manifest.part_file`. Rows are sorted by`athlete_id`, `activity_id` and `time_s`.| table | rows ||---|---|| `timeseries` | 5,436,415,075 || `activities` | 780,523 || `athlete_years` | 4,032 || `athletes` | 1,869 || `manifest` | 1,869 |The characterization tables the paper draws on are a separate dataset,GoldenCheetah/gcclean-characterization, versioned on its own.The full text for every column, including how missing values and GoldenCheetah's defaultvalues appear, is in `data_dictionary.md`. The tables below summarise it. Types are the storedParquet types.### `timeseries` (per second)Rows are sorted by `athlete_id`, `activity_id` and `time_s`. The repack wrote them in that order and read every part file backin that order against the sealed rows. Each athlete's rows are contiguous within one part file.| column | type | unit | meaning ||---|---|---|---|| `athlete_id` | string | | athlete key || `activity_id` | string | | ride key within the athlete: GoldenCheetah's CSV file name for the ride without `.csv`, which is the ride's local start time (`YYYY_MM_DD_HH_MM_SS`) || `year` | int64 | | the ride's year; joins `athlete_years` || `time_s` | float32 | s | seconds from the start of the active window: whole seconds at 1 Hz, stored as Float32 to match GoldenCheetah OpenData || `power_w` | float32 | W | power; recording-gap seconds are zero-filled (see `is_gap`) || `power_wkg` | float32 | W/kg | `power_w` divided by the athlete-year's `median_body_mass_kg`; never null || `distance_m` | float32 | m | cumulative distance (GoldenCheetah's km x 1000, 6 significant digits); null where not recorded || `hr_bpm` | float32 | beats/min | heart rate, raw; null where not recorded || `cadence_rpm` | float32 | rev/min | cadence, raw; null where not recorded || `altitude_m` | float32 | m | altitude, raw, may be negative; null where not recorded || `is_gap` | uint8 | 0/1 | 1 = the second was a recording gap and its power was zero-filled || `is_live` | uint8 | 0/1 | 1 = the hidden Markov model labelled the second as live pedalling; a model label, not a sensor reading |`null` means the device recorded no value. It is not 0 and not NaN. Aggregations such as`mean()` skip nulls, so filter or impute on purpose. Present values are not screened:`hr_bpm` can be 0 and `altitude_m` can be negative.### `athletes` (one row per athlete)| column | type | unit | meaning ||---|---|---|---|| `athlete_id` | string | | athlete key || `gender` | string | | GCOD's raw value (`M` or `F`), the same column as in GoldenCheetah OpenData || `yob` | int64 | year | year of birth as GCOD records it, not range-checked (this build ranges from 0 to 2098); age by racing convention is ride year minus `yob` || `sex` | string | | GCclean's normalized `gender`: `male` (1,830 athletes) or `female` (39); `unknown` does not occur |GoldenCheetah defaults an unset birth date to 1 January 2000, and 2000 is over-represented in`yob` (122 athletes, against 13 for 1999 and 7 for 2001). An unset profile cannot be toldapart from a real 2000 birth.### `athlete_years` (one row per athlete-year)| column | type | unit | meaning ||---|---|---|---|| `athlete_id` | string | | athlete key || `year` | int64 | | calendar year || `n_rides_removed_cut4` | int64 | rides | rides Cut 4 (physiological ceiling) removed from the athlete-year; the cut removes the ride setting a failing season best, repeatedly, until the year passes, with no cap || `n_rides_removed_cut5` | int64 | rides | rides Cut 5 (high volatility) removed from the athlete-year, the same way; filter on these two columns to leave out heavily cleaned years || `median_body_mass_kg` | float64 | kg | median of the self-reported profile weight over the athlete-year's rides; the divisor of `power_wkg` |This is an aggregate of the weight in the athlete's GoldenCheetah profile, not a measuredweight. GoldenCheetah pre-fills new profiles with 75 kg, and 75.0 kg is over-represented (191athlete-years, against 76 at 74.0 and 80 at 76.0).### `activities` (one row per ride)| column | type | unit | meaning ||---|---|---|---|| `athlete_id`, `activity_id` | string | | ride key || `start_time_utc` | timestamp[us, UTC] | | the ride's start in UTC, parsed from the ride JSON's date || `utc_offset_minutes` | int16 | min | local start time (`activity_id`) minus `start_time_utc` || `sport` | string | | activity label as GoldenCheetah recorded it, not normalised; `""` is GoldenCheetah's own stored blank, null means the source lacked it || `data_flags` | string | | GoldenCheetah's 15-position channel-presence string, shipped as is, or `""`; never null || `has_timeseries` | bool | | true: every shipped activity has its 1 Hz rows in `timeseries` || `year` | int64 | | the ride's year (UTC; a ride started near New Year can fall in the adjacent year of its local `activity_id`) || `active_start_offset_s` | int64 | s | seconds from the recording's start to the first shipped second; wall-clock time of a row is `start_time_utc + active_start_offset_s + time_s` || `duration_capped` | bool | | the recording was longer than 24 h and only its 24 h window with the most work was used || `json_mmp_confirm_status` | string | | the ride's 1 Hz maximal mean power against GoldenCheetah's own for it: `passed`, `diverged` or `unverifiable`; a flag, no ride is removed on it || `date` | string | | the ride's start date and time as the source records it (for example `2017/01/31 17:36:44 UTC`); null where the source lacks it || `data_key_present` | bool | | true when the source record carries a channel string; tells the two kinds of `""` in `data_flags` apart || `active_mean_wkg` | float64 | W/kg | average power over the active window, recording gaps left out; the mean-power floor's statistic || `active_measured_s` | int64 | s | seconds with recorded power behind `active_mean_wkg` || `floor_mmp_protected` | bool | | true when the ride came within 10% of the athlete-year's best maximal mean power at some duration || `live_mean_frac_mmp1200` | float64 | fraction | average over live-pedalling seconds divided by the athlete-year's 20-minute maximal mean power; for comparison with an earlier build's gate || `historical_pct_gate_cut` | bool | | true when `live_mean_frac_mmp1200` is below 0.18, that is, the earlier build would have removed the ride |The 15 positions of `data_flags` are T time, D distance, S speed, P power, H heart rate,C cadence, N torque, A altitude, G GPS, L slope, W headwind, E temperature, V left/rightbalance, O muscle oxygen, R running dynamics. They describe GoldenCheetah's source file, notthe shipped series. An `R` flag can indicate running recorded under a cycling or blank label;421 shipped rides carry it and are not removed.### `manifest` (one row per athlete)| column | type | unit | meaning ||---|---|---|---|| `athlete_id` | string | | athlete key || `n_rides` | int64 | | rides in the athlete's partition || `n_samples` | int64 | | rows in the athlete's partition || `total_duration_s` | int64 | s | total active-window duration || `size_bytes` | int64 | bytes | size of the athlete's sealed per-athlete partition, from which its rows were repacked || `part_sha256` | string | | SHA-256 of the athlete's sealed per-athlete partition (the code's output, before repacking) || `gcod_zip_sha256` | string | | SHA-256 of the GCOD athlete zip the partition was built from || `part_file` | string | | the `data/timeseries/` part file that holds the athlete's rows |### Keys and joins- Per-second rows and `activities` join on (`athlete_id`, `activity_id`).- Per-second rows and `athlete_years` join on (`athlete_id`, `year`).- `athletes` and `manifest` join on `athlete_id`.### Parquet settingsEvery file was written with GoldenCheetah OpenData's conventions writers (conventions 0.4) andcarries their `goldencheetah` file metadata naming the dataset and table. `timeseries`: zstdlevel 15, dictionary encoding on the string columns, BYTE_STREAM_SPLIT on every float column(`time_s` and the measurements, `power_wkg` included), row groups of 1,000,000 rows. The othertables: zstd level 9, dictionary encoding, row groups of 100,000 rows. All files usecontent-defined chunking and a page index, and were written with pyarrow 23.0.1.Readers need a Parquet library that supports BYTE_STREAM_SPLIT. <PLACEHOLDER: minimum readerversions known to work (pyarrow, polars, DuckDB)>## How to load### polars```pythonimport polars as plroot = "hf://datasets/GoldenCheetah/gcclean" # or a local downloadseconds = pl.scan_parquet(f"{root}/data/timeseries/*.parquet")rides = pl.scan_parquet(f"{root}/data/activities/*.parquet")ay = pl.scan_parquet(f"{root}/data/athlete_years/*.parquet")one_season = (seconds.filter((pl.col("athlete_id") == "<an athlete_id>") & (pl.col("year") == 2018)).join(rides.select("athlete_id", "activity_id", "sport", "data_flags"),on=["athlete_id", "activity_id"], how="left").collect())real_hr = one_season.drop_nulls("hr_bpm") # only the seconds with a recorded heart rate```Keep the query lazy and filter before `collect()`: the full per-second table is about 5.4billion rows.### pandas```pythonimport pandas as pdmanifest = pd.read_parquet("data/manifest/manifest.parquet")a = "<an athlete_id>"f = manifest.loc[manifest.athlete_id == a, "part_file"].item()part = pd.read_parquet(f"data/timeseries/{f}", filters=[("athlete_id", "==", a)]) # one athleteactivities = pd.read_parquet("data/activities/activities.parquet")merged = part.merge(activities, on=["athlete_id", "activity_id"], how="left")```pandas reads whole files into memory, so read one athlete at a time. Float columns read asfloat32 with NaN where the Parquet value is null.### Hugging Face `datasets````pythonfrom datasets import load_datasetrides = load_dataset("GoldenCheetah/gcclean", split="train") # activities (default)seconds = load_dataset("GoldenCheetah/gcclean", "timeseries", split="train", streaming=True)```The default configuration is `activities`; each table is its own configuration. Use`streaming=True` for `timeseries`: a non-streaming load converts all 30 GB to Arrow on local disk. <PLACEHOLDER: check this callagainst the published repository; not yet run>## Provenance and reproducibilityThis code produced these outputs. The deposited files are the output of the GCclean submissioncode at https://github.com/mpuchowicz/gcclean, run under a wrap seal:- seal tag `gcclean/gcclean_submission/data-locked-2026-11-17`, commit `39e69b64`;- code of record: repository tree `704e90a689ccf864ae8ed1549a8fbdae4f628b52` (lab commit`8f44f61500ccabbb4237fca6098a77cc9d4d6ecd`), Python 3.14.3, dependencies pinned in`uv.lock` (sha256 `641ac5c7...48fbb`);- command: `uv run --frozen python -m gcclean all --gcod <zips dir> --out <out dir>`.The pipeline runs in parts, and each part's outputs were made by that part's code at thecommit its record names. The seal reused a part only when its code at the code of record isthe same program: changed files may differ only in comments and docstrings (the same Pythonsyntax tree), and the seal record lists them. The seal hashed the inputs (6,581 files) andthe environment, and fingerprinted every output (4,017 files).**Checks at the seal.** The same seal ran `proof/verify_seal.py` against all outputs, and alleight checks passed: real-data invariants on this run's build and deposit (the cut chainsreconcile with each cut's manifest; every table a cut reads equals the one rebuilt from the rideslive at that cut; nothing removed reappears; at the final state no athlete-year fails Cuts 2 to 5on its live rides; the final recheck's cuts are replayed pass by pass; the deposit's counts equalthe final state), the deposit's conformance to this layout (column names and dtypes, every`part_sha256` against its file, one config per folder), and a code record: every function thesubmission keeps from the earlier audited pipeline is identical to it, or is declared as an editwith its reason. `proof/verify_seal.py` is not part of the code repository; the seal record that holds itsresult is.To confirm a downloaded file is the shipped one, recompute its SHA-256 and compare it with itsentry in `RELEASE_MANIFEST.json`. The part files repack the sealed per-athlete partitions valuefor value, in the row order above. Every part file was read back and compared exactly with thesealed rows, and `manifest.part_sha256` names the sealed partition each athlete's rows camefrom. `gcod_zip_sha256` links each partition to the GCOD zip it was built from.### The paper's tables and figuresEach table and figure in the paper and the files it is drawn from. `data/<name>` is a table inthe companion dataset GoldenCheetah/gcclean-characterization, built from this release. Theothers are outputs of the code, written under `<out>/` by `python -m gcclean all`, and are inneither dataset.| paper | files ||---|---|| Figure 1 (cohort flow) | `data/cohort_flow_table` || Figure 2 (cohort MMP, cut vs surviving) | `<out>/phase_a/cohort_mmp_before_gcod.parquet`, `data/per_athlete_mmp_wkg_28anchor` || Figure 3 (cumulative intensity) | `data/cumulative_duration_per_athlete`, `data/cumulative_duration_athletes`, `data/cumulative_duration_cohort` || Figure 4 (FPCA modes) | `data/fpca_basis`, `data/fpca_variance_explained` || Figure 5 (OmPD fits) | `data/per_athlete_ompd_params` || Figure 6 (FPC scores) | `data/fpc_scores_per_athlete` || Figure 7 (reference percentiles) | `data/reference_wkg_pointwise_percentiles` (Reference Table B) || Figure 8 (V3 parameter ranges) | `data/v3_param_range_check`, `data/v3_published_reference_values` || Table 1 (corpus and cohort) | `<out>/phase_a/descr_corpus_totals.parquet`, `descr_athlete_characteristics.parquet`, `descr_ride_metrics.parquet` || Table 2 (score and parameter summaries) | `data/per_athlete_fpc_score_descriptives`, `data/per_athlete_ompd_param_descriptives` || Reference Tables A, B, C | `data/reference_fpc_score_percentiles`, `data/reference_wkg_pointwise_percentiles`, `data/reference_ompd_param_percentiles` || Supplementary Table S1 (HMM review) | `<out>/validation/hmm_review/hmm_calibration_deposited.parquet`, `hmm_annotator_icc.parquet`, `hmm_review_verdicts.parquet` || Supplementary Table S2 (removal by sex) | `<out>/validation/cohort_flow_sex/cohort_flow_sex_tests.parquet` || Supplementary Table S3 (column dictionary) | the column tables in this card || Supplementary Figure S1 (HMM windows) | the paper's supplementary PDF, drawn from the hand-marked rides |## Ethics and privacy- GCOD contains ride files that GoldenCheetah users opted in to share as open data(Liversedge 2018). GCclean adds no new data collection.- No GPS coordinates are shipped; the per-second files hold only time, distance, power, heartrate, cadence and altitude.- No names or other self-reported identifiers are shipped. Athletes are identified by`athlete_id`, which is GCOD's own anonymous identifier, the name of the athlete's archivewithout `.zip`, carried through unchanged.- `sex` and `yob` are shipped as GCOD provides them, and `athlete_years` carries a body-massaggregate. Ride start dates and times ship as recorded, in `date` and in `activity_id`.- GCclean is a cleaned subset of GCOD with no new data collection or linkage to other sources. See the GoldenCheetah OpenData release's terms.## Limitations- **Training data, not controlled tests.** Rides are everyday training and racing recorded byathletes' own devices. Efforts are not standardised, and maximal efforts are not guaranteed.- **Power-meter quality.** Power meters differ by make, calibration and zero-offset practice,and the build has no record of the meter used. Screening removes gross artifacts, notcalibration bias.- **Body mass is locked per athlete-year.** `power_wkg` divides by one median self-reportedweight per athlete-year. Weight changes inside a year are not tracked, and GoldenCheetah's75 kg default is over-represented and cannot be told apart from a real 75 kg.- **Year of birth is unscreened.** `yob` is shipped exactly as GCOD reports it, withoutvalidation. Of 1,869 athletes:- 2 have `yob` 0, and 3 in all are below 1920 (0, 0, 1893);- 203 are above 2010, 193 of them 2047-2098, which looks like a century error (1947-1998), and 200 are after the athlete's first ride year;- the range is 0 to 2098, and 1,663 fall in a plausible 1920-2010;- there is an excess at 2000 from unset profiles.No shipped table derives age from `yob`; anyone computing age should screen it first.- **Labels.** The non-cycling filter reads the activity label only. Running or other activityrecorded under a cycling, blank or unreviewed label can remain.- **Active window and live pedalling are model output.** `is_live` and the window trim comefrom a hidden Markov model, not from a sensor.- **Companion channels are raw.** Heart rate, cadence, altitude and distance are not cleaned.- **Cohort.** GCOD users are self-selected GoldenCheetah users; 39 of 1,869 athletes are female.## CitationData descriptor in preparation.Dataset:```Puchowicz MJ, Rothschild JA. GCclean v1.0.0. Hugging Face; 2026. https://huggingface.co/datasets/GoldenCheetah/gcclean```Source data:```Liversedge M. GoldenCheetah OpenData Project. OSF; 2018. doi:10.17605/OSF.IO/6HFPZ```
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130{
"seal": "gcclean_submission wrap seal (DATA_LOCKED.tag, locked 2026-11-17 local)",
"conventions": {
"version": "0.4",
"checkout_commit": "7959bc3a9027bdac9545414f9e6112fd7396b688",
"local_changes": "M huggingface/tools/validate.py",
"conventions_py_sha256": "bc6a88ff1fd0fa09ac4fbc828c3e2df1fd68c94e3e8368ae0355424f0c2abce0"
},
"timeseries_order": [
"athlete_id",
"activity_id",
"time_s"
],
"pyarrow": "23.0.1",
"polars": "1.33.1",
"complete": false,
"files": {
"data/activities/activities.parquet": {
"sha256": "c745b334d61ba2dc5bd61b60ba215885cf0cb05eae5840ab70e06de103ed8694",
"bytes": 33409063,
"rows": 780523,
"source": "sealed table, conventions.write_table"
},
"data/athletes/athletes.parquet": {
"sha256": "70a5eca9ec47f97c99d854b9188a3dc7ede6518e466421b0df805a7c06a5188f",
"bytes": 45589,
"rows": 1869,
"source": "sealed table, conventions.write_table"
},
"data/athlete_years/athlete_years.parquet": {
"sha256": "7c7e1959c214e4c66ae357addfcdef8fa3d8db583791eac1ee97735ac96f6fc6",
"bytes": 55528,
"rows": 4032,
"source": "sealed table, conventions.write_table"
},
"data_dictionary.md": {
"sha256": "ba2d3ef908654c11bd63ee334848beeb009198f88d744ccbee5a1847b8a11276",
"bytes": 13348,
"source": "sealed bytes"
},
"data/timeseries/part-00000.parquet": {
"sha256": "ee9d7c4873de1a7038e839277d679a0b96dbdf7e847a636bdbc79f44023a75c3",
"bytes": 564825798,
"athletes": 10,
"rows": 110922898
},
"data/timeseries/part-00001.parquet": {
"sha256": "fde041e20876f6ffb4102e950d1795b329f3d150ed0e006fa7f861c346312529",
"bytes": 289535049,
"athletes": 7,
"rows": 46495920
},
"data/manifest/manifest.parquet": {
"sha256": "8a03d522ddef44c7254f33cf062e768a6491dfa92a23b0fe1836f497c3fb98d9",
"bytes": 5664,
"rows": 17,
"source": "sealed manifest sorted by athlete_id, plus part_file"
}
},
"athletes": {
"02313e1c-050d-4ee5-af63-2e84577cd706": {
"part_file": "part-00000.parquet",
"sealed_part_sha256": "f202a55e84b26132ddb17c96b4d7383f4fba69f68a7b12f56d849c99714152b8"
},
"029abbce-69c2-42fc-ad44-a85541cd98b4": {
"part_file": "part-00000.parquet",
"sealed_part_sha256": "2c2b0e4f4308be58cde481d8daa3a48855db3150d6cb12c481988bdd61b7f9af"
},
"1dbba82e-8924-4b10-b1da-151e8062680a": {
"part_file": "part-00000.parquet",
"sealed_part_sha256": "d33c9420a259348a3c97bc04491f7ee28b779e7becf8690e171d0f659a68c4ab"
},
"2a3e5e84-4c16-4ec8-a412-ff34db356e78": {
"part_file": "part-00000.parquet",
"sealed_part_sha256": "36a55ea4942559c19f5b1b236437bcfc1cf63c9a78b45ac06904d0f625268669"
},
"2eb4fb29-df91-4a3c-89b3-5e94d21abbb5": {
"part_file": "part-00000.parquet",
"sealed_part_sha256": "f932b7a4a61ca84658370bd6f8d835940bf5cc93cb3340ce2233a7aa9b89a609"
},
"2ff6f4f1-7f31-4684-b071-35b41945734d": {
"part_file": "part-00000.parquet",
"sealed_part_sha256": "1a13f4438c6611cf80680f8bc785a1ce1533ad6e87a8d2b17450191ef782ef94"
},
"3190bec0-d5bd-4914-97ac-1a5d94b53019": {
"part_file": "part-00000.parquet",
"sealed_part_sha256": "1e48f6d0b2db6af1da3d47c010961ca7ea2a97028eca0719dc0b22736e2d886e"
},
"3827f4cb-4232-47fb-b24d-81e25750722c": {
"part_file": "part-00000.parquet",
"sealed_part_sha256": "0b945f4e964ad9cca6a7b29c06edd153fb39d11d5be10db0b08769c107b498d3"
},
"3a063e0d-8e76-4f6f-9bed-1b6826e42cb9": {
"part_file": "part-00000.parquet",
"sealed_part_sha256": "bfb81a3b5fc6a066c8544bcb33e57df045f4be3526dc9cb99df294fe514c0840"
},
"7c6b4603-ed9c-4906-90c0-e95664e00c7d": {
"part_file": "part-00000.parquet",
"sealed_part_sha256": "897c3c09f82a6e91ae28828f6a13156dc0a1d5334e8d44d54cfc147306519aff"
},
"84599e67-e8a7-4606-88c7-4d464c13967f": {
"part_file": "part-00001.parquet",
"sealed_part_sha256": "5bbb57a905817e286b35e563b62e4e15dce2147cee27bb7353bae9885c7d9cdc"
},
"b04578c5-d91f-4760-b2f2-d17cab0da031": {
"part_file": "part-00001.parquet",
"sealed_part_sha256": "3380f36b06cd4240da1082310c7dff55b20334ed074c12b3d259e825f17ffda0"
},
"b6667d8d-8e4c-4bab-9053-88b1399f9095": {
"part_file": "part-00001.parquet",
"sealed_part_sha256": "699c484b3ba7e509a84080932988671e60f85a1c80b29bbf090b2c4bad212d9d"
},
"c72eabe6-a0b8-45ab-a189-e322104c9f5b": {
"part_file": "part-00001.parquet",
"sealed_part_sha256": "eee5c1204224dd6d29747e9f312ea9e107493ab2b83366e34385e351998b5b69"
},
"d520d9f6-30ee-4622-8de6-4dc1f6e3a41d": {
"part_file": "part-00001.parquet",
"sealed_part_sha256": "32f5a803c7ba36287ad7860abb3a9ab5eff32b6d549b44f08a96f4fd051e3e04"
},
"d59908ba-8340-4531-b332-9349664deb1f": {
"part_file": "part-00001.parquet",
"sealed_part_sha256": "8e33e6fc9d431e528bc4696cbea1cc2d593486be0e8d7c05103a28257902cd9c"
},
"e531364f-41f6-4701-a06c-4ed091ad93e1": {
"part_file": "part-00001.parquet",
"sealed_part_sha256": "e83184ab87c19c9b6e9e35ad7f634f469e0c759ce6939e0ba8a44ceddabcbf91"
}
}
}123version https://git-lfs.github.com/spec/v1oid sha256:c745b334d61ba2dc5bd61b60ba215885cf0cb05eae5840ab70e06de103ed8694size 33409063123version https://git-lfs.github.com/spec/v1oid sha256:7c7e1959c214e4c66ae357addfcdef8fa3d8db583791eac1ee97735ac96f6fc6size 55528123version https://git-lfs.github.com/spec/v1oid sha256:70a5eca9ec47f97c99d854b9188a3dc7ede6518e466421b0df805a7c06a5188fsize 45589123version https://git-lfs.github.com/spec/v1oid sha256:8a03d522ddef44c7254f33cf062e768a6491dfa92a23b0fe1836f497c3fb98d9size 5664123version https://git-lfs.github.com/spec/v1oid sha256:ee9d7c4873de1a7038e839277d679a0b96dbdf7e847a636bdbc79f44023a75c3size 564825798123version https://git-lfs.github.com/spec/v1oid sha256:fde041e20876f6ffb4102e950d1795b329f3d150ed0e006fa7f861c346312529size 289535049123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170# GCclean dataset — data dictionary
One folder per table, in GoldenCheetah OpenData's layout. `timeseries/` is Hive-partitioned
by `athlete_id` (also kept as a column): each `timeseries/athlete_id=<uuid>/part.parquet` holds
one row per 1 Hz second of each ride's HMM active window (first to last live pedalling,
`time_s` rebased to 0 at the window's first second). The joinable companion tables are
`athletes/athletes.parquet`, `athlete_years/athlete_years.parquet`,
`activities/activities.parquet` and `manifest/manifest.parquet`.
Wall-clock time of a row: `start_time_utc + active_start_offset_s + time_s` (seconds), from
`activities`. A recording longer than 24 h is reduced to its 24 h window with the most work
before the active window is found (`duration_capped` in `activities`). The active window keeps
the stops between live runs: `is_live` marks the pedalled seconds, and Cut 1 counted a ride's
duration including stops (GoldenCheetah's recorded duration at screening, the window's span at
the final recount) and counted a ride as powered when its `data_flags` carry P; filter on
`is_live` for pedalled time. Channels recorded faster
than 1 Hz are averaged within each second; "raw" below means uncleaned, not unaveraged.
## timeseries (per-second)
| column | type | meaning |
|---|---|---|
| athlete_id, activity_id | String | activity key; `activity_id` is GoldenCheetah's file name for the ride (its local start time, without `.csv`) |
| year | Int64 | the ride's year (joins athlete_years) |
| time_s | Float32 | seconds from the active-window start; whole seconds at 1 Hz, stored as Float32 to match GoldenCheetah OpenData |
| power_w | Float32 | power, watts (recording gaps zero-filled — see is_gap) |
| power_wkg | Float32 | power_w / the AY's median body mass (`median_body_mass_kg` in athlete_years); always finite: the build stops with an error if a shipped AY has no usable body mass, and never fills one in |
| distance_m | Float32 | cumulative distance, metres (GoldenCheetah's km x 1000, 6 significant digits); **null** where not recorded, raw where present |
| hr_bpm | Float32 | heart rate; **null** where not recorded, raw where present |
| cadence_rpm | Float32 | cadence; **null** where not recorded, raw where present |
| altitude_m | Float32 | altitude (may be negative); **null** where not recorded, raw where present |
| is_gap | UInt8 (0/1) | 1 = this second was a recording gap (power zero-filled) |
| is_live | UInt8 (0/1) | 1 = HMM-classified live pedalling. **A model label, not a sensor fact.** |
> **MISSING DATA IS `null` — handle it explicitly.** Companion channels are polars
> `null` wherever the device recorded no value (a recording gap or an absent sensor),
> and the **raw** reading everywhere else — this dataset performs **no cleaning**. A
> `null` is honest absence, not a 0 and not a NaN. Do **not** assume 0; an aggregation
> such as `mean()` silently skips `null`, so filter or impute deliberately
> (`df.drop_nulls(<col>)` selects exactly the real readings). Present values are
> unjudged: `hr_bpm` may be 0, `altitude_m` may be negative, distances may be large.
> Validity screening (implausible values, absent-sensor 0s, birth-year/age sanity) is
> left to the user, by design.
## athletes — one row per athlete
`athlete_id`, `gender` (GCOD's raw value, as in GoldenCheetah OpenData), `yob`, `sex`
(GCclean's normalized male/female/unknown from `gender`). `yob` (**raw** year of birth as GCOD recorded
it — null only if GCOD had none; **not range-checked**, so implausible values like 0 or a
future year DO appear and the consumer must screen them). **Age = racing convention:
ride year − yob.** GCOD provides year-of-birth only. GoldenCheetah never fills the birth
date of a new profile, which then defaults to 1 January 2000. This build ships 122
athletes with yob 2000 against 13 with 1999 and 7 with 2001, so
**2000 is over-represented**, consistent with unset profiles. A real 2000 birth cannot be told apart from an unset profile.
## athlete_years — one row per (athlete, year)
`athlete_id`, `year`, `n_rides_removed_cut4` and `n_rides_removed_cut5` (how many of the
athlete-year's rides Cut 4, the ceiling, and Cut 5, high volatility, removed: each removes the
ride setting a failing season best, repeatedly, until the athlete-year passes, with no cap;
filter on them to leave out heavily cleaned years), `median_body_mass_kg` (the per-AY median self-report, fixed once at Cut 0 and used
as the power_wkg divisor — an aggregate, not a measured weight). The self-report is the
weight in the athlete's GoldenCheetah profile, copied onto each ride, and GoldenCheetah
pre-fills a new profile with 75 kg. This build ships 188 athlete-years at exactly 75.0 kg
against 76 at 74.0 and 79 at 76.0, so **75.0 kg is over-represented**, consistent with the default value. 65 shipped
athletes record 75.0 kg on every ride of their history whose GoldenCheetah summary carries a
power-duration profile (rides with no recorded weight are ignored, not counted against them). A default weight cannot be told apart
from a real 75 kg rider who never edits the profile.
## activities — one row per ride
`athlete_id`, `activity_id`, `start_time_utc` (the ride JSON's UTC start, timestamp[us, UTC]),
`utc_offset_minutes` (int16: `activity_id`, the local start time, minus `start_time_utc`),
`sport`, `data_flags`, `has_timeseries` (true for every shipped activity), `year` (the UTC
year of `start_time_utc`; a ride started near New Year can fall in the adjacent year of its
local `activity_id`), `active_start_offset_s` (int64: seconds from the recording's start to the
shipped window's first second), `duration_capped` (the recording exceeded 24 h and only its
max-work 24 h window was used), `json_mmp_confirm_status` (the ride's 1 Hz MMP against
GoldenCheetah's own MMP for it: `passed`, `diverged` or `unverifiable`; shipped as a flag, no
ride is removed on it), `date` (the ride JSON's date string as GCOD stores it),
`data_key_present`,
and the mean-power floor columns `active_mean_wkg`, `active_measured_s`, `floor_mmp_protected`,
`live_mean_frac_mmp1200`, `historical_pct_gate_cut` (described below).
`date`/`start_time_utc`/`sport` are **null** wherever the ride source lacked them (honest absence, like
the companion channels — do not assume present). A **blank string `""`** is different from
null: it is the empty value GoldenCheetah itself stored (an athlete who never set a sport
label). It is shipped as `""`, not converted. `data_flags` is **never null**: it is the
15-position string, or `""`. Two different things ship as `""`, and `data_key_present` (true /
false, never null) tells them apart: `true` means the ride's source record carries a channel
string, so a `""` is GoldenCheetah's own stored blank; `false` means the record has no `data`
key (or a JSON null there) and the build ships `""` for it. The columns themselves are always
present (the build stops with an error if the source omits them entirely).
This build ships 55,679 rides with `sport == ""` (55,680 with a
blank or whitespace-only label). Of the rides with `data_flags == ""`, 0
have no channel string in the source (`data_key_present` false) and 382 carry
GoldenCheetah's stored blank.
`sport` is the activity label as GoldenCheetah recorded it (set by the athlete or their
device; not normalized). The build removed every ride whose label, trimmed and lower-cased, is
on a declared list of 105 non-cycling labels (running, swimming, walking and
hiking, skiing and skating, rowing and ski ergometers, gym and other sports, multisport,
unspecified ergometers). Every label carried by 50 or more rides in the raw
GoldenCheetah corpus was reviewed by its text; rarer labels were kept without review, and
some of them name another sport (for example "schwimmen"). In this build 3,394
shipped rides (0.43%) carry such an unreviewed label. The rule reads the
label only, so running or another activity recorded under a cycling, blank or unreviewed label
is NOT detected and may remain (see `R` below). Duplicate detection also compared shipped rides
with the removed non-cycling rides: 31 shipped rides have a power curve identical
to a removed ride that carried a non-cycling label (by that label: row 15, run 10, swim 2, transition 2, ergo 1, gym 1, strength 1). They are
kept as cycling; the comparison covers only curves of enough points that are not constant.
A ride with **no JSON MMP** (GoldenCheetah's ride summary carries no power-duration profile)
does not mean the ride had no power: the per-second file can still carry power, and every
shipped ride's per-second power is what ships here. This build ships 7,049
such rides.
`data_flags` is GoldenCheetah's raw channel-presence string for the ride, shipped
byte-for-byte and not interpreted by the build. Each of its 15 positions shows the channel's
letter when GoldenCheetah recorded that channel for the ride and `-` when it did not:
T time, D distance, S speed, P power, H heart rate, C cadence, N torque, A altitude,
G GPS latitude/longitude, L slope, W headwind, E temperature, V left/right balance,
O muscle oxygen (SmO2/tHb), R running dynamics (ground contact, vertical oscillation, run
cadence). The per-second files ship only time, distance, power, heart rate, cadence and
altitude; GPS coordinates are not shipped. Use the flags to make your own cuts, e.g.
indoor vs outdoor: a ride without `G` has no GPS track (often a trainer), but virtual-ride
software can supply GPS and altitude, so `G`/`A` alone do not prove a ride was outdoors.
An `R` flag can indicate running recorded under another label. This build ships 421
rides with `R` (0.05% of 780,523): 408 under reviewed-keep labels,
9 blank, 4 unreviewed. The build does not remove them.
`R` is an incomplete detector: among the removed rides labelled `run` whose summary carries a
power-duration profile (the kind that could hide among shipped rides), 73.0% carry it
(36.0% of all removed `run` rides, most of which carry no power). These counts are therefore a lower
bound on running under other labels, not its size.
The flags describe GoldenCheetah's source file for the ride, not the shipped series: the
per-second data is trimmed to the active window, so a channel flagged present may be absent
from the shipped rows, and vice versa.
### Mean-power floor columns
The build removed a ride only if its average power over the active window was below
0.5 W/kg of the athlete-year's body mass (recording-gap seconds left out,
seconds of coasting or stopping inside the window counted) AND its maximal mean power over that same window was not
within 10% of the athlete-year's best at any of the 28 durations from
1 s to 7200 s. The athlete-year's best at a duration is the highest
active-window maximal mean power (recording-gap seconds as 0 W) among the athlete-year's rides the
activity model kept, before the floor removed any; efforts outside a ride's active window play no
part. A ride that sets or nearly sets that best, including a ride that is the only one of its
athlete-year long enough to reach a duration, is therefore kept however low its average.
`active_mean_wkg` is that average and `floor_mmp_protected` is true when the ride came within
10% of that best at some duration; neither is ever null, and every shipped ride either averages
at least 0.5 W/kg or is protected. `active_measured_s` is the number of
seconds with recorded power behind `active_mean_wkg` (the window's length minus its recording-gap
seconds); it is disclosed so a user can judge how well each average is supported, and the floor
applies no minimum to it. This build ships 129
rides below 0.5 W/kg that are kept only by that protection; a ride kept this way
can still be mostly idle around one hard effort.
`live_mean_frac_mmp1200` and `historical_pct_gate_cut` give a stricter, optional quality filter
the build does not apply: remove a ride whose average over the seconds the model labelled as
live pedalling is below 18% of the athlete-year's 20-minute maximal mean power.
That average covers the model's live runs lying fully inside the active window (recording gaps
inside a run counted as 0 W), or the whole active window when no live run lies fully inside it.
`live_mean_frac_mmp1200` is that average divided by the 20-minute value; it is **null** when the
athlete-year has no 20-minute value of at least 50 W (0
shipped rides). `historical_pct_gate_cut` is true when that fraction is below 18%,
null exactly where the fraction is null; the filter keeps every ride with a null fraction, so a
null here means "kept by the filter". This build ships 2,461 rides the filter
would remove (`historical_pct_gate_cut` true). Near-flat traces averaging above 0.5 W/kg are not
removed by the floor.
## manifest — one row per athlete
`n_rides`, `n_samples`, `total_duration_s` and `size_bytes` of that athlete's partition.
`part_sha256` is the SHA-256 of that athlete's `part.parquet` exactly as written; recompute it
to confirm a partition is the shipped one. `gcod_zip_sha256` is the SHA-256 of the
GoldenCheetah OpenData zip the partition was built from, so a partition can be traced to its
raw file.README.md+418-3
RELEASE_MANIFEST.jsonAdded+130
data/activities/activities.parquetAdded+3
data/athlete_years/athlete_years.parquetAdded+3
data/athletes/athletes.parquetAdded+3
data/manifest/manifest.parquetAdded+3
data/timeseries/part-00000.parquetAdded+3
data/timeseries/part-00001.parquetAdded+3
data_dictionary.mdAdded+170