jruffle commited on
Commit
8a4fa23
·
verified ·
1 Parent(s): d5aeb22

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. README.md +36 -0
  2. metadata.json +19 -0
  3. 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 - samples mode - 4D
11
+
12
+ Pre-trained nmf model for transcriptomic data compression.
13
+
14
+ ## Details
15
+ - **Mode**: samples-centric compression
16
+ - **Dimensions**: 4
17
+ - **Training data**: TRACERx lung cancer transcriptomics
18
+ - **Created**: 2026-01-10T13:15:48.266414
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_samples_4d")
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": "samples",
4
+ "dimensions": 4,
5
+ "created": "2026-01-10T13:15:48.266672",
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:9c3d8785a8c5fa8ec1cf8e5fcfdcb1959806fbdd03d5ba4ddae9dac2a88a0e86
3
+ size 1687090