Record the T5 retrieval results

Depth is the strongest single representation (nDCG@10 0.666 against 0.463
for random); no representation beats depth with an interval excluding 0.
The neighbour forecast reaches AP 0.150 against a prevalence of 0.114.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-20 08:25:29 +00:00
parent 4a1011f5e1
commit 5f780bab67
6 changed files with 116 additions and 19 deletions

View File

@@ -176,6 +176,22 @@ rồi ghi `outputs/m5/errors/`: `report.json` (độ phủ, tỉ lệ macro, ρ
`predictions.parquet`. Kết quả ngày 20/11: ρ EGS gộp 0,535–0,538, H4 không được ủng hộ
([plan §1.7](docs/plan.md#17-m5-g3-phân-tích-kết-quả-cuối-phân-loại-lỗi-và-rq4-ngày-20112026)).
## T5 truy xuất khoảng tương đồng (M5, protocol v5)
`configs/protocol_v5.yaml` (khóa bằng `.sha256`, mở rộng v4) cố định mục, mức liên quan theo luật (cùng section + cùng
formation + giao nhóm nguyên nhân), biểu diễn, metric và thống kê trước mọi điểm truy xuất.
```bash
OMP_NUM_THREADS=4 MKL_NUM_THREADS=4 OPENBLAS_NUM_THREADS=4 \
scripts/runlog.sh -n m5_t5 -- .venv/bin/python scripts/20_m5_t5.py # khoảng 2 phút
```
Script kiểm checksum v5, dựng các khoảng T3 đủ điều kiện (NPT b 410, a 373), tính nDCG@10, MRR, P@10 cho từng biểu diễn
(random, depth, witsml_pre, text_pre, text_event, RRF) với CI bootstrap theo giếng, và dự báo khó khăn từ 10 ô láng giềng
trên 4.894 ô T3. Kết quả ghi ở `outputs/m5/t5/`: `report.json`, `per_query.parquet`, `items_a.parquet`, `items_b.parquet`,
`knn_scores.parquet`. Kết quả ngày 20/11: depth nDCG@10 0,666, random 0,463, không biểu diễn nào hơn depth với CI loại 0
([plan §1.8](docs/plan.md#18-m5-t5-truy-xuất-khoảng-tương-đồng-ngày-20112026)).
## Ba phiên bản của một DDR và parser OCR
Mỗi DDR có ba phiên bản:
@@ -224,6 +240,7 @@ Dịch vụ OCR:
| `scripts/run_m34.sh` | Driver M3–M4 có runlog, gồm `prepare`, `classical`, `distilbert`, `qa`, `qa-local`, `t2-llm` và `report` |
| `scripts/18_m5_judge.py prepare\|status\|collect` | Hiệu chuẩn LLM-judge cho G3 theo protocol v3 → `outputs/m5/judge/` (report.json, judged.csv, disagreements.csv) |
| `scripts/19_m5_errors.py` | Phân loại lỗi theo họ câu hỏi và RQ4 (EGS so với điểm tự động) theo protocol v4 → `outputs/m5/errors/` |
| `scripts/20_m5_t5.py` | T5 truy xuất khoảng tương đồng và dự báo từ láng giềng theo protocol v5 → `outputs/m5/t5/` |
| `scripts/runlog.sh` | Bọc một lệnh để ghi log và runtime |
| `scripts/run_m1.sh` | Chạy pipeline M1 trên nền P0: 04_ocr_hub, 05 `--source hub`, 06–09, pytest |
| `scripts/run_p0.sh` | Chạy toàn bộ P0: 00 `--check`, 01–05 (04 ở chế độ `--pilot`), pytest |