Spaces:
Running
Running
MilesCranmer
commited on
Commit
•
9f65133
1
Parent(s):
20646f9
Use `julia_state_` instead
Browse files- pysr/sr.py +2 -2
pysr/sr.py
CHANGED
@@ -1121,14 +1121,14 @@ class PySRRegressor(MultiOutputMixin, RegressorMixin, BaseEstimator):
|
|
1121 |
return self.equations_
|
1122 |
|
1123 |
@property
|
1124 |
-
def
|
1125 |
return jl_deserialize_s(self.raw_julia_state_stream_)
|
1126 |
|
1127 |
@property
|
1128 |
def raw_julia_state_(self):
|
1129 |
warnings.warn(
|
1130 |
"PySRRegressor.raw_julia_state_ is now deprecated. "
|
1131 |
-
"Please use PySRRegressor.
|
1132 |
"for the raw stream of bytes.",
|
1133 |
FutureWarning,
|
1134 |
)
|
|
|
1121 |
return self.equations_
|
1122 |
|
1123 |
@property
|
1124 |
+
def julia_state_(self):
|
1125 |
return jl_deserialize_s(self.raw_julia_state_stream_)
|
1126 |
|
1127 |
@property
|
1128 |
def raw_julia_state_(self):
|
1129 |
warnings.warn(
|
1130 |
"PySRRegressor.raw_julia_state_ is now deprecated. "
|
1131 |
+
"Please use PySRRegressor.julia_state_ instead, or raw_julia_state_stream_ "
|
1132 |
"for the raw stream of bytes.",
|
1133 |
FutureWarning,
|
1134 |
)
|