aptemvs commited on
Commit
a3206bd
·
verified ·
1 Parent(s): 11b6629

upload legacy/final

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. legacy/final/README.md +174 -0
  2. legacy/final/__pycache__/bgwhiten_features.cpython-312.pyc +0 -0
  3. legacy/final/__pycache__/ensemble_model.cpython-312.pyc +0 -0
  4. legacy/final/__pycache__/harmonic_features.cpython-312.pyc +0 -0
  5. legacy/final/__pycache__/model.cpython-312.pyc +0 -0
  6. legacy/final/__pycache__/predict_eval.cpython-312.pyc +0 -0
  7. legacy/final/__pycache__/predict_eval_baseline.cpython-312.pyc +0 -0
  8. legacy/final/bgwhiten_features.py +42 -0
  9. legacy/final/bundle.pt +3 -0
  10. legacy/final/bundle_ensemble.py +26 -0
  11. legacy/final/checkpoints/arm_bgwhiten_s1234.pt +3 -0
  12. legacy/final/checkpoints/arm_bgwhiten_s2023.pt +3 -0
  13. legacy/final/checkpoints/arm_bgwhiten_s42.pt +3 -0
  14. legacy/final/checkpoints/arm_bgwhiten_s7.pt +3 -0
  15. legacy/final/checkpoints/arm_bgwhiten_s99.pt +3 -0
  16. legacy/final/checkpoints/arm_birdmae_s1234.pt +3 -0
  17. legacy/final/checkpoints/arm_birdmae_s2023.pt +3 -0
  18. legacy/final/checkpoints/arm_birdmae_s42.pt +3 -0
  19. legacy/final/checkpoints/arm_harmonic_s1234.pt +3 -0
  20. legacy/final/checkpoints/arm_harmonic_s2023.pt +3 -0
  21. legacy/final/checkpoints/arm_harmonic_s42.pt +3 -0
  22. legacy/final/checkpoints/base_perch_s123.pt +3 -0
  23. legacy/final/checkpoints/base_perch_s1234.pt +3 -0
  24. legacy/final/checkpoints/base_perch_s2023.pt +3 -0
  25. legacy/final/checkpoints/base_perch_s256.pt +3 -0
  26. legacy/final/checkpoints/base_perch_s42.pt +3 -0
  27. legacy/final/checkpoints/base_perch_s7.pt +3 -0
  28. legacy/final/checkpoints/base_perch_s777.pt +3 -0
  29. legacy/final/checkpoints/base_perch_s99.pt +3 -0
  30. legacy/final/checkpoints_backup_2voter/arm_birdmae_s1234.pt +3 -0
  31. legacy/final/checkpoints_backup_2voter/arm_birdmae_s2023.pt +3 -0
  32. legacy/final/checkpoints_backup_2voter/arm_birdmae_s42.pt +3 -0
  33. legacy/final/checkpoints_backup_2voter/arm_harmonic_s1234.pt +3 -0
  34. legacy/final/checkpoints_backup_2voter/arm_harmonic_s2023.pt +3 -0
  35. legacy/final/checkpoints_backup_2voter/arm_harmonic_s42.pt +3 -0
  36. legacy/final/checkpoints_backup_2voter/base_perch_s123.pt +3 -0
  37. legacy/final/checkpoints_backup_2voter/base_perch_s1234.pt +3 -0
  38. legacy/final/checkpoints_backup_2voter/base_perch_s2023.pt +3 -0
  39. legacy/final/checkpoints_backup_2voter/base_perch_s256.pt +3 -0
  40. legacy/final/checkpoints_backup_2voter/base_perch_s42.pt +3 -0
  41. legacy/final/checkpoints_backup_2voter/base_perch_s7.pt +3 -0
  42. legacy/final/checkpoints_backup_2voter/base_perch_s777.pt +3 -0
  43. legacy/final/checkpoints_backup_2voter/base_perch_s99.pt +3 -0
  44. legacy/final/checkpoints_backup_2voter/bundle.pt +3 -0
  45. legacy/final/checkpoints_backup_2voter/ensemble.json +74 -0
  46. legacy/final/checkpoints_backup_seenval/base_perch_s123.pt +3 -0
  47. legacy/final/checkpoints_backup_seenval/base_perch_s1234.pt +3 -0
  48. legacy/final/checkpoints_backup_seenval/base_perch_s2023.pt +3 -0
  49. legacy/final/checkpoints_backup_seenval/base_perch_s256.pt +3 -0
  50. legacy/final/checkpoints_backup_seenval/base_perch_s42.pt +3 -0
legacy/final/README.md ADDED
@@ -0,0 +1,174 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # CD-MSC — Best Ensemble (techniques, losses, and how to run)
2
+
3
+ BioDCASE 2026 Task 5 — Cross-Domain Mosquito Species Classification. Optimize **BA_unseen** = mean over the 9
4
+ species of per-species recall on each species' **held-out unseen recording domain** (true leave-one-domain-out).
5
+
6
+ This folder is the self-contained final model: every model/loss/feature definition, all member checkpoints,
7
+ the gate manifest, and a one-command inference script that reproduces test BA_unseen.
8
+
9
+ ---
10
+
11
+ ## 1. The problem the techniques are designed around
12
+
13
+ - 9 species; 5 recording **domains** D1–D5 (devices). **D5 is ~98% of training** (clean studio); D1–D4 are
14
+ small and shifted. Each species is **tested on a domain it was never trained on** (LODO).
15
+ - The domain shift is a **spectral-envelope EQ tilt**: it re-colors the overall spectrum but **preserves the
16
+ harmonic comb / wingbeat fundamental f0**. No information is destroyed — it is a *style* shift.
17
+ - Failure mode without DG: the model latches onto the device "style" as a shortcut → collapses on unseen
18
+ domains (especially the studio→D1 transfer, where the envelope inverts).
19
+
20
+ Two structural walls cap any model near ~0.40–0.45 (oracle): (a) the **movers** gambiae/arabiensis/quinque are
21
+ 100% D5-trained but tested on D1 (no in-domain anchor); (b) **dirus** has 0 D5 clips; (c) validation is 99.4%
22
+ D5, so you cannot model-select for the unseen regime.
23
+
24
+ ---
25
+
26
+ ## 2. Representations (frozen embeddings — no encoder is fine-tuned)
27
+
28
+ | member | embedding | dim | why |
29
+ |---|---|---|---|
30
+ | `base_perch` | **Perch v2** (Google bird-vocalization model, frozen) | 1536 | strongest general bioacoustic encoder here |
31
+ | `arm_harmonic` | **physics harmonic feature** (`harmonic_features.py`) | 102 | device-INVARIANT by construction (comb/f0) |
32
+ | `arm_birdmae` | **BirdMAE** (frozen) | 1024 | independent FM; agrees with harmonic on Aedes |
33
+ | `arm_bgwhiten` | **background-whitened spectrum** (`bgwhiten_features.py`) | 257 | device channel estimated from the clip's background frames and subtracted; 3rd independent device-invariant voter |
34
+
35
+ The harmonic feature = liftered cepstrum (drops the low-quefrency EQ envelope, keeps the pitch band) + f0/
36
+ harmonic ratios on the whitened spectrum. Perch's fine-tuning is impossible (it ships as a jax2tf SavedModel
37
+ with gradients disabled), so all members are **frozen embedding + trainable probe**.
38
+
39
+ ---
40
+
41
+ ## 3. Probe architectures (`model.py`)
42
+
43
+ - **RP** (Perch, BirdMAE): input LayerNorm → Linear(d→256) → 2× Pre-LN residual block (LN→Linear(4×,GELU)→
44
+ Dropout→Linear→+residual) → LayerNorm → species head (9) + auxiliary domain head (5).
45
+ - **HarmNet** (harmonic): LN → Linear(102→128) → GELU → Dropout → Linear(128→64) → LN → species + domain heads.
46
+
47
+ ---
48
+
49
+ ## 4. Training techniques & losses (`losses.py`)
50
+
51
+ Per-member objective (every member, same recipe):
52
+
53
+ ```
54
+ L = CE(species)
55
+ + 0.01 * CE(domain) # auxiliary domain head (plain aux, not adversarial)
56
+ + 0.50 * genus_aux # hierarchical Aedes/Culex/Anopheles consistency
57
+ + 0.50 * supcon(T=0.10) # supervised contrastive on the L2-normalized embedding
58
+ + 1.00 * coral # Deep CORAL — align per-domain covariances
59
+ + 0.25 * mmd # multi-kernel Gaussian MMD — align per-domain distributions <-- THE lever
60
+ ```
61
+
62
+ - **MMD (0.25)** is the single most important knob: aligning the per-domain embedding distributions lifted
63
+ BA_unseen ~0.25 → ~0.33. The weight 0.25 is the measured optimum (a sweep peak); 0.0→0.245, 0.1→0.31,
64
+ 0.25→0.33, 0.5→0.30, 0.75→0.28.
65
+ - **CORAL** complements MMD (second-order alignment).
66
+ - **genus_aux** keeps cross-genus structure correct (so Aedes/Culex aren't mislabeled Anopheles).
67
+ - **SupCon** (L2-normalized; an earlier L1 bug made it inert) — small positive.
68
+ - Domain head at 0.01 is a *plain* classifier (DANN/gradient-reversal was tried, ~neutral).
69
+
70
+ ### Augmentations (in `model.py`, active only in `.train()`)
71
+ - **Embedding Gaussian noise** σ=0.05 (RP) / 0.03 (HarmNet).
72
+ - **Feature channel-dropout** p=0.1 (RP).
73
+ - *Tested and dropped (within noise / negative):* class-mixup (slightly hurts), domain-mixup (≈neutral),
74
+ DicL contrastive (hurts), forward EQ-augmentation (neutral), MixStyle, genus-gated MoE (hurts).
75
+
76
+ ### Optimization / selection
77
+ - AdamW, lr 3e-4, cosine schedule + 5% warmup, weight decay 1e-4, batch 512.
78
+ - Base: **30 epochs**; arms: 20 epochs. **Uniform** sampling.
79
+ - Checkpoint selection on **seen-val species balanced accuracy** (never the test set).
80
+ - Per member: ensemble over seeds by **softmax averaging** (base 8 seeds, each arm 3 seeds).
81
+
82
+ ---
83
+
84
+ ## 5. The ensemble + the UNANIMOUS-3 AGREEMENT GATE (the headline technique)
85
+
86
+ Each member is a seed-ensemble. The final prediction:
87
+
88
+ ```
89
+ pred = base_perch_ensemble
90
+ EXCEPT on clips where harmonic.argmax == birdmae.argmax == bgwhiten.argmax == c AND min(all 3 confs) > tau:
91
+ there, override with mean(harmonic, birdmae, bgwhiten)
92
+ ```
93
+
94
+ - **Why it works:** the studio→D1 EQ shift inverts Perch's envelope (Perch lands *below chance* on D5→D1),
95
+ while the device-invariant reps survive. Both harmonic and BirdMAE independently nail **aegypti** (Aedes,
96
+ distinct wingbeat: harmonic 0.90, BirdMAE 0.93 vs Perch 0.43), so the agreement captures aegypti (0.43→~0.81).
97
+ - **The 3rd voter is a precision VETO (this is what raised the score).** A *two*-voter gate (harmonic+birdmae)
98
+ over-fires: it overrides true **mover** clips (arabiensis/quinque) toward aegypti — the metric-aware cost.
99
+ Adding the **background-whitened** spectrum as a *third independent device-invariant voter*, and requiring
100
+ **unanimous** agreement, makes the gate fire only when it is really safe. It keeps aegypti high **and stops
101
+ sacrificing the movers**: arabiensis 0.148→0.192, quinque 0.140→0.196. The bgwhiten voter need not predict
102
+ the movers itself — it simply *vetoes the bad overrides*. Net **+0.02 over the 2-voter gate**, and the gain
103
+ is on the LARGE-n unseen partitions (arabiensis 1820, quinque 672 clips), LOSO-stable across seeds.
104
+ - `tau` is the only knob, selected on seen-val → deployable, no test-set tuning.
105
+ - **Honest caveat:** it still cannot *separate* the *An. gambiae* complex (gambiae/arabiensis share wingbeat
106
+ f0); gambiae stays floored. The win is recovering the movers the 2-voter gate was throwing away.
107
+
108
+ The exact numbers (base, 2-voter, unanimous-3 BA_unseen, tau, per-species) are in `ensemble.json` and printed
109
+ by `infer.py`. The previous 2-voter package is preserved in `checkpoints_backup_2voter/`.
110
+
111
+ ---
112
+
113
+ ## 6. Files
114
+
115
+ ```
116
+ final/
117
+ README.md <- this file
118
+ model.py <- RP, HarmNet, ResidualBlock
119
+ losses.py <- CE/genus/SupCon/MMD/CORAL + total_loss (the recipe)
120
+ harmonic_features.py <- raw audio -> 102-d device-invariant harmonic feature
121
+ bgwhiten_features.py <- raw audio -> 257-d background-whitened spectrum (3rd voter)
122
+ infer.py <- load checkpoints + cached embeddings -> unanimous-3 gated BA_unseen
123
+ ensemble_model.py <- GatedEnsemble: one object loads bundle.pt and applies the 3-voter gate
124
+ bundle_ensemble.py <- packs all 19 checkpoints + gate tau into bundle.pt
125
+ ensemble.json <- member list, gate tau, results
126
+ checkpoints/
127
+ base_perch_s{1234,42,2023,7,99,123,256,777}.pt (8)
128
+ arm_harmonic_s{1234,42,2023}.pt (3)
129
+ arm_birdmae_s{1234,42,2023}.pt (3)
130
+ arm_bgwhiten_s{1234,42,2023,7,99}.pt (5)
131
+ checkpoints_backup_2voter/ <- the previous 2-voter package (revertable)
132
+ ```
133
+
134
+ Each `.pt` holds: `model_state_dict`, standardization `mean`/`std`, `modality`, `arch`, `feature_dim`,
135
+ `seed`, `val_ba`, `test_ba_unseen`.
136
+
137
+ ## 7. Run
138
+
139
+ ```bash
140
+ # reproduces test BA_unseen from the per-member checkpoints + cached embeddings
141
+ python final/infer.py
142
+ ```
143
+
144
+ ### Single-file ensemble checkpoint (all 14 members + gate in one object)
145
+ ```bash
146
+ python final/bundle_ensemble.py # packs checkpoints/ -> final/bundle.pt (~85 MB, 19 members)
147
+ ```
148
+ ```python
149
+ from ensemble_model import GatedEnsemble
150
+ ens = GatedEnsemble("final/bundle.pt") # one object = whole ensemble + gate
151
+ probs = ens.predict_proba(perch_emb, harmonic_feat, birdmae_emb, bgwhiten_feat) # (N,9) gated probabilities
152
+ labels = probs.argmax(1) # species 0..8
153
+ # ens.member_probs(...) returns the 4 pre-gate group probabilities if you want to inspect the gate.
154
+ ```
155
+ `bundle.pt` holds every member's weights + standardization stats + the gate tau, so it is the single
156
+ "checkpoint with the ensemble." It reproduces gated BA_unseen = 0.3616.
157
+
158
+ For new raw audio: produce Perch (1536-d) and BirdMAE (1024-d) embeddings with those frozen models, the 102-d
159
+ harmonic feature via `harmonic_features.harmonic_feature_from_path(wav)`, and the 257-d background-whitened
160
+ spectrum via `bgwhiten_features.bgwhiten_feature_from_path(wav)`, then feed each to its member checkpoints and
161
+ apply the unanimous-3 gate (see `infer.py`).
162
+
163
+ ---
164
+
165
+ ## 8. Results & honesty
166
+
167
+ - Best deployable: **unanimous-3 gated ensemble = 0.3616** (base 0.3178; 2-voter 0.3411; +0.020 from the
168
+ background-whitened 3rd voter). LOSO-stable; gains on the large-n movers (arabiensis 0.148→0.192, quinque
169
+ 0.140→0.196) plus aegypti (0.81).
170
+ - Two levers found beyond the MMD/CORAL recipe: (1) the agreement gate, (2) the **background-whitened 3rd
171
+ voter** that turns the gate unanimous and stops it sacrificing the movers. sl-BEATs, HumBug (mosquito CNN),
172
+ CLAP/BioLingual were all tested and did NOT help; CQT helped the kill-test but not the gated metric.
173
+ - The remaining floor is **data/biology-bound**: nothing separates gambiae/arabiensis (acoustically identical
174
+ congeners) without an in-domain anchor the splits don't provide. gambiae stays ~0.05.
legacy/final/__pycache__/bgwhiten_features.cpython-312.pyc ADDED
Binary file (3.69 kB). View file
 
legacy/final/__pycache__/ensemble_model.cpython-312.pyc ADDED
Binary file (6.42 kB). View file
 
legacy/final/__pycache__/harmonic_features.cpython-312.pyc ADDED
Binary file (5.52 kB). View file
 
legacy/final/__pycache__/model.cpython-312.pyc ADDED
Binary file (6.49 kB). View file
 
legacy/final/__pycache__/predict_eval.cpython-312.pyc ADDED
Binary file (15 kB). View file
 
legacy/final/__pycache__/predict_eval_baseline.cpython-312.pyc ADDED
Binary file (13.5 kB). View file
 
legacy/final/bgwhiten_features.py ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Background-whitened spectrum feature (257-d) — the 3rd gate voter's input.
2
+
3
+ Idea: a recording's DEVICE channel (EQ tilt + noise floor) is revealed by its non-mosquito BACKGROUND frames.
4
+ Estimate that channel from the low-energy frames and SUBTRACT it from the mean mosquito-frame log-spectrum ->
5
+ a device-invariant 'clean' spectrum. This is the strongest device-invariant species signal we measured on the
6
+ catastrophic studio->field (D5->D1) transfer (cross-domain 0.530 vs Perch 0.140), and as a 3rd unanimous-gate
7
+ voter it vetoes bad overrides and recovers the movers.
8
+
9
+ from bgwhiten_features import bgwhiten_feature, bgwhiten_feature_from_path
10
+ w = bgwhiten_feature(y) # y: mono waveform; -> (257,) float32
11
+ w = bgwhiten_feature_from_path("x.wav") # load + extract
12
+ """
13
+ import numpy as np
14
+ import librosa, soundfile as sf
15
+
16
+ SR = 16000; DUR = 1.0; NS = int(SR * DUR); N_FFT = 512; HOP = 128
17
+ BG_Q = 0.30 # background = lowest 30% energy frames (device channel estimate)
18
+ FG_Q = 0.50 # foreground = top 50% energy frames (mosquito present)
19
+ BGW_DIM = N_FFT // 2 + 1 # 257
20
+
21
+
22
+ def load_wav(path):
23
+ y, sr = sf.read(path)
24
+ if y.ndim > 1: y = y.mean(1)
25
+ y = y.astype(np.float32)
26
+ if sr != SR: y = librosa.resample(y, orig_sr=sr, target_sr=SR)
27
+ y = y[:NS] if len(y) >= NS else np.pad(y, (0, NS - len(y)))
28
+ m = np.abs(y).max(); return y / m if m > 0 else y
29
+
30
+
31
+ def bgwhiten_feature(y):
32
+ """Mono waveform (any length; trimmed/padded to 1 s) -> 257-d background-whitened log-spectrum."""
33
+ if len(y) < N_FFT: y = np.pad(y, (0, N_FFT - len(y)))
34
+ S = np.abs(librosa.stft(y, n_fft=N_FFT, hop_length=HOP)) + 1e-8
35
+ logS = np.log(S); e = S.sum(0); T = S.shape[1]
36
+ bg = np.argsort(e)[:max(3, int(BG_Q * T))] # quietest frames = device channel
37
+ fg = np.argsort(e)[::-1][:max(3, int(FG_Q * T))] # loudest frames = mosquito
38
+ return (logS[:, fg].mean(1) - logS[:, bg].mean(1)).astype(np.float32)
39
+
40
+
41
+ def bgwhiten_feature_from_path(path):
42
+ return bgwhiten_feature(load_wav(path))
legacy/final/bundle.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:02f9e6d23f20eb4e43a777aa6acf9a17e1209d0452fe51bf9d44c56ec005cbf1
3
+ size 85342253
legacy/final/bundle_ensemble.py ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Pack the 14 per-member checkpoints + gate config into ONE file: final/bundle.pt.
2
+ Load it with: GatedEnsemble("final/bundle.pt"). Run: python final/bundle_ensemble.py
3
+ """
4
+ import os, sys, glob, json
5
+ import torch
6
+ HERE = os.path.dirname(os.path.abspath(__file__)); CKPT = os.path.join(HERE, "checkpoints")
7
+ man = json.load(open(os.path.join(HERE, "ensemble.json")))
8
+
9
+ bundle = {"tau": man["gate"]["tau"], "members": {},
10
+ "meta": {"pipeline": man["pipeline"], "description": man["description"],
11
+ "results": man["results"], "feature_dims": man["feature_dims"]}}
12
+ n = 0
13
+ for group in ("base_perch", "arm_harmonic", "arm_birdmae", "arm_bgwhiten"):
14
+ bundle["members"][group] = []
15
+ for cp in sorted(glob.glob(os.path.join(CKPT, f"{group}_s*.pt"))):
16
+ st = torch.load(cp, map_location="cpu", weights_only=False)
17
+ bundle["members"][group].append({
18
+ "state": st["model_state_dict"], "mean": st["mean"], "std": st["std"],
19
+ "standardize": st["standardize"], "arch": st["arch"], "feature_dim": st["feature_dim"],
20
+ "seed": st["seed"]})
21
+ n += 1
22
+ out = os.path.join(HERE, "bundle.pt")
23
+ torch.save(bundle, out)
24
+ mb = os.path.getsize(out) / 1e6
25
+ print(f"bundled {n} member checkpoints + gate(tau={bundle['tau']}) -> {out} ({mb:.1f} MB)")
26
+ print("groups:", {g: len(v) for g, v in bundle["members"].items()})
legacy/final/checkpoints/arm_bgwhiten_s1234.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6ef53039e3e4b73780ea26cdcd1f1c396885df707c45c05f83d187a73380545c
3
+ size 4502101
legacy/final/checkpoints/arm_bgwhiten_s2023.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f1e88991ab12b71159ea222bcfe0cf824b8c226fd53471f461c2df8cb2feac14
3
+ size 4502101
legacy/final/checkpoints/arm_bgwhiten_s42.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9c9dde138a978758e481511c5ef817bd53da87b81ff5e02f490ab5cd1ac59d53
3
+ size 4502045
legacy/final/checkpoints/arm_bgwhiten_s7.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e799f1073610ca7de3f118b357912efb742c50930dc87b1456215fe54a992114
3
+ size 4502017
legacy/final/checkpoints/arm_bgwhiten_s99.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:47e7b8a57616a9dc4988a4e6e7256ac117b4c39e14c54dc798cab8da50dcde89
3
+ size 4502045
legacy/final/checkpoints/arm_birdmae_s1234.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:96068fbe76aae1f47fcf0a631f9d2317e9b1f31441f4a6ebfb50affe251ff712
3
+ size 5302713
legacy/final/checkpoints/arm_birdmae_s2023.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3c305e2bb41333897e8be6b43fa8430982d6b9f1ff327ebdcd34814656451830
3
+ size 5302713
legacy/final/checkpoints/arm_birdmae_s42.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d72e97e52b31554cb1db42d7028af5187fbc644cbf40a934747b7f8dd4037f0a
3
+ size 5302657
legacy/final/checkpoints/arm_harmonic_s1234.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:28614528dbbe6eefbe8b6e64c6f0e0e73bda280797ce54d885d9e334e152e5ed
3
+ size 96901
legacy/final/checkpoints/arm_harmonic_s2023.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:960ed67d5bc0fc96d49ad373020387fcd3ce248f9b2f827695f5b86cbdb5b021
3
+ size 96901
legacy/final/checkpoints/arm_harmonic_s42.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a6e3e7c73e06808149ce226c8dd558b6f44c16b2672ad09d6cfec45ad7a22b7e
3
+ size 96801
legacy/final/checkpoints/base_perch_s123.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b2447bb132bac1e6f8e4a08791b9093ae07146521edf56fba6adf80c4327770b
3
+ size 5832833
legacy/final/checkpoints/base_perch_s1234.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d2e753aba405627f5b3413f926d096a208735699d6d3cfe4d7780ddacf6db7c1
3
+ size 5832861
legacy/final/checkpoints/base_perch_s2023.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:166ca097b8a1dc83e8ca38dfea054d968a96a460bbbd688eeb8ec14e529a58aa
3
+ size 5832861
legacy/final/checkpoints/base_perch_s256.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:45d1a064959c8c2d5710b19066c6262d417f06361f43a49203860dbf44993409
3
+ size 5832833
legacy/final/checkpoints/base_perch_s42.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5256eb6cf121f5ce843cc476d87dec8bae50a7dcab17982fd51f0716e47db36c
3
+ size 5832805
legacy/final/checkpoints/base_perch_s7.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9d09ec9bb2fbdb62e13789574611f1aa34bceee461e993f42884da408f78ed50
3
+ size 5832777
legacy/final/checkpoints/base_perch_s777.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:543ad5fdf750ad863355cbada7e83f2973c7abea58ee2db27021d2c88a4d1d51
3
+ size 5832833
legacy/final/checkpoints/base_perch_s99.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:62f361355f32327de0d1341807701e798a17df6da43e77a54f35ccf5236fa262
3
+ size 5832805
legacy/final/checkpoints_backup_2voter/arm_birdmae_s1234.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:96068fbe76aae1f47fcf0a631f9d2317e9b1f31441f4a6ebfb50affe251ff712
3
+ size 5302713
legacy/final/checkpoints_backup_2voter/arm_birdmae_s2023.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3c305e2bb41333897e8be6b43fa8430982d6b9f1ff327ebdcd34814656451830
3
+ size 5302713
legacy/final/checkpoints_backup_2voter/arm_birdmae_s42.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d72e97e52b31554cb1db42d7028af5187fbc644cbf40a934747b7f8dd4037f0a
3
+ size 5302657
legacy/final/checkpoints_backup_2voter/arm_harmonic_s1234.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:28614528dbbe6eefbe8b6e64c6f0e0e73bda280797ce54d885d9e334e152e5ed
3
+ size 96901
legacy/final/checkpoints_backup_2voter/arm_harmonic_s2023.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:960ed67d5bc0fc96d49ad373020387fcd3ce248f9b2f827695f5b86cbdb5b021
3
+ size 96901
legacy/final/checkpoints_backup_2voter/arm_harmonic_s42.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a6e3e7c73e06808149ce226c8dd558b6f44c16b2672ad09d6cfec45ad7a22b7e
3
+ size 96801
legacy/final/checkpoints_backup_2voter/base_perch_s123.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b2447bb132bac1e6f8e4a08791b9093ae07146521edf56fba6adf80c4327770b
3
+ size 5832833
legacy/final/checkpoints_backup_2voter/base_perch_s1234.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d2e753aba405627f5b3413f926d096a208735699d6d3cfe4d7780ddacf6db7c1
3
+ size 5832861
legacy/final/checkpoints_backup_2voter/base_perch_s2023.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:166ca097b8a1dc83e8ca38dfea054d968a96a460bbbd688eeb8ec14e529a58aa
3
+ size 5832861
legacy/final/checkpoints_backup_2voter/base_perch_s256.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:45d1a064959c8c2d5710b19066c6262d417f06361f43a49203860dbf44993409
3
+ size 5832833
legacy/final/checkpoints_backup_2voter/base_perch_s42.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5256eb6cf121f5ce843cc476d87dec8bae50a7dcab17982fd51f0716e47db36c
3
+ size 5832805
legacy/final/checkpoints_backup_2voter/base_perch_s7.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9d09ec9bb2fbdb62e13789574611f1aa34bceee461e993f42884da408f78ed50
3
+ size 5832777
legacy/final/checkpoints_backup_2voter/base_perch_s777.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:543ad5fdf750ad863355cbada7e83f2973c7abea58ee2db27021d2c88a4d1d51
3
+ size 5832833
legacy/final/checkpoints_backup_2voter/base_perch_s99.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:62f361355f32327de0d1341807701e798a17df6da43e77a54f35ccf5236fa262
3
+ size 5832805
legacy/final/checkpoints_backup_2voter/bundle.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1e100d18ddd5d41f1062ca096b7f3feb7a673712f0b23751282b7a913bed4ce1
3
+ size 62838583
legacy/final/checkpoints_backup_2voter/ensemble.json ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "pipeline": "agreement_gate_ensemble",
3
+ "description": "8-seed Perch base + harmonic arm + BirdMAE arm -> agreement gate",
4
+ "members": {
5
+ "base_perch": {
6
+ "checkpoints": [
7
+ "base_perch_s1234.pt",
8
+ "base_perch_s42.pt",
9
+ "base_perch_s2023.pt",
10
+ "base_perch_s7.pt",
11
+ "base_perch_s99.pt",
12
+ "base_perch_s123.pt",
13
+ "base_perch_s256.pt",
14
+ "base_perch_s777.pt"
15
+ ],
16
+ "modality": "perch",
17
+ "arch": "rp",
18
+ "standardize": false,
19
+ "combine": "softmax-mean",
20
+ "selection": "synthval"
21
+ },
22
+ "arm_harmonic": {
23
+ "checkpoints": [
24
+ "arm_harmonic_s1234.pt",
25
+ "arm_harmonic_s42.pt",
26
+ "arm_harmonic_s2023.pt"
27
+ ],
28
+ "modality": "harmonic",
29
+ "arch": "harm",
30
+ "standardize": true,
31
+ "combine": "softmax-mean"
32
+ },
33
+ "arm_birdmae": {
34
+ "checkpoints": [
35
+ "arm_birdmae_s1234.pt",
36
+ "arm_birdmae_s42.pt",
37
+ "arm_birdmae_s2023.pt"
38
+ ],
39
+ "modality": "birdmae",
40
+ "arch": "rp",
41
+ "standardize": true,
42
+ "combine": "softmax-mean"
43
+ }
44
+ },
45
+ "gate": {
46
+ "type": "agreement",
47
+ "rule": "override base where harm.argmax==birdmae.argmax and min(conf)>tau",
48
+ "tau": 0.4,
49
+ "override": "0.5*(harm+birdmae)"
50
+ },
51
+ "results": {
52
+ "base_BA_unseen": 0.3178,
53
+ "gated_BA_unseen": 0.3411,
54
+ "gate_delta": 0.0233,
55
+ "per_species": {
56
+ "aegypti": 0.7969,
57
+ "albopictus": 0.3675,
58
+ "quinquefasciatus": 0.1399,
59
+ "gambiae": 0.0452,
60
+ "arabiensis": 0.1478,
61
+ "dirus": 0.0,
62
+ "pipiens": 0.8824,
63
+ "minimus": 0.6364,
64
+ "stephensi": 0.0541
65
+ },
66
+ "selector": "synth-shift val (analysis/test_selection.py); seen-val variant in checkpoints_backup_seenval/"
67
+ },
68
+ "git_commit": "9b54ec6",
69
+ "feature_dims": {
70
+ "perch": 1536,
71
+ "harmonic": 102,
72
+ "birdmae": 1024
73
+ }
74
+ }
legacy/final/checkpoints_backup_seenval/base_perch_s123.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4d6f729c7caa045b2904a768cd45a9d1442e8f0dfac2b6983a52f3a32bcd5faf
3
+ size 5832833
legacy/final/checkpoints_backup_seenval/base_perch_s1234.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aca1b63836f175527bc1203c734ef2b53c1a6ccc970308f06f5da6f5a48d3ce5
3
+ size 5832861
legacy/final/checkpoints_backup_seenval/base_perch_s2023.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7fea9f727845497c3fa2ef73fb748e47a13954afc97b8e8d1258b02af2a04868
3
+ size 5832861
legacy/final/checkpoints_backup_seenval/base_perch_s256.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:99b047654a78cf7e4d11c2bba156c3093358c15d8fddc311dc693b5ee383d615
3
+ size 5832833
legacy/final/checkpoints_backup_seenval/base_perch_s42.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b576050da34227ffda8f8f0e36f4c99a8df6417b066aef69c96f7df7393050ab
3
+ size 5832805