Spaces:
Sleeping
Sleeping
Commit
·
fc4cdae
1
Parent(s):
80fecb9
Correct function name with internal naming scheme
Browse files- pysr/sr.py +2 -2
pysr/sr.py
CHANGED
|
@@ -27,7 +27,7 @@ from .julia_helpers import (
|
|
| 27 |
is_julia_version_greater_eq,
|
| 28 |
_escape_filename,
|
| 29 |
_add_sr_to_julia_project,
|
| 30 |
-
|
| 31 |
)
|
| 32 |
from .export_numpy import CallableEquation
|
| 33 |
from .export_latex import generate_single_table, generate_multiple_tables, to_latex
|
|
@@ -1455,7 +1455,7 @@ class PySRRegressor(MultiOutputMixin, RegressorMixin, BaseEstimator):
|
|
| 1455 |
_add_sr_to_julia_project(Main, io_arg)
|
| 1456 |
Main.eval(f"Pkg.resolve({io_arg})")
|
| 1457 |
except (JuliaError, RuntimeError) as e:
|
| 1458 |
-
raise ImportError(
|
| 1459 |
Main.eval("using SymbolicRegression")
|
| 1460 |
|
| 1461 |
Main.plus = Main.eval("(+)")
|
|
|
|
| 27 |
is_julia_version_greater_eq,
|
| 28 |
_escape_filename,
|
| 29 |
_add_sr_to_julia_project,
|
| 30 |
+
_import_error_string,
|
| 31 |
)
|
| 32 |
from .export_numpy import CallableEquation
|
| 33 |
from .export_latex import generate_single_table, generate_multiple_tables, to_latex
|
|
|
|
| 1455 |
_add_sr_to_julia_project(Main, io_arg)
|
| 1456 |
Main.eval(f"Pkg.resolve({io_arg})")
|
| 1457 |
except (JuliaError, RuntimeError) as e:
|
| 1458 |
+
raise ImportError(_import_error_string(julia_project)) from e
|
| 1459 |
Main.eval("using SymbolicRegression")
|
| 1460 |
|
| 1461 |
Main.plus = Main.eval("(+)")
|