How valvesoftware/counter-strike_regional_standings works
This repository implements CS2 Regional Standings: match and event records are converted into roster-specific teams, seeded from performance factors, updated through match outcomes, and published as regional standings with per-roster detail. The README also describes a model-evaluation workflow that compares expected and observed match win rates over weekly samples. Source excerpts show the ranking and reporting calls; some evaluation internals and the report’s file-writing details are only partly sampled, so those links are limited to documented or directly visible relationships.
Main entry points: ranking.js Ranking orchestration · report.js Markdown reporting · data_loader.js Data loader · fit.js Fit analysis
Components 16
Match ingestion
- Data loader
model/data_loader.js - Roster teams
model/team.js - Region mapping
model/util/region.js
Ranking model
- Ranking orchestration
model/ranking.js - Ranking context
model/ranking_context.js - Value remapping
model/util/remap_value_clamped.js - Glicko ratings
model/glicko.js - Outlier selection
model/util/nth_highest.js
Model evaluation
- Fit entry point
model/main_fit.js - Fit analysis
model/fit.js
Standings output
- Match table
model/table.js - Markdown reporting
model/report.js - Standings entry point
model/main.js
Other components
- Standings operator
- Match and event data
data/matchdata_sample_20230829.json - Published standings
invitation/2024/details/2024_08_06
Connections 19
- Standings operator → Standings entry point: runs
model/main.js - Match and event data → Data loader: loads
model/data_loader.js - Standings entry point → Ranking orchestration: generates
model/main.js - Ranking orchestration → Data loader: loads data
model/ranking.js - Data loader → Roster teams: creates rosters
model/data_loader.js - Data loader → Region mapping: maps regions
model/data_loader.js - Ranking orchestration → Ranking context: configures
model/ranking.js - Ranking context → Value remapping: remaps time
model/ranking_context.js - Ranking orchestration → Glicko ratings: rates matches
model/ranking.js - Roster teams → Outlier selection: selects results
model/team.js - Ranking orchestration → Value remapping: scales seeds
model/ranking.js - Fit entry point → Fit analysis: starts analysis
model/main_fit.js - Fit analysis → Ranking orchestration: requests rankings
model/fit.js - Fit analysis → Glicko ratings: estimates wins
model/fit.js - Standings entry point → Markdown reporting: formats results
model/main.js - Markdown reporting → Match table: builds tables
model/report.js - Markdown reporting → Ranking orchestration: uses ranking data
model/report.js - Markdown reporting → Outlier selection: selects details
model/report.js - Markdown reporting → Published standings: writes reports