v1nayh3g/milkyway-cluster-active-learning
Viewer β’ Updated β’ 296 β’ 27
A compact 5-member SiLU ensemble trained with active learning on 100 Milky-Way-orbiting star clusters
(1,000 stars each, 80 Myr). Given (Q0, r0_pc, R_gal_kpc), it predicts 16 evolved radial profile bins
(enclosed mass + 1D velocity dispersion) along with separate epistemic and aleatoric standard deviations
in 0.13 ms on CPU.
v1nayh3g/active-gravity-surrogatev1nayh3g/milkyway-cluster-active-learning| Method | GPU Runs | Standardized RMSE | Mean RΒ² |
|---|---|---|---|
| Linear OLS | 100 | 0.535 | 0.714 |
| E(3)-Invariant Particle GNN | 100 | 0.573 | 0.672 |
| Random LHS Ensemble | 100 | 0.395 | 0.844 |
| Active Learning Ensemble | 25 | 0.381 | 0.855 |
| Active Learning Ensemble | 50 | 0.311 | 0.903 |
| Active Learning Ensemble | 100 | 0.320 | 0.898 |
import json, numpy as np
from huggingface_hub import hf_hub_download
path = hf_hub_download("v1nayh3g/active-gravity-surrogate", "browser_surrogate.json")
net = json.load(open(path))
def silu(x): return x / (1.0 + np.exp(-x))
x = np.array([0.85, 2.0, 8.1]) # [Q0, r0_pc, R_gal_kpc]
xn = (x - np.array(net["x_mean"])) / np.array(net["x_std"])
preds = []
for m in net["members"]:
h = silu(np.array(m["w0"]) @ xn + np.array(m["b0"]))
h = silu(np.array(m["w1"]) @ h + np.array(m["b1"]))
preds.append(np.array(m["w_mu"]) @ h + np.array(m["b_mu"]))
mean_phys = np.mean(preds, axis=0) * np.array(net["y_std"]) + np.array(net["y_mean"])
print("Radial enclosed log10(M+1):", np.round(mean_phys[:8], 2))
print("Radial sigma_v (km/s): ", np.round(mean_phys[8:], 2))