Spaces:
Running
Running
MilesCranmer
commited on
Commit
•
316393e
1
Parent(s):
3662fae
Mention that operator constants be 32-bit
Browse files
README.md
CHANGED
@@ -104,8 +104,10 @@ equations = pysr.pysr(X, y, niterations=100,
|
|
104 |
Now, the symbolic regression code can search using this `special` function
|
105 |
that squares its left argument and adds it to its right. Make sure
|
106 |
all passed functions are valid Julia code, and take one (unary)
|
107 |
-
or two (binary) float32 scalars as input, and output a float32.
|
108 |
-
|
|
|
|
|
109 |
|
110 |
We also define `extra_sympy_mappings`,
|
111 |
so that the SymPy code can understand the output equation from Julia,
|
|
|
104 |
Now, the symbolic regression code can search using this `special` function
|
105 |
that squares its left argument and adds it to its right. Make sure
|
106 |
all passed functions are valid Julia code, and take one (unary)
|
107 |
+
or two (binary) float32 scalars as input, and output a float32. This means if you
|
108 |
+
write any real constants in your operator, like `2.5`, you have to write them
|
109 |
+
instead as `2.5f0`, which defines it as `Float32`.
|
110 |
+
Operators are automatically vectorized.
|
111 |
|
112 |
We also define `extra_sympy_mappings`,
|
113 |
so that the SymPy code can understand the output equation from Julia,
|