Spaces:
Running
Running
MilesCranmer
commited on
Commit
•
d425a5f
1
Parent(s):
ca6e959
Update warning messages
Browse files- pysr/sr.py +2 -3
pysr/sr.py
CHANGED
@@ -1274,14 +1274,13 @@ class PySRRegressor(MultiOutputMixin, RegressorMixin, BaseEstimator):
|
|
1274 |
# Ensure instance parameters are allowable values:
|
1275 |
if self.tournament_selection_n > self.population_size:
|
1276 |
raise ValueError(
|
1277 |
-
"tournament_selection_n parameter must be smaller than population_size
|
1278 |
)
|
1279 |
|
1280 |
if self.maxsize > 40:
|
1281 |
warnings.warn(
|
1282 |
"Note: Using a large maxsize for the equation search will be "
|
1283 |
-
"exponentially slower and use significant memory.
|
1284 |
-
"turning `use_frequency` to False, and perhaps use `warmup_maxsize_by`."
|
1285 |
)
|
1286 |
elif self.maxsize < 7:
|
1287 |
raise ValueError("PySR requires a maxsize of at least 7")
|
|
|
1274 |
# Ensure instance parameters are allowable values:
|
1275 |
if self.tournament_selection_n > self.population_size:
|
1276 |
raise ValueError(
|
1277 |
+
"`tournament_selection_n` parameter must be smaller than `population_size`."
|
1278 |
)
|
1279 |
|
1280 |
if self.maxsize > 40:
|
1281 |
warnings.warn(
|
1282 |
"Note: Using a large maxsize for the equation search will be "
|
1283 |
+
"exponentially slower and use significant memory."
|
|
|
1284 |
)
|
1285 |
elif self.maxsize < 7:
|
1286 |
raise ValueError("PySR requires a maxsize of at least 7")
|