4esv commited on
Commit
0aa87cb
·
verified ·
1 Parent(s): 35c1715

Rameau v1: 21,940 records, 4 configs, verified gold, eval harness

Browse files
README.md CHANGED
@@ -164,6 +164,25 @@ Metrics: `exact` (Roman numerals **and** cadence correct — the headline number
164
  `tonic_acc`, `mode_acc`. The zero-shot prompts are versioned in
165
  `eval/prompts.py`; parsing rules are documented in `eval/README.md`.
166
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
167
  ## Reproduce
168
 
169
  The full generation pipeline ships in this repo (`src/harmony_dataset/`):
 
164
  `tonic_acc`, `mode_acc`. The zero-shot prompts are versioned in
165
  `eval/prompts.py`; parsing rules are documented in `eval/README.md`.
166
 
167
+ ## Baseline results (small-sample probe)
168
+
169
+ `qwen3:8b` via ollama, thinking disabled, temperature 0, prompt v1, first 60
170
+ test records per config:
171
+
172
+ | config | exact | chord_acc | cadence_acc |
173
+ |---|---|---|---|
174
+ | `symbol_to_rn` | 0.083 | 0.295 | 0.550 |
175
+ | `notes_to_rn` | 0.000 | 0.116 | 0.117 |
176
+ | `pcset_to_rn` | 0.000 | 0.041 | 0.250 |
177
+ | `key_id` | 0.233 | tonic 0.400 | mode 0.583 |
178
+
179
+ `llama3.2:3b` on `symbol_to_rn`: exact 0.000, chord_acc 0.137.
180
+
181
+ The difficulty ladder behaves as designed — chord accuracy falls ~30% -> 12% -> 4%
182
+ as the answer is progressively hidden, and an 8B model cannot reliably produce a
183
+ single fully correct analysis outside the lookup-flavored config. Frontier-model
184
+ results welcome; the harness in `eval/` reproduces these numbers.
185
+
186
  ## Reproduce
187
 
188
  The full generation pipeline ships in this repo (`src/harmony_dataset/`):
eval/score.py CHANGED
@@ -50,6 +50,8 @@ def parse_rn(text: str) -> tuple[list[str] | None, str | None]:
50
  """Extract (labels, cadence) from a model response."""
51
  text = normalize(text)
52
  lines = [ln.strip().strip("`") for ln in text.splitlines() if ln.strip()]
 
 
53
  if not lines:
54
  return None, None
55
 
@@ -72,6 +74,11 @@ def parse_rn(text: str) -> tuple[list[str] | None, str | None]:
72
  if lines[j]:
73
  labels_line = lines[j]
74
  break
 
 
 
 
 
75
  else:
76
  labels_line = lines[-1]
77
 
 
50
  """Extract (labels, cadence) from a model response."""
51
  text = normalize(text)
52
  lines = [ln.strip().strip("`") for ln in text.splitlines() if ln.strip()]
53
+ # drop echoed format placeholders like "<Roman numerals ...>"
54
+ lines = [ln for ln in lines if not (ln.startswith("<") and ln.endswith(">"))]
55
  if not lines:
56
  return None, None
57
 
 
74
  if lines[j]:
75
  labels_line = lines[j]
76
  break
77
+ else: # nothing above the cadence line: fall back to below
78
+ for j in range(cad_idx + 1, len(lines)):
79
+ if lines[j]:
80
+ labels_line = lines[j]
81
+ break
82
  else:
83
  labels_line = lines[-1]
84
 
src/harmony_dataset/export.py CHANGED
@@ -197,6 +197,25 @@ Metrics: `exact` (Roman numerals **and** cadence correct — the headline number
197
  `tonic_acc`, `mode_acc`. The zero-shot prompts are versioned in
198
  `eval/prompts.py`; parsing rules are documented in `eval/README.md`.
199
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
200
  ## Reproduce
201
 
202
  The full generation pipeline ships in this repo (`src/harmony_dataset/`):
 
197
  `tonic_acc`, `mode_acc`. The zero-shot prompts are versioned in
198
  `eval/prompts.py`; parsing rules are documented in `eval/README.md`.
199
 
200
+ ## Baseline results (small-sample probe)
201
+
202
+ `qwen3:8b` via ollama, thinking disabled, temperature 0, prompt v1, first 60
203
+ test records per config:
204
+
205
+ | config | exact | chord_acc | cadence_acc |
206
+ |---|---|---|---|
207
+ | `symbol_to_rn` | 0.083 | 0.295 | 0.550 |
208
+ | `notes_to_rn` | 0.000 | 0.116 | 0.117 |
209
+ | `pcset_to_rn` | 0.000 | 0.041 | 0.250 |
210
+ | `key_id` | 0.233 | tonic 0.400 | mode 0.583 |
211
+
212
+ `llama3.2:3b` on `symbol_to_rn`: exact 0.000, chord_acc 0.137.
213
+
214
+ The difficulty ladder behaves as designed — chord accuracy falls ~30% -> 12% -> 4%
215
+ as the answer is progressively hidden, and an 8B model cannot reliably produce a
216
+ single fully correct analysis outside the lookup-flavored config. Frontier-model
217
+ results welcome; the harness in `eval/` reproduces these numbers.
218
+
219
  ## Reproduce
220
 
221
  The full generation pipeline ships in this repo (`src/harmony_dataset/`):
tests/test_eval.py CHANGED
@@ -40,6 +40,13 @@ class TestParseRN:
40
  def test_garbage(self):
41
  assert parse_rn("") == (None, None)
42
 
 
 
 
 
 
 
 
43
 
44
  class TestParseKey:
45
  def test_plain(self):
 
40
  def test_garbage(self):
41
  assert parse_rn("") == (None, None)
42
 
43
+ def test_placeholder_echo_is_dropped(self):
44
+ text = "<Roman numerals separated by single spaces>\ncadence: IAC\nI V65 I"
45
+ assert parse_rn(text) == (["I", "V65", "I"], "IAC")
46
+
47
+ def test_only_placeholder(self):
48
+ assert parse_rn("<Roman numerals separated by single spaces>") == (None, None)
49
+
50
 
51
  class TestParseKey:
52
  def test_plain(self):