Spaces:
Sleeping
Sleeping
MilesCranmer
commited on
Commit
•
ebac605
1
Parent(s):
912de01
Fix __repr__ when equations undefined
Browse files- pysr/sr.py +1 -1
pysr/sr.py
CHANGED
@@ -710,7 +710,7 @@ class PySRRegressor(BaseEstimator, RegressorMixin):
|
|
710 |
The string `>>>>` denotes which equation is selected by the
|
711 |
`model_selection`.
|
712 |
"""
|
713 |
-
if self.equations is None:
|
714 |
return "PySRRegressor.equations = None"
|
715 |
|
716 |
output = "PySRRegressor.equations = [\n"
|
|
|
710 |
The string `>>>>` denotes which equation is selected by the
|
711 |
`model_selection`.
|
712 |
"""
|
713 |
+
if not hasattr(self, "equations") or self.equations is None:
|
714 |
return "PySRRegressor.equations = None"
|
715 |
|
716 |
output = "PySRRegressor.equations = [\n"
|