wolframko commited on
Commit
1bacee5
·
verified ·
1 Parent(s): 6e128d3

Add dataset card

Browse files
Files changed (1) hide show
  1. README.md +126 -0
README.md ADDED
@@ -0,0 +1,126 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ task_categories:
4
+ - tabular-classification
5
+ language:
6
+ - en
7
+ tags:
8
+ - dota2
9
+ - esports
10
+ - gaming
11
+ - replay-parsing
12
+ - time-series
13
+ size_categories:
14
+ - 100M<n<1B
15
+ ---
16
+
17
+ # Betty Dota 2 Pro Matches Dataset
18
+
19
+ 9,388 professional Dota 2 matches parsed from replay files with per-second game state snapshots and combat log events.
20
+
21
+ ## Dataset Structure
22
+
23
+ ### matches.parquet (9,388 rows)
24
+
25
+ One row per match. Contains metadata, STRATZ player statistics, and draft data.
26
+
27
+ | Column | Type | Description |
28
+ |--------|------|-------------|
29
+ | match_id | int64 | Dota 2 match ID |
30
+ | league_name | string | Tournament name |
31
+ | league_tier | string | PROFESSIONAL, MAJOR, etc. |
32
+ | duration_sec | int64 | Match duration in seconds |
33
+ | radiant_win | bool | True if Radiant won |
34
+ | radiant_team_id / dire_team_id | int64 | Team IDs |
35
+ | p0..p9_hero_id | int64 | Hero ID per player (STRATZ) |
36
+ | p0..p9_kills/deaths/assists | int64 | Final KDA per player |
37
+ | p0..p9_gpm/xpm/networth | int64 | Economy stats per player |
38
+ | p0..p9_gpm_per_min | list[int] | Gold per minute time-series |
39
+ | p0..p9_networth_per_min | list[int] | Net worth per minute |
40
+ | p0..p9_hero_damage_per_min | list[int] | Hero damage per minute |
41
+ | stratz_pb_hero_id | list[int] | STRATZ pick/ban hero IDs |
42
+ | replay_pb_hero_id | list[int] | Replay-parsed pick/ban hero IDs |
43
+
44
+ ### ticks/ (189,120,930 rows)
45
+
46
+ One row per game-tick per hero. ~1,500 ticks per match x 10 heroes. Per-second snapshots of full game state.
47
+
48
+ | Column | Type | Description |
49
+ |--------|------|-------------|
50
+ | match_id | int64 | Match ID |
51
+ | tick | int32 | Raw tick number |
52
+ | game_time | float | Game time in seconds |
53
+ | slot | int8 | Player slot (0-9) |
54
+ | hero | string | Hero internal name |
55
+ | x, y | float | Map position coordinates |
56
+ | hp, max_hp | int32 | Current and max health |
57
+ | mana, max_mana | float | Current and max mana |
58
+ | gold | int32 | Current gold |
59
+ | net_worth | int32 | Total net worth |
60
+ | xp | int32 | Total experience |
61
+ | kills, deaths, assists | int16 | KDA at this moment |
62
+ | last_hits, denies | int16 | CS at this moment |
63
+ | level | int8 | Hero level |
64
+ | str, agi, int_ | float | Attribute values |
65
+ | armor | float | Armor value |
66
+ | move_speed | int16 | Movement speed |
67
+ | item_0..item_5 | string | Items in 6 inventory slots |
68
+
69
+ ### events/ (295,810,843 rows)
70
+
71
+ One row per combat log event. Damage, kills, gold gains, XP, healing, purchases.
72
+
73
+ | Column | Type | Description |
74
+ |--------|------|-------------|
75
+ | match_id | int64 | Match ID |
76
+ | tick | int32 | Raw tick number |
77
+ | game_time | float | Game time in seconds |
78
+ | timestamp | float | Exact event timestamp |
79
+ | event_type | string | DOTA_COMBATLOG_DAMAGE, _DEATH, _GOLD, _HEAL, _PURCHASE, _XP |
80
+ | source | string | Source entity (e.g. npc_dota_hero_invoker) |
81
+ | target | string | Target entity |
82
+ | value | int32 | Damage/gold/xp amount |
83
+ | item | string | Item name (for PURCHASE events) |
84
+
85
+ ## Statistics
86
+
87
+ - **Matches**: 9,388 professional games from 2025
88
+ - **Ticks**: 189,120,930 per-second hero state snapshots
89
+ - **Events**: 295,810,843 combat log entries
90
+ - **Size**: 5.97 GB compressed Parquet (from 103 GB JSON)
91
+ - **Source**: Valve replay files (.dem) parsed with [manta](https://github.com/dotabuff/manta) + STRATZ API metadata
92
+
93
+ ## Usage
94
+
95
+ ```python
96
+ from datasets import load_dataset
97
+
98
+ # Load matches metadata
99
+ matches = load_dataset("wolframko/pipes-lie-embargo-dominus", data_files="matches.parquet", split="train")
100
+
101
+ # Load ticks (large - use streaming)
102
+ ticks = load_dataset("wolframko/pipes-lie-embargo-dominus", data_files="ticks/*.parquet", split="train", streaming=True)
103
+
104
+ # Load events
105
+ events = load_dataset("wolframko/pipes-lie-embargo-dominus", data_files="events/*.parquet", split="train", streaming=True)
106
+ ```
107
+
108
+ ```python
109
+ import pandas as pd
110
+
111
+ # Quick analysis with pandas
112
+ matches_df = pd.read_parquet("hf://datasets/wolframko/pipes-lie-embargo-dominus/matches.parquet")
113
+ print(f"Matches: {len(matches_df)}, Radiant winrate: {matches_df.radiant_win.mean():.1%}")
114
+ ```
115
+
116
+ ## Data Pipeline
117
+
118
+ 1. **Fetch**: Match IDs from STRATZ GraphQL API (pro leagues 2025)
119
+ 2. **Download**: Replay files (.dem.bz2) from Valve CDN
120
+ 3. **Parse**: Per-second hero states + combat log via manta (Go)
121
+ 4. **Enrich**: Player/team stats from STRATZ API
122
+ 5. **Convert**: JSON to Parquet with full validation
123
+
124
+ ## License
125
+
126
+ MIT