Spaces:
Sleeping
Sleeping
MilesCranmer
commited on
Commit
•
9e00705
1
Parent(s):
ed19905
Fix parameter storing
Browse files- pysr/sr.py +4 -4
pysr/sr.py
CHANGED
@@ -1048,16 +1048,16 @@ class PySRRegressor(BaseEstimator, RegressorMixin):
|
|
1048 |
]
|
1049 |
|
1050 |
all_params = {
|
1051 |
-
**{k: self.__getattribute__(k) for k in self.surface_parameters}
|
1052 |
-
**
|
1053 |
}
|
1054 |
if self.params_hash is not None:
|
1055 |
if hash(all_params) != self.params_hash:
|
1056 |
warnings.warn(
|
1057 |
"Warning: PySR options have changed since the last run. "
|
1058 |
"This is experimental and may not work. "
|
1059 |
-
"For example, if the operators change, or even their order,"
|
1060 |
-
" the saved equations will be in the wrong format."
|
1061 |
)
|
1062 |
|
1063 |
self.params_hash = hash(all_params)
|
|
|
1048 |
]
|
1049 |
|
1050 |
all_params = {
|
1051 |
+
**{k: self.__getattribute__(k) for k in self.surface_parameters},
|
1052 |
+
**self.params,
|
1053 |
}
|
1054 |
if self.params_hash is not None:
|
1055 |
if hash(all_params) != self.params_hash:
|
1056 |
warnings.warn(
|
1057 |
"Warning: PySR options have changed since the last run. "
|
1058 |
"This is experimental and may not work. "
|
1059 |
+
"For example, if the operators change, or even their order,"
|
1060 |
+
" the saved equations will be in the wrong format.",
|
1061 |
)
|
1062 |
|
1063 |
self.params_hash = hash(all_params)
|