Spaces:
Sleeping
Sleeping
MilesCranmer
commited on
Commit
•
96afc52
1
Parent(s):
072271b
Delete useless returns
Browse files- pysr/feynman_problems.py +0 -3
pysr/feynman_problems.py
CHANGED
@@ -63,7 +63,6 @@ class FeynmanProblem(Problem):
|
|
63 |
d["log"] = np.log # Quite sure the Feynman dataset has no base 10 logs
|
64 |
d["arcsin"] = np.arcsin
|
65 |
self.y = eval(self.form, d)
|
66 |
-
return
|
67 |
|
68 |
def __str__(self):
|
69 |
return f"Feynman Equation: {self.eq_id}|Form: {self.form}"
|
@@ -153,7 +152,6 @@ def do_feynman_experiments_parallel(
|
|
153 |
writer.writerow(["ID", "Predicted", "True", "Time"])
|
154 |
for i in range(len(ids)):
|
155 |
writer.writerow([ids[i], predictions[i], true_equations[i], time_takens[i]])
|
156 |
-
return
|
157 |
|
158 |
|
159 |
def do_feynman_experiments(
|
@@ -183,4 +181,3 @@ def do_feynman_experiments(
|
|
183 |
writer.writerow(["ID", "Predicted", "True", "Time"])
|
184 |
for i in range(len(ids)):
|
185 |
writer.writerow([ids[i], predictions[i], true_equations[i], time_takens[i]])
|
186 |
-
return
|
|
|
63 |
d["log"] = np.log # Quite sure the Feynman dataset has no base 10 logs
|
64 |
d["arcsin"] = np.arcsin
|
65 |
self.y = eval(self.form, d)
|
|
|
66 |
|
67 |
def __str__(self):
|
68 |
return f"Feynman Equation: {self.eq_id}|Form: {self.form}"
|
|
|
152 |
writer.writerow(["ID", "Predicted", "True", "Time"])
|
153 |
for i in range(len(ids)):
|
154 |
writer.writerow([ids[i], predictions[i], true_equations[i], time_takens[i]])
|
|
|
155 |
|
156 |
|
157 |
def do_feynman_experiments(
|
|
|
181 |
writer.writerow(["ID", "Predicted", "True", "Time"])
|
182 |
for i in range(len(ids)):
|
183 |
writer.writerow([ids[i], predictions[i], true_equations[i], time_takens[i]])
|
|