Spaces:
Sleeping
Sleeping
Commit
·
3acde9e
1
Parent(s):
09c69a0
Remove assert for empty unary_operators
Browse files- pysr/sr.py +0 -1
pysr/sr.py
CHANGED
|
@@ -102,7 +102,6 @@ def pysr(X=None, y=None, weights=None,
|
|
| 102 |
|
| 103 |
# Check for potential errors before they happen
|
| 104 |
assert len(binary_operators) > 0
|
| 105 |
-
assert len(unary_operators) > 0
|
| 106 |
assert len(X.shape) == 2
|
| 107 |
assert len(y.shape) == 1
|
| 108 |
assert X.shape[0] == y.shape[0]
|
|
|
|
| 102 |
|
| 103 |
# Check for potential errors before they happen
|
| 104 |
assert len(binary_operators) > 0
|
|
|
|
| 105 |
assert len(X.shape) == 2
|
| 106 |
assert len(y.shape) == 1
|
| 107 |
assert X.shape[0] == y.shape[0]
|