Spaces:
Running
Running
Commit
·
e7b4ea9
1
Parent(s):
9137841
Fix occurrence of size warning
Browse files- pysr/sr.py +1 -1
pysr/sr.py
CHANGED
|
@@ -1405,7 +1405,7 @@ class PySRRegressor(BaseEstimator, RegressorMixin, MultiOutputMixin):
|
|
| 1405 |
|
| 1406 |
self._setup_equation_file()
|
| 1407 |
|
| 1408 |
-
if X.shape[
|
| 1409 |
warnings.warn(
|
| 1410 |
"Note: you are running with more than 10,000 datapoints. "
|
| 1411 |
"You should consider turning on batching (https://astroautomata.com/PySR/#/options?id=batching). "
|
|
|
|
| 1405 |
|
| 1406 |
self._setup_equation_file()
|
| 1407 |
|
| 1408 |
+
if X.shape[0] > 10000 and not self.batching:
|
| 1409 |
warnings.warn(
|
| 1410 |
"Note: you are running with more than 10,000 datapoints. "
|
| 1411 |
"You should consider turning on batching (https://astroautomata.com/PySR/#/options?id=batching). "
|