Spaces:
Sleeping
Sleeping
MilesCranmer
commited on
Commit
•
0a59d77
1
Parent(s):
d4b1969
Remove unneeded random string in filename
Browse files- pysr/sr.py +3 -5
pysr/sr.py
CHANGED
@@ -228,8 +228,6 @@ def pysr(X=None, y=None, weights=None,
|
|
228 |
if populations is None:
|
229 |
populations = procs
|
230 |
|
231 |
-
rand_string = f'{"".join([str(np.random.rand())[2] for i in range(20)])}'
|
232 |
-
|
233 |
if isinstance(binary_operators, str): binary_operators = [binary_operators]
|
234 |
if isinstance(unary_operators, str): unary_operators = [unary_operators]
|
235 |
|
@@ -255,9 +253,9 @@ def pysr(X=None, y=None, weights=None,
|
|
255 |
operator_filename = pkg_directory / "operators.jl"
|
256 |
|
257 |
tmpdir = Path(tempfile.mkdtemp(dir=tempdir))
|
258 |
-
hyperparam_filename = tmpdir / f'.
|
259 |
-
dataset_filename = tmpdir / f'.
|
260 |
-
runfile_filename = tmpdir / f'.
|
261 |
|
262 |
def_hyperparams = ""
|
263 |
|
|
|
228 |
if populations is None:
|
229 |
populations = procs
|
230 |
|
|
|
|
|
231 |
if isinstance(binary_operators, str): binary_operators = [binary_operators]
|
232 |
if isinstance(unary_operators, str): unary_operators = [unary_operators]
|
233 |
|
|
|
253 |
operator_filename = pkg_directory / "operators.jl"
|
254 |
|
255 |
tmpdir = Path(tempfile.mkdtemp(dir=tempdir))
|
256 |
+
hyperparam_filename = tmpdir / f'hyperparams.jl'
|
257 |
+
dataset_filename = tmpdir / f'dataset.jl'
|
258 |
+
runfile_filename = tmpdir / f'runfile.jl'
|
259 |
|
260 |
def_hyperparams = ""
|
261 |
|