Spaces:
Sleeping
Sleeping
deepsource-autofix[bot]
commited on
Commit
•
c7f3dc8
1
Parent(s):
b4e0cde
Format code with black
Browse filesThis commit fixes the style issues introduced in b4e0cde according to the output
from black.
Details: https://deepsource.io/gh/MilesCranmer/PySR/transform/7ebaec5a-3f6e-4bb3-bd65-6c4d8ba1bb03/
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(
|
|
|
|
|
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(
|