Spaces:
Sleeping
Sleeping
MilesCranmer
commited on
Commit
•
4998582
1
Parent(s):
f82dcf5
Fix formatting of Python example in docstring
Browse files- pysr/sr.py +2 -0
pysr/sr.py
CHANGED
@@ -571,6 +571,7 @@ class PySRRegressor(MultiOutputMixin, RegressorMixin, BaseEstimator):
|
|
571 |
|
572 |
Examples
|
573 |
--------
|
|
|
574 |
>>> import numpy as np
|
575 |
>>> from pysr import PySRRegressor
|
576 |
>>> randstate = np.random.RandomState(0)
|
@@ -606,6 +607,7 @@ class PySRRegressor(MultiOutputMixin, RegressorMixin, BaseEstimator):
|
|
606 |
1.0
|
607 |
>>> model.predict(np.array([1,2,3,4,5]))
|
608 |
array([-1.15907818, -1.15907818, -1.15907818, -1.15907818, -1.15907818])
|
|
|
609 |
"""
|
610 |
|
611 |
def __init__(
|
|
|
571 |
|
572 |
Examples
|
573 |
--------
|
574 |
+
```python
|
575 |
>>> import numpy as np
|
576 |
>>> from pysr import PySRRegressor
|
577 |
>>> randstate = np.random.RandomState(0)
|
|
|
607 |
1.0
|
608 |
>>> model.predict(np.array([1,2,3,4,5]))
|
609 |
array([-1.15907818, -1.15907818, -1.15907818, -1.15907818, -1.15907818])
|
610 |
+
```
|
611 |
"""
|
612 |
|
613 |
def __init__(
|