@@ -523,8 +523,11 @@ class PySRRegressor(MultiOutputMixin, RegressorMixin, BaseEstimator):
523
523
Default gives the Python package directory, where a
524
524
Project.toml file should be present from the install.
525
525
update: bool
526
- Whether to automatically update Julia packages.
527
- Default is `True`.
526
+ Whether to automatically update Julia packages when `fit` is called.
527
+ You should make sure that PySR is up-to-date itself first, as
528
+ the packaged Julia packages may not necessarily include all
529
+ updated dependencies.
530
+ Default is `False`.
528
531
output_jax_format : bool
529
532
Whether to create a 'jax_format' column in the output,
530
533
containing jax-callable functions and the default parameters in
@@ -700,7 +703,7 @@ def __init__(
700
703
tempdir = None ,
701
704
delete_tempfiles = True ,
702
705
julia_project = None ,
703
- update = True ,
706
+ update = False ,
704
707
output_jax_format = False ,
705
708
output_torch_format = False ,
706
709
extra_sympy_mappings = None ,
@@ -1473,7 +1476,10 @@ def _run(self, X, y, mutated_params, weights, seed):
1473
1476
Main .eval (f"Pkg.resolve({ io_arg } )" )
1474
1477
except (JuliaError , RuntimeError ) as e :
1475
1478
raise ImportError (_import_error_string (julia_project )) from e
1476
- Main .eval ("using SymbolicRegression" )
1479
+ try :
1480
+ Main .eval ("using SymbolicRegression" )
1481
+ except (JuliaError , RuntimeError ) as e :
1482
+ raise ImportError (_import_error_string (julia_project )) from e
1477
1483
1478
1484
Main .plus = Main .eval ("(+)" )
1479
1485
Main .sub = Main .eval ("(-)" )
0 commit comments