sparsetrace commited on
Commit
85d39f9
·
verified ·
1 Parent(s): 11c937f

Update run_support.py

Browse files
Files changed (1) hide show
  1. run_support.py +2 -10
run_support.py CHANGED
@@ -1,6 +1,8 @@
1
  import numpy as np
2
  import matplotlib.pyplot as plt
3
 
 
 
4
  def plot_3d_phase_multi(
5
  bg: np.ndarray,
6
  truth: np.ndarray,
@@ -84,16 +86,6 @@ def plot_3d_phase_multi(
84
  plt.show()
85
  return None
86
 
87
-
88
- # -----------------------------
89
- # helpers
90
- # -----------------------------
91
- def standardize_global(F_tX: np.ndarray, eps: float = 1e-12):
92
- mu = F_tX.mean(axis=0, keepdims=True)
93
- sd = F_tX.std(axis=0, keepdims=True) + eps
94
- return (F_tX - mu) / sd, mu, sd
95
-
96
-
97
  def make_task(F_test: np.ndarray, a_start: int, ell_ctx: int, steps: int):
98
  """
99
  Returns:
 
1
  import numpy as np
2
  import matplotlib.pyplot as plt
3
 
4
+ from metrics import compare_all_fast_with_curves
5
+
6
  def plot_3d_phase_multi(
7
  bg: np.ndarray,
8
  truth: np.ndarray,
 
86
  plt.show()
87
  return None
88
 
 
 
 
 
 
 
 
 
 
 
89
  def make_task(F_test: np.ndarray, a_start: int, ell_ctx: int, steps: int):
90
  """
91
  Returns: