Spaces:
Sleeping
Sleeping
MilesCranmer
commited on
Commit
•
53256e6
1
Parent(s):
30a20e7
Better explain quickstart example
Browse files
README.md
CHANGED
@@ -76,9 +76,10 @@ y = 2*np.cos(X[:, 3]) + X[:, 0]**2 - 2
|
|
76 |
|
77 |
# Learn equations
|
78 |
equations = pysr(X, y, niterations=5,
|
79 |
-
|
80 |
-
|
81 |
-
|
|
|
82 |
|
83 |
...# (you can use ctl-c to exit early)
|
84 |
|
|
|
76 |
|
77 |
# Learn equations
|
78 |
equations = pysr(X, y, niterations=5,
|
79 |
+
binary_operators=["plus", "mult"],
|
80 |
+
unary_operators=[
|
81 |
+
"cos", "exp", "sin", #Pre-defined library of operators (see https://pysr.readthedocs.io/en/latest/docs/operators/)
|
82 |
+
"inv(x) = 1/x"]) # Define your own operator! (Julia syntax)
|
83 |
|
84 |
...# (you can use ctl-c to exit early)
|
85 |
|