MilesCranmer commited on
Commit
b66d8de
1 Parent(s): 0124505

Typo in debugging

Browse files
Files changed (1) hide show
  1. eureqa.py +2 -2
eureqa.py CHANGED
@@ -71,13 +71,13 @@ def eureqa(X=None, y=None, threads=4, parsimony=1e-3, alpha=10,
71
 
72
  if X is None:
73
  if test == 'simple1':
74
- eval_str = "X[:, 2]**2 + 5*np.cos(X[:, 3]) - 5"
75
  elif test == 'simple2':
76
  eval_str = "np.sign(X[:, 2])*np.abs(X[:, 2])**3.5 + 1/np.abs(X[:, 0])"
77
 
78
  X = np.random.randn(100, 5)*3
79
  y = eval(eval_str)
80
- print("Runing on", eval_str)
81
 
82
  def_hyperparams = f"""
83
  include("operators.jl")
 
71
 
72
  if X is None:
73
  if test == 'simple1':
74
+ eval_str = "np.sign(X[:, 2])*np.abs(X[:, 2])**2.5 + 5*np.cos(X[:, 3]) - 5"
75
  elif test == 'simple2':
76
  eval_str = "np.sign(X[:, 2])*np.abs(X[:, 2])**3.5 + 1/np.abs(X[:, 0])"
77
 
78
  X = np.random.randn(100, 5)*3
79
  y = eval(eval_str)
80
+ print("Running on", eval_str)
81
 
82
  def_hyperparams = f"""
83
  include("operators.jl")