Upload folder using huggingface_hub
Browse files- README.md +36 -0
- metadata.json +19 -0
- model.joblib +3 -0
README.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- transcriptomics
|
| 4 |
+
- dimensionality-reduction
|
| 5 |
+
- nmf
|
| 6 |
+
- TRACERx
|
| 7 |
+
license: mit
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
# NMF Model - transcriptome mode - 64D
|
| 11 |
+
|
| 12 |
+
Pre-trained nmf model for transcriptomic data compression.
|
| 13 |
+
|
| 14 |
+
## Details
|
| 15 |
+
- **Mode**: transcriptome-centric compression
|
| 16 |
+
- **Dimensions**: 64
|
| 17 |
+
- **Training data**: TRACERx lung cancer transcriptomics
|
| 18 |
+
- **Created**: 2026-01-10T13:17:41.226424
|
| 19 |
+
|
| 20 |
+
## Usage
|
| 21 |
+
|
| 22 |
+
```python
|
| 23 |
+
import joblib
|
| 24 |
+
from huggingface_hub import snapshot_download
|
| 25 |
+
|
| 26 |
+
# Download model
|
| 27 |
+
local_dir = snapshot_download("jruffle/nmf_transcriptome_64d")
|
| 28 |
+
model = joblib.load(f"{local_dir}/model.joblib")
|
| 29 |
+
|
| 30 |
+
# For classical models (PCA/UMAP):
|
| 31 |
+
# model contains: 'pca', 'umap', 'robust_scaler', 'gene_order'
|
| 32 |
+
|
| 33 |
+
# For TabPFN models (with UMAP reduction):
|
| 34 |
+
# model contains: 'tabpfn_embedding', 'umap_final', 'raw_embeddings', 'input_scaler', etc.
|
| 35 |
+
# Uses UMAP instead of PCA for non-linear dimension reduction of TabPFN embeddings
|
| 36 |
+
```
|
metadata.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model_type": "nmf",
|
| 3 |
+
"mode": "transcriptome",
|
| 4 |
+
"dimensions": 64,
|
| 5 |
+
"created": "2026-01-10T13:17:41.226695",
|
| 6 |
+
"keys": [
|
| 7 |
+
"nmf_model",
|
| 8 |
+
"input_scaler",
|
| 9 |
+
"data_shift",
|
| 10 |
+
"n_components",
|
| 11 |
+
"actual_components",
|
| 12 |
+
"method",
|
| 13 |
+
"mode",
|
| 14 |
+
"row_ids",
|
| 15 |
+
"feature_ids",
|
| 16 |
+
"robust_scaler",
|
| 17 |
+
"reference_embeddings"
|
| 18 |
+
]
|
| 19 |
+
}
|
model.joblib
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9da6781eae1a9c1854c3652268a3ad293176f2386519210cd366f5a243f99565
|
| 3 |
+
size 11093442
|