Spaces:
Running
Running
MilesCranmer
commited on
Commit
•
04aa23c
1
Parent(s):
47ad683
style: move attribute types to after docstring
Browse files- pysr/sr.py +15 -15
pysr/sr.py
CHANGED
@@ -183,21 +183,6 @@ VALID_OPTIMIZER_ALGORITHMS = ["BFGS", "NelderMead"]
|
|
183 |
|
184 |
|
185 |
class PySRRegressor(MultiOutputMixin, RegressorMixin, BaseEstimator):
|
186 |
-
equations_: Optional[Union[pd.DataFrame, List[pd.DataFrame]]]
|
187 |
-
n_features_in_: int
|
188 |
-
feature_names_in_: ArrayLike[str]
|
189 |
-
display_feature_names_in_: ArrayLike[str]
|
190 |
-
X_units_: Optional[ArrayLike[str]]
|
191 |
-
y_units_: Optional[Union[str, ArrayLike[str]]]
|
192 |
-
nout_: int
|
193 |
-
selection_mask_: Optional[NDArray[np.bool_]]
|
194 |
-
tempdir_: Path
|
195 |
-
equation_file_: Union[str, Path]
|
196 |
-
julia_state_stream_: Optional[NDArray[np.uint8]]
|
197 |
-
julia_options_stream_: Optional[NDArray[np.uint8]]
|
198 |
-
equation_file_contents_: Optional[List[pd.DataFrame]]
|
199 |
-
show_pickle_warnings_: bool
|
200 |
-
|
201 |
"""
|
202 |
High-performance symbolic regression algorithm.
|
203 |
|
@@ -679,6 +664,21 @@ class PySRRegressor(MultiOutputMixin, RegressorMixin, BaseEstimator):
|
|
679 |
```
|
680 |
"""
|
681 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
682 |
def __init__(
|
683 |
self,
|
684 |
model_selection: Literal["best", "accuracy", "score"] = "best",
|
|
|
183 |
|
184 |
|
185 |
class PySRRegressor(MultiOutputMixin, RegressorMixin, BaseEstimator):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
186 |
"""
|
187 |
High-performance symbolic regression algorithm.
|
188 |
|
|
|
664 |
```
|
665 |
"""
|
666 |
|
667 |
+
equations_: Optional[Union[pd.DataFrame, List[pd.DataFrame]]]
|
668 |
+
n_features_in_: int
|
669 |
+
feature_names_in_: ArrayLike[str]
|
670 |
+
display_feature_names_in_: ArrayLike[str]
|
671 |
+
X_units_: Optional[ArrayLike[str]]
|
672 |
+
y_units_: Optional[Union[str, ArrayLike[str]]]
|
673 |
+
nout_: int
|
674 |
+
selection_mask_: Optional[NDArray[np.bool_]]
|
675 |
+
tempdir_: Path
|
676 |
+
equation_file_: Union[str, Path]
|
677 |
+
julia_state_stream_: Optional[NDArray[np.uint8]]
|
678 |
+
julia_options_stream_: Optional[NDArray[np.uint8]]
|
679 |
+
equation_file_contents_: Optional[List[pd.DataFrame]]
|
680 |
+
show_pickle_warnings_: bool
|
681 |
+
|
682 |
def __init__(
|
683 |
self,
|
684 |
model_selection: Literal["best", "accuracy", "score"] = "best",
|