Spaces:
Running
Running
Commit
·
be87321
1
Parent(s):
a828c23
Preserve PySRRegressor.equations but with deprecation
Browse files- pysr/sr.py +9 -0
pysr/sr.py
CHANGED
|
@@ -830,6 +830,15 @@ class PySRRegressor(BaseEstimator, RegressorMixin, MultiOutputMixin):
|
|
| 830 |
output += "]"
|
| 831 |
return output
|
| 832 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 833 |
def get_best(self, index=None):
|
| 834 |
"""
|
| 835 |
Get best equation using `model_selection`.
|
|
|
|
| 830 |
output += "]"
|
| 831 |
return output
|
| 832 |
|
| 833 |
+
@property
|
| 834 |
+
def equations(self): # pragma: no cover
|
| 835 |
+
warnings.warn(
|
| 836 |
+
"PySRRegressor.equations is now deprecated. "
|
| 837 |
+
"Please use PySRRegressor.equations_ instead.",
|
| 838 |
+
FutureWarning,
|
| 839 |
+
)
|
| 840 |
+
return self.equations_
|
| 841 |
+
|
| 842 |
def get_best(self, index=None):
|
| 843 |
"""
|
| 844 |
Get best equation using `model_selection`.
|