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aber
|
| 8 |
+
- beat-saber
|
| 9 |
+
- rhythm-game
|
| 10 |
+
- game-data
|
| 11 |
+
- json
|
| 12 |
+
- procedural-generation
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# Dataset / model card (Beat Saber ranked maps)
|
| 16 |
+
|
| 17 |
+
This folder holds **dataset-style artifacts** produced by a **Python** training / aggregation pipeline over **3,000+ different Beat Saber song maps** (ranked community maps, parsed from many map archives). This README is the **Hugging Face dataset card**; it explains what each file is, how it was built, and what consumers should expect.
|
| 18 |
+
|
| 19 |
+
> **Scope:** These files summarize **note timing, density, co-note patterns, and style priors** derived from real ranked maps—not raw audio or full map zips. Downstream tools can treat them as a **compact statistical prior** for generation, analysis, or evaluation.
|
| 20 |
+
|
| 21 |
+
> **License:** YAML uses `license: other` because rights depend on **original map / platform terms**. This repo holds **derived statistics and models** only. Replace with a concrete SPDX id (for example `MIT` for your scripts) after your own legal review.
|
| 22 |
+
|
| 23 |
+
---
|
| 24 |
+
|
| 25 |
+
## Training context
|
| 26 |
+
|
| 27 |
+
| Item | Detail |
|
| 28 |
+
|------|--------|
|
| 29 |
+
| **Pipeline** | Python |
|
| 30 |
+
| **Domain** | Beat Saber **ranked** maps (standard difficulties) |
|
| 31 |
+
| **Scale** | **3,000+** distinct song maps worth of parsed chart data (see `training_report.json` for exact zip / map / note counts from the run that produced these files) |
|
| 32 |
+
| **Purpose** | Capture how ranked mappers space notes, stack simultaneous hits, and chain local patterns so generators or evaluators can stay “on distribution.” |
|
| 33 |
+
|
| 34 |
+
---
|
| 35 |
+
|
| 36 |
+
## File reference
|
| 37 |
+
|
| 38 |
+
### `ranked_spacing_profile.json`
|
| 39 |
+
|
| 40 |
+
**What it is:** A **per-difficulty spacing and density profile** built from many ranked maps.
|
| 41 |
+
|
| 42 |
+
**Contents (high level):** For difficulties such as `normal`, `expert`, and `expertplus`, you get:
|
| 43 |
+
|
| 44 |
+
- **`maps`** — how many charts contributed to that bucket
|
| 45 |
+
- **`gap_p25` … `gap_p90`** — quantiles of **time gaps** between notes (beat-spacing style stats)
|
| 46 |
+
- **`nps_p25` … `nps_p75`** — quantiles of **notes per second**–style density
|
| 47 |
+
- **`simul_distribution`** — how often **1, 2, … simultaneous** notes appear (left/right stacks)
|
| 48 |
+
- **`createdFromMaps`** — total map count feeding the profile
|
| 49 |
+
|
| 50 |
+
**Use case:** Conditioning or validation (“does this map’s spacing look like ranked Normal / Expert+?”).
|
| 51 |
+
|
| 52 |
+
---
|
| 53 |
+
|
| 54 |
+
### `ranked_pattern_model.json`
|
| 55 |
+
|
| 56 |
+
**What it is:** The main **learned pattern / n-gram style model** (large JSON). It encodes **conditional structure** of note tokens and transitions observed across the corpus.
|
| 57 |
+
|
| 58 |
+
**Contents (high level):** Includes metadata such as:
|
| 59 |
+
|
| 60 |
+
- **`version`**, **`createdAt`**, **`source`** (input archive path used for that run)
|
| 61 |
+
- **`stats`** — aggregate counts (`zips_seen`, `standard_maps`, `notes`, etc.)
|
| 62 |
+
- **`global`** — **starters** and continuation statistics (tokens like `line:row:…` with `count` and probability `p`)
|
| 63 |
+
- Additional sections (not fully listed here) drive **pattern continuation** from context; the file can be **very large** because it stores many n-grams / transitions.
|
| 64 |
+
|
| 65 |
+
**Use case:** Sampling or scoring local note sequences to match ranked-map style.
|
| 66 |
+
|
| 67 |
+
---
|
| 68 |
+
|
| 69 |
+
### `brain/dataset_brain.json`
|
| 70 |
+
|
| 71 |
+
**What it is:** A **higher-level “brain”** bundle that combines **spacing priors** and the **trained pattern model** into something easier to ship to a generator or dataset consumer.
|
| 72 |
+
|
| 73 |
+
**Contents (high level):**
|
| 74 |
+
|
| 75 |
+
- **`version`** (e.g. `dataset-brain-v1`), **`createdAt`**, **`source`** description
|
| 76 |
+
- **`styles`** — named **procedural style priors** (e.g. “ranked tech”, “flowy dance”, “speed map”) each with a **`vector`** of knobs (density, streams, `maxSimultaneous`, dots, walls, flow/tech bias) and a short **`description`**
|
| 77 |
+
- **`retrievalIndex`** — index entries keyed by difficulty / regime (e.g. `expert`) for **retrieval-style** use alongside the vectors
|
| 78 |
+
|
| 79 |
+
**Use case:** One file to load for “style + ranked stats + retrieval hints” without wiring every low-level JSON by hand.
|
| 80 |
+
|
| 81 |
+
---
|
| 82 |
+
|
| 83 |
+
### `training_report.json`
|
| 84 |
+
|
| 85 |
+
**What it is:** A **small JSON summary** of the training / ingestion run that produced `ranked_pattern_model.json` (and related outputs).
|
| 86 |
+
|
| 87 |
+
**Typical fields:**
|
| 88 |
+
|
| 89 |
+
- **`zips_seen`** — map archives processed
|
| 90 |
+
- **`zips_without_standard_maps`** — archives skipped or without standard diffs
|
| 91 |
+
- **`standard_maps`** — individual **Standard** difficulty charts parsed
|
| 92 |
+
- **`notes`** — total **block / note** events counted
|
| 93 |
+
- **`elapsed_sec`** — wall time for the run
|
| 94 |
+
- **`model`** — path or name of the written pattern model
|
| 95 |
+
|
| 96 |
+
**Use case:** Reproducibility, Hugging Face dataset **README stats**, or sanity checks after retraining.
|
| 97 |
+
|
| 98 |
+
---
|
| 99 |
+
|
| 100 |
+
### `training.log`
|
| 101 |
+
|
| 102 |
+
**What it is:** **Plain-text log** from the Python training run (progress + final summary).
|
| 103 |
+
|
| 104 |
+
**Contents:** Lines such as `KCODE_PROGRESS {…}` with incremental **`zips`**, **`parsed_maps`**, **`notes`**, **`elapsed_sec`**, plus a trailing **`DONE`** and optional JSON echo of final counts.
|
| 105 |
+
|
| 106 |
+
**Use case:** Debugging failed runs, comparing two trainings, or attaching evidence to a dataset card without opening huge JSON.
|
| 107 |
+
|
| 108 |
+
---
|
| 109 |
+
|
| 110 |
+
### `training.pid`
|
| 111 |
+
|
| 112 |
+
**What it is:** A single **process ID** (text file, one number) for the training job that wrote these artifacts.
|
| 113 |
+
|
| 114 |
+
**Use case:** Operational only—e.g. stopping or monitoring the process on the machine that produced the dataset. **Not** required for Hugging Face upload unless you document your local workflow.
|
| 115 |
+
|
| 116 |
+
---
|
| 117 |
+
|
| 118 |
+
### `mog.md`
|
| 119 |
+
|
| 120 |
+
**What it is:** A **local duplicate** of the narrative card (same kind of content as this README). The **Hub only renders `README.md`** as the dataset card, so keep the YAML header here and treat `mog.md` as optional documentation in clones.
|
| 121 |
+
|
| 122 |
+
---
|
| 123 |
+
|
| 124 |
+
## Hugging Face upload notes
|
| 125 |
+
|
| 126 |
+
1. **`ranked_pattern_model.json`** may exceed normal Git limits—use **Git LFS** or split delivery via the `datasets` library if needed.
|
| 127 |
+
2. State clearly: **Python-trained** on **3,000+** Beat Saber **song maps**; artifacts are **derived statistics**, not the original maps.
|
| 128 |
+
|
| 129 |
+
---
|
| 130 |
+
|
| 131 |
+
## Directory layout
|
| 132 |
+
|
| 133 |
+
```
|
| 134 |
+
models/
|
| 135 |
+
├── README.md ← Hub dataset card (YAML + body)
|
| 136 |
+
├── ranked_spacing_profile.json
|
| 137 |
+
├── ranked_pattern_model.json
|
| 138 |
+
├── training_report.json
|
| 139 |
+
├── training.log
|
| 140 |
+
├── training.pid
|
| 141 |
+
└── brain/
|
| 142 |
+
└── dataset_brain.json
|
| 143 |
+
```
|