Kavlahkaff commited on
Commit
2ad608a
·
verified ·
1 Parent(s): 8c5612b

Add dataset card

Browse files
Files changed (1) hide show
  1. README.md +120 -0
README.md ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ pretty_name: AUTOENCODIX initial-config portfolios
4
+ tags:
5
+ - autoencodix
6
+ - hyperparameter-optimization
7
+ - transfer-learning
8
+ - zero-shot
9
+ - multi-omics
10
+ - autoencoder
11
+ viewer: false
12
+ ---
13
+
14
+ # AUTOENCODIX initial-config portfolios
15
+
16
+ This repository holds the lookup table that
17
+ [`autoencodix.propose_initial_config()`](https://github.com/jan-forest/autoencodix_package) uses to suggest
18
+ a strong starting hyperparameter configuration for an AUTOENCODIX model. You don't have to tune
19
+ from the generic schema defaults.
20
+
21
+ The portfolios were computed **offline** by fitting Syne Tune's `ZeroShotTransfer` scheduler to the
22
+ **BBOmix** benchmark: about 105,000 AUTOENCODIX training runs across several architectures, two
23
+ datasets and many downstream tasks. At call time no optimizer runs. The package just looks up the
24
+ JSON and validates the result with Pydantic.
25
+
26
+ ## Usage
27
+
28
+ ```python
29
+ import autoencodix as acx
30
+
31
+ # newest portfolio (revision "main"), top-ranked config for the downstream objective
32
+ config = acx.propose_initial_config("varix")
33
+
34
+ # pin a published version for reproducibility
35
+ config = acx.propose_initial_config("varix", revision="v1")
36
+
37
+ # list the available versions
38
+ acx.tuning.list_portfolio_versions() # e.g. ["v1"]
39
+ ```
40
+
41
+ The package downloads `initial_configs.json` from here on first use and caches it locally with
42
+ `huggingface_hub`. After that it also works offline (`HF_HUB_OFFLINE=1`). You can also use a
43
+ portfolio of your own:
44
+
45
+ ```python
46
+ acx.propose_initial_config("varix", repo_id="<user>/<repo>") # your own HF dataset
47
+ acx.propose_initial_config("varix", artifact_path="path/to/initial_configs.json") # local file, no Hub
48
+ ```
49
+
50
+ See the *Propose Initial Config* tutorial in the AUTOENCODIX docs for all options (`objective`,
51
+ `budget_epochs`, `dataset`, `top_k`, overrides).
52
+
53
+ ## Versions
54
+
55
+ `main` always points to the newest portfolio. So with the default `revision="main"`, proposals can
56
+ change when a new version is published. Each published portfolio is also tagged, and you can pin
57
+ that tag.
58
+
59
+ | Tag | Description |
60
+ |------|-------------|
61
+ | `v1` | Initial BBOmix zero-shot portfolio: vanillix, varix, ontix, disentanglix; datasets `tcga`, `schc` |
62
+
63
+ ### Publishing a new version (maintainers)
64
+
65
+ ```bash
66
+ hf upload autoencodix/initial-configs initial_configs.json initial_configs.json \
67
+ --repo-type dataset --commit-message "Portfolio v2: <what changed>"
68
+ hf repo tag create autoencodix/initial-configs v2 --repo-type dataset -m "<what changed>"
69
+ ```
70
+
71
+ Then add a row to the table above. The new file must keep the layout described below. The
72
+ package checks dataset names and budgets against whatever the file contains, so you can add new
73
+ datasets or budgets without a package release.
74
+
75
+ ## File layout
76
+
77
+ `initial_configs.json` is a single nested JSON object:
78
+
79
+ ```text
80
+ {
81
+ "<architecture>": { # vanillix | varix | ontix | disentanglix
82
+ "combined": <scope>, # pooled across all source datasets (recommended default)
83
+ "<dataset>": <scope>, # one BBOmix dataset, e.g. "tcga", "schc"
84
+ ...
85
+ },
86
+ ...
87
+ }
88
+
89
+ <scope> = {
90
+ "downstream": [<config>, ...], # ranked best-first, full training budget
91
+ "reconstruction": {
92
+ "<budget_epochs>": [<config>, ...], # ranked best-first, budgets 10, 25, 50, 100, 150, 200, 300
93
+ ...
94
+ }
95
+ }
96
+ ```
97
+
98
+ Each `<config>` is a flat mapping of AUTOENCODIX config fields. It's passed straight to the
99
+ matching config class (`VanillixConfig`, `VarixConfig`, ...). In `v1`, every list holds 10 ranked
100
+ configs.
101
+
102
+ | Architecture | Hyperparameters |
103
+ |----------------|-----------------|
104
+ | `vanillix` | `k_filter`, `n_layers`, `enc_factor`, `latent_dim`, `batch_size`, `learning_rate`, `drop_p`, `weight_decay`, `epochs`, `checkpoint_interval`, `loss_reduction` |
105
+ | `varix` | as vanillix + `beta` |
106
+ | `ontix` | as vanillix + `beta`, without `latent_dim` |
107
+ | `disentanglix` | as vanillix + `beta_mi`, `beta_tc`, `beta_dimKL` |
108
+
109
+ ### Objectives
110
+
111
+ - **`downstream`**: maximizes an aggregate downstream classification score. The score was only
112
+ measured at the final epoch, so these configs always use the full training budget
113
+ (`epochs = 300`).
114
+ - **`reconstruction`**: minimizes reconstruction loss, which was recorded every epoch. Each budget
115
+ key holds configs tuned for training that many epochs (`epochs` and `checkpoint_interval` are
116
+ set to the budget).
117
+
118
+ ## License
119
+
120
+ Apache-2.0, the same license as the AUTOENCODIX package.