jruffle commited on
Commit
59e01f5
·
verified ·
1 Parent(s): 85a20eb

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. README.md +36 -0
  2. metadata.json +20 -0
  3. model.joblib +3 -0
README.md ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - transcriptomics
4
+ - dimensionality-reduction
5
+ - kpca
6
+ - TRACERx
7
+ license: mit
8
+ ---
9
+
10
+ # KPCA Model - samples mode - 64D
11
+
12
+ Pre-trained kpca model for transcriptomic data compression.
13
+
14
+ ## Details
15
+ - **Mode**: samples-centric compression
16
+ - **Dimensions**: 64
17
+ - **Training data**: TRACERx lung cancer transcriptomics
18
+ - **Created**: 2026-01-10T13:21:20.422879
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/kpca_samples_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,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_type": "kpca",
3
+ "mode": "samples",
4
+ "dimensions": 64,
5
+ "created": "2026-01-10T13:21:20.423126",
6
+ "keys": [
7
+ "kpca_model",
8
+ "input_scaler",
9
+ "n_components",
10
+ "actual_components",
11
+ "kernel",
12
+ "gamma",
13
+ "method",
14
+ "mode",
15
+ "row_ids",
16
+ "feature_ids",
17
+ "robust_scaler",
18
+ "reference_embeddings"
19
+ ]
20
+ }
model.joblib ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2eff71ef47b45501eaa571df8cf7055a9a1f1c9cc7246271f686f05c190c6f69
3
+ size 171398050