Downloads · 30 days
0
zzhaobz/cembra
cembra is a machine learning model from zzhaobz. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for numpy. The card lists the license as other.
This private repository is a curated model-and-evidence export from the oatl research codebase. It scores paired 3,000 bp reference/alternate DNA windows for osteoarthritis (OA) variant prioritization using a 9,216-fe…
Downloads · 30 days
0
Access
Public
Updated Aug 27, 2026
Repo size
13.4 MB
Likes
0
Public
Click a slice to open those files.
.npz13 MB · 79%
From the Hugging Face model README
This private repository is a curated model-and-evidence export from the
oa_tl research codebase. It scores paired 3,000 bp reference/alternate DNA
windows for osteoarthritis (OA) variant prioritization using a 9,216-feature
hashed DNA representation, a 64-dimensional encoder initialized by label-free
TruncatedSVD pretraining, and a tanh/linear ranker.
Research archive only. This is a development model, not an externally confirmed, clinically validated, calibrated, or deployment-ready predictor. It must not be used for diagnosis, treatment, or patient-level decisions.
The repository contains many historical and experimental checkpoints. This export selects the compact pseudo-SNP SVD64 arm because it is the only model that passed its locked development gate and it remained the best native single arm in the later five-model NT/Borzoi comparison.
On the governed OA2025 PIP >= 0.30 development cohort (168 rows, 56 positives, 49 guarded components), its pooled out-of-fold result was:
| Metric | pseudo-SNP SVD64 transfer | independently tuned scratch | Delta |
|---|---|---|---|
| AUROC | 0.611288 | 0.593750 | +0.017538 |
| Average precision | 0.433655 | 0.417225 | +0.016429 |
| Component-weighted concordance | 0.620748 | 0.600340 | +0.020408 |
| Component-weighted top-1 | 0.455782 | 0.425170 | +0.030612 |
The gain was modest and not uniform across folds. External confirmation was
not opened or scored. See results/pseudosnp/AUDIT.md and
results/pseudosnp/model_selection_gate.json for the exact claim boundary.
| Path | Contents |
|---|---|
weights/pretrained_svd_encoder.npz | Label-free 9,216 x 64 SVD initialization and spectrum |
weights/folds/fold_*_transfer_fixed_model.npz | Five outer-fold tanh/linear rankers |
inference.py | Standalone NumPy feature extraction and raw scoring |
verify_export.py | Recomputes one held-out score per fold from the uploaded weights |
results/pseudosnp/ | Gate, receipts, OOF predictions, metrics, plot, and audit |
results/v2_formal/ | Formal leakage-resistant NT-v2 NO-GO evidence |
results/nt_borzoi/ | Latest fusion NO-GO evidence |
results/legacy/ | Superseded historical metric tables only |
REPO_SUMMARY.md | Whole-repository technical and scientific summary |
SHA256SUMS | Integrity hashes for uploaded artifacts |
Every fold file is a safe NumPy .npz archive containing only float32 arrays:
encoder_weight: [9216, 64]encoder_bias: [64]scorer_weight: [64]scorer_bias: scalarThe raw fold score is
tanh(features @ encoder_weight + encoder_bias) @ scorer_weight + scorer_bias.
The uploaded artifacts are cross-validation fold models, not a single
full-development refit. The convenience mean across the five fold scores in
inference.py is useful for research inspection but was not the evaluated OOF
quantity and is not a validated deployment ensemble.
from inference import PseudoSnpSVD64
model = PseudoSnpSVD64(".")
fold_scores = model.score_pair_by_fold(reference_3000bp, alternate_3000bp)
research_only_mean = model.score_pair(reference_3000bp, alternate_3000bp)
The two sequences must be exactly 3,000 bases long, contain the variant at zero-based index 1,500, and differ at that position only. Scores are raw ranking logits, not probabilities. Do not apply a clinical threshold.
To verify the package against the stored OOF evidence:
python verify_export.py
[email protected]:zibin-zhao/cembra-bio.git76a214e44d83d7577d7d9bc7a67796240e970d25codex/nt-borzoi-oof-fusion20260808T003427Z_multiscale_pseudosnp_svd_344bbf0cca5boa-tl-tanh-encoder-linear-triplet-ranker.v1oa-tl-multiscale-pseudosnp-hashed-dna.v1ad72b7a4f5585dd6ebd3c9639d0ff48d7a69d4d124472e204c2b2edd8533925aThe 2026-08-22 fusion audit and runner existed as uncommitted worktree artifacts at export time; its own audit records result-affecting source and artifact hashes. It is included as later negative context, not as selected model provenance.
Proprietary, all rights reserved. The source repository license grants no reuse rights without written permission from the owner.