Spaces:
Running
Running
deepsource-autofix[bot]
commited on
Commit
·
980d0cf
1
Parent(s):
76cb421
Format code with black
Browse files- pysr/sr.py +3 -1
pysr/sr.py
CHANGED
|
@@ -826,7 +826,9 @@ def get_hof(
|
|
| 826 |
cur_score = 0.0
|
| 827 |
else:
|
| 828 |
if curMSE > 0.0:
|
| 829 |
-
cur_score = -np.log(curMSE / lastMSE) / (
|
|
|
|
|
|
|
| 830 |
else:
|
| 831 |
cur_score = np.inf
|
| 832 |
|
|
|
|
| 826 |
cur_score = 0.0
|
| 827 |
else:
|
| 828 |
if curMSE > 0.0:
|
| 829 |
+
cur_score = -np.log(curMSE / lastMSE) / (
|
| 830 |
+
curComplexity - lastComplexity
|
| 831 |
+
)
|
| 832 |
else:
|
| 833 |
cur_score = np.inf
|
| 834 |
|