Spaces:
Running
Running
Commit
·
2ff5ae9
1
Parent(s):
3dafb8f
Skip coverage of deprecated functions
Browse files- pysr/sr.py +5 -5
pysr/sr.py
CHANGED
|
@@ -111,7 +111,7 @@ sympy_mappings = {
|
|
| 111 |
}
|
| 112 |
|
| 113 |
|
| 114 |
-
def pysr(X, y, weights=None, **kwargs):
|
| 115 |
warnings.warn(
|
| 116 |
"Calling `pysr` is deprecated. Please use `model = PySRRegressor(**params); model.fit(X, y)` going forward.",
|
| 117 |
DeprecationWarning,
|
|
@@ -221,25 +221,25 @@ def _escape_filename(filename):
|
|
| 221 |
return str_repr
|
| 222 |
|
| 223 |
|
| 224 |
-
def best(*args, **kwargs):
|
| 225 |
raise NotImplementedError(
|
| 226 |
"`best` has been deprecated. Please use the `PySRRegressor` interface. After fitting, you can return `.sympy()` to get the sympy representation of the best equation."
|
| 227 |
)
|
| 228 |
|
| 229 |
|
| 230 |
-
def best_row(*args, **kwargs):
|
| 231 |
raise NotImplementedError(
|
| 232 |
"`best_row` has been deprecated. Please use the `PySRRegressor` interface. After fitting, you can run `print(model)` to view the best equation, or `model.get_best()` to return the best equation's row in `model.equations`."
|
| 233 |
)
|
| 234 |
|
| 235 |
|
| 236 |
-
def best_tex(*args, **kwargs):
|
| 237 |
raise NotImplementedError(
|
| 238 |
"`best_tex` has been deprecated. Please use the `PySRRegressor` interface. After fitting, you can return `.latex()` to get the sympy representation of the best equation."
|
| 239 |
)
|
| 240 |
|
| 241 |
|
| 242 |
-
def best_callable(*args, **kwargs):
|
| 243 |
raise NotImplementedError(
|
| 244 |
"`best_callable` has been deprecated. Please use the `PySRRegressor` interface. After fitting, you can use `.predict(X)` to use the best callable."
|
| 245 |
)
|
|
|
|
| 111 |
}
|
| 112 |
|
| 113 |
|
| 114 |
+
def pysr(X, y, weights=None, **kwargs): # pragma: no cover
|
| 115 |
warnings.warn(
|
| 116 |
"Calling `pysr` is deprecated. Please use `model = PySRRegressor(**params); model.fit(X, y)` going forward.",
|
| 117 |
DeprecationWarning,
|
|
|
|
| 221 |
return str_repr
|
| 222 |
|
| 223 |
|
| 224 |
+
def best(*args, **kwargs): # pragma: no cover
|
| 225 |
raise NotImplementedError(
|
| 226 |
"`best` has been deprecated. Please use the `PySRRegressor` interface. After fitting, you can return `.sympy()` to get the sympy representation of the best equation."
|
| 227 |
)
|
| 228 |
|
| 229 |
|
| 230 |
+
def best_row(*args, **kwargs): # pragma: no cover
|
| 231 |
raise NotImplementedError(
|
| 232 |
"`best_row` has been deprecated. Please use the `PySRRegressor` interface. After fitting, you can run `print(model)` to view the best equation, or `model.get_best()` to return the best equation's row in `model.equations`."
|
| 233 |
)
|
| 234 |
|
| 235 |
|
| 236 |
+
def best_tex(*args, **kwargs): # pragma: no cover
|
| 237 |
raise NotImplementedError(
|
| 238 |
"`best_tex` has been deprecated. Please use the `PySRRegressor` interface. After fitting, you can return `.latex()` to get the sympy representation of the best equation."
|
| 239 |
)
|
| 240 |
|
| 241 |
|
| 242 |
+
def best_callable(*args, **kwargs): # pragma: no cover
|
| 243 |
raise NotImplementedError(
|
| 244 |
"`best_callable` has been deprecated. Please use the `PySRRegressor` interface. After fitting, you can use `.predict(X)` to use the best callable."
|
| 245 |
)
|