sparsetrace commited on
Commit
693c63e
·
verified ·
1 Parent(s): 0b6eb3e

Update run_support.py

Browse files
Files changed (1) hide show
  1. run_support.py +19 -0
run_support.py CHANGED
@@ -3,6 +3,25 @@ import matplotlib.pyplot as plt
3
 
4
  from metrics import compare_all_fast_with_curves
5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  def standardize_global(F_tX: np.ndarray, eps: float = 1e-12):
7
  mu = F_tX.mean(axis=0, keepdims=True)
8
  sd = F_tX.std(axis=0, keepdims=True) + eps
 
3
 
4
  from metrics import compare_all_fast_with_curves
5
 
6
+ COLORS = {
7
+ "ALSA": "C0", # blue
8
+ "LISA": "C3", # red
9
+ }
10
+
11
+ METRICS = {
12
+ "MSE": ["mse", "MSE", "mse_mean"],
13
+ "Spectral (JS/KL)": ["spectral_kl", "spectral_js", "spectral_div", "spec_kl", "spectral"],
14
+ "ACF-MSE": ["acf_mse", "acf_l2", "acf_err", "acf"],
15
+ "MMD$^2$ (RFF)": ["mmd2_rff", "mmd_rff", "mmd2", "mmd"],
16
+ }
17
+
18
+ styles = {
19
+ "Truth": dict(color="k", lw=2.3, ls="-"),
20
+ "NLSA": dict(color="0.2", lw=2.0, ls="--"),
21
+ "ALSA": dict(color=COLORS["ALSA"], lw=2.0, ls="-.", alpha=0.95),
22
+ "LISA": dict(color=COLORS["LISA"], lw=2.1, ls=":", alpha=0.95),
23
+ }
24
+
25
  def standardize_global(F_tX: np.ndarray, eps: float = 1e-12):
26
  mu = F_tX.mean(axis=0, keepdims=True)
27
  sd = F_tX.std(axis=0, keepdims=True) + eps