Spaces:
Running
Running
pre-commit-ci[bot]
commited on
Commit
•
1413838
1
Parent(s):
e9b2ee8
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files- pysr/julia_extensions.py +4 -2
- pysr/sr.py +1 -1
pysr/julia_extensions.py
CHANGED
@@ -12,7 +12,8 @@ def load_required_packages(*, turbo=False, enable_autodiff=False):
|
|
12 |
|
13 |
|
14 |
def load_package(package_name):
|
15 |
-
jl.seval(
|
|
|
16 |
try
|
17 |
using {package_name}
|
18 |
catch e
|
@@ -21,5 +22,6 @@ def load_package(package_name):
|
|
21 |
Pkg.add("{package_name}")
|
22 |
using {package_name}
|
23 |
end
|
24 |
-
"""
|
|
|
25 |
return None
|
|
|
12 |
|
13 |
|
14 |
def load_package(package_name):
|
15 |
+
jl.seval(
|
16 |
+
f"""
|
17 |
try
|
18 |
using {package_name}
|
19 |
catch e
|
|
|
22 |
Pkg.add("{package_name}")
|
23 |
using {package_name}
|
24 |
end
|
25 |
+
"""
|
26 |
+
)
|
27 |
return None
|
pysr/sr.py
CHANGED
@@ -1609,7 +1609,7 @@ class PySRRegressor(MultiOutputMixin, RegressorMixin, BaseEstimator):
|
|
1609 |
load_required_packages(
|
1610 |
turbo=turbo,
|
1611 |
enable_autodiff=enable_autodiff,
|
1612 |
-
cluster_manager=cluster_manager
|
1613 |
)
|
1614 |
|
1615 |
mutation_weights = SymbolicRegression.MutationWeights(
|
|
|
1609 |
load_required_packages(
|
1610 |
turbo=turbo,
|
1611 |
enable_autodiff=enable_autodiff,
|
1612 |
+
cluster_manager=cluster_manager,
|
1613 |
)
|
1614 |
|
1615 |
mutation_weights = SymbolicRegression.MutationWeights(
|