Spaces:
Running
Running
MilesCranmer
commited on
Commit
•
671509b
1
Parent(s):
e466edc
Clean up unused code
Browse files- pysr/feynman_problems.py +1 -5
pysr/feynman_problems.py
CHANGED
@@ -29,16 +29,12 @@ class FeynmanProblem(Problem):
|
|
29 |
gen: If true the problem will have dp X and y values randomly generated else they will be None
|
30 |
"""
|
31 |
self.eq_id = row['Filename']
|
32 |
-
#self.form = row['Formula']
|
33 |
self.n_vars = int(row['# variables'])
|
34 |
super(FeynmanProblem, self).__init__(None, None, form=row['Formula'],
|
35 |
variable_names=[row[f'v{i + 1}_name'] for i in range(self.n_vars)])
|
36 |
-
#self.var_names = [row[f'v{i+1}_name'] for i in range(self.n_vars)]
|
37 |
self.low = [float(row[f'v{i+1}_low']) for i in range(self.n_vars)]
|
38 |
self.high = [float(row[f'v{i+1}_high']) for i in range(self.n_vars)]
|
39 |
-
self.dp = dp
|
40 |
-
#self.X = None
|
41 |
-
#self.Y = None
|
42 |
if gen:
|
43 |
self.X = np.random.uniform(0.01, 25, size=(self.dp, self.n_vars))
|
44 |
d = {}
|
|
|
29 |
gen: If true the problem will have dp X and y values randomly generated else they will be None
|
30 |
"""
|
31 |
self.eq_id = row['Filename']
|
|
|
32 |
self.n_vars = int(row['# variables'])
|
33 |
super(FeynmanProblem, self).__init__(None, None, form=row['Formula'],
|
34 |
variable_names=[row[f'v{i + 1}_name'] for i in range(self.n_vars)])
|
|
|
35 |
self.low = [float(row[f'v{i+1}_low']) for i in range(self.n_vars)]
|
36 |
self.high = [float(row[f'v{i+1}_high']) for i in range(self.n_vars)]
|
37 |
+
self.dp = dp
|
|
|
|
|
38 |
if gen:
|
39 |
self.X = np.random.uniform(0.01, 25, size=(self.dp, self.n_vars))
|
40 |
d = {}
|