Reference implementation for 5D multi-table analysis with RHT.
- Core package available:
rht/,pipeline/,evaluation/ - Empirical harness available:
experiments/run.py(Synthea),experiments/run_mimic.py(MIMIC-IV demo) - Local benchmark available:
benchmarks/local_csv_benchmark.py - Latest benchmark aggregation documented in docs/PHASE1_VALIDATION_RESULTS.md
- Manuscript revision workflow documented in docs/APPLY_REVISIONS.md
The repository is organized around four layers:
- Core model layer — RHT modules and extensions in
rht/andrht_ext/ - Pipeline layer — multi-table orchestration and feature propagation in
pipeline/ - Evaluation layer — metrics and scoring utilities in
evaluation/ - Execution layer — reproducible experiments and benchmarks in
experiments/andbenchmarks/
The framework addresses the 5 dimensions of multi-table complexity:
| Dimension | Description |
|---|---|
| D1 | Volume (large relational datasets) |
| D2 | Variable multiplicity (wide tables) |
| D3 | High categorical cardinality (long-tail codes) |
| D4 | Multi-table relational structure |
| D5 | Irregular temporal measurements |
multitable-5D-analysis/
├── rht/ # Core RHT model and modules
├── rht_ext/ # Sparse attention extension
├── pipeline/ # Multi-table pipeline orchestration
├── evaluation/ # Metrics and scoring helpers
├── experiments/ # Synthea + MIMIC-IV demo experiments
├── benchmarks/ # Local benchmark scripts
├── data/mimic-iv-demo/ # Bundled demo CSVs
├── benchmark_results/ # Historical benchmark outputs
├── tests/ # Unit tests
├── configs/ # Configuration files
├── README.md # Project overview
├── docs/ # Documentation hub and guides
│ ├── README.md # Documentation start page
│ ├── START_HERE.md # Quick start
│ ├── INDEX.md # Documentation index
│ ├── REPOSITORY_STRUCTURE.md
│ ├── APPLY_REVISIONS.md
│ └── SUBMISSION_CHECKLIST.md
├── manuscript/ # Manuscript source and build artifacts
│ ├── MANUSCRIPT_REVISIONS.tex
│ ├── results.tex
│ └── MANUSCRIPT_REVISIONS.pdf
├── experiments/README.md # Run instructions
└── docs/PHASE1_VALIDATION_RESULTS.md
experiments/run.py— Synthea experiment harnessexperiments/run_mimic.py— MIMIC-IV demo harnessbenchmarks/local_csv_benchmark.py— local benchmark on bundled CSV filesexperiments/test_sparse_equiv.py— sparse-vs-dense attention check
git clone https://github.com/edlansiaux/multitable-5d-analysis.git
cd multitable-5d-analysis
pip install -e .python benchmarks/local_csv_benchmark.py \
--subsets QUARTER HALF FULL \
--configs RHT-TinyEmbed RHT-Full \
--epochs 1 \
--out-dir benchmark_resultspython experiments/run.py \
--data_dir /path/to/synthea/output/csv \
--seeds 0 1 2 3 4 \
--epochs 50 \
--out manuscript/results.texpython experiments/run_mimic.py \
--data_dir data/mimic-iv-demo \
--seeds 0 1 2 3 4 \
--epochs 30 \
--out manuscript/results_mimic.texThis repository is meant to support reproducible validation on open or bundled data.
- Synthea: primary empirical harness for the manuscript revision workflow
- MIMIC-IV demo: local benchmark and demo run support
manuscript/results.tex: source of truth for manuscript tables generated from runs
- Documentation home: docs/README.md
- Start guide: docs/START_HERE.md
- Navigation index: docs/INDEX.md
- Repository map: docs/REPOSITORY_STRUCTURE.md
- Integration summary: docs/INTEGRATION_SUMMARY.md
- Final status snapshot: docs/FINAL_STATUS.txt
- Phase 1 benchmark results: docs/PHASE1_VALIDATION_RESULTS.md
- Experiments guide: experiments/README.md
- Manuscript revision guide: docs/APPLY_REVISIONS.md
- Submission checklist: docs/SUBMISSION_CHECKLIST.md
- Do not report placeholders as measured values.
- Keep
manuscript/results.texgenerated from runs as the single source of experimental numbers. TGNin the baseline module remains a stub unless explicitly integrated.
MIT — see LICENSE.