MilesCranmer commited on
Commit
31a4779
2 Parent(s): b4e0cde c7f3dc8

Merge pull request #111 from MilesCranmer/deepsource-transform-02a818ce

Browse files
Files changed (1) hide show
  1. benchmarks/hyperparamopt.py +4 -2
benchmarks/hyperparamopt.py CHANGED
@@ -163,7 +163,9 @@ space = dict(
163
  # weightSimplify=0.002,
164
  weightSimplify=hp.choice("weightSimplify", [0.002]), # One of these is fixed.
165
  # crossoverProbability=0.01,
166
- crossoverProbability=hp.loguniform("crossoverProbability", np.log(0.00001), np.log(0.2)),
 
 
167
  # perturbationFactor=1.0,
168
  perturbationFactor=hp.loguniform("perturbationFactor", np.log(0.0001), np.log(100)),
169
  # maxsize=20,
@@ -182,7 +184,7 @@ space = dict(
182
  tournament_selection_p=hp.uniform("tournament_selection_p", 0.0, 1.0),
183
  )
184
 
185
- rand_between = lambda lo, hi: (np.random.rand()*(hi - lo) + lo)
186
 
187
  init_vals = [
188
  dict(
 
163
  # weightSimplify=0.002,
164
  weightSimplify=hp.choice("weightSimplify", [0.002]), # One of these is fixed.
165
  # crossoverProbability=0.01,
166
+ crossoverProbability=hp.loguniform(
167
+ "crossoverProbability", np.log(0.00001), np.log(0.2)
168
+ ),
169
  # perturbationFactor=1.0,
170
  perturbationFactor=hp.loguniform("perturbationFactor", np.log(0.0001), np.log(100)),
171
  # maxsize=20,
 
184
  tournament_selection_p=hp.uniform("tournament_selection_p", 0.0, 1.0),
185
  )
186
 
187
+ rand_between = lambda lo, hi: (np.random.rand() * (hi - lo) + lo)
188
 
189
  init_vals = [
190
  dict(