MilesCranmer commited on
Commit
d05f2e2
1 Parent(s): 7de1010

Update docs

Browse files
Files changed (1) hide show
  1. docs/operators.md +2 -4
docs/operators.md CHANGED
@@ -49,7 +49,7 @@ Instead of passing a predefined operator as a string,
49
  you can define with by passing it to the `pysr` function, with, e.g.,
50
 
51
  ```python
52
- pysr(
53
  ...,
54
  unary_operators=["myfunction(x) = x^2"],
55
  binary_operators=["myotherfunction(x, y) = x^2*y"]
@@ -57,9 +57,7 @@ you can define with by passing it to the `pysr` function, with, e.g.,
57
  ```
58
 
59
 
60
- You can also define your own in `julia/operators.jl`,
61
- and pass the function name as a string. This is suitable
62
- for more complex functions. Make sure that it works with
63
  `Float32` as a datatype. That means you need to write `1.5f3`
64
  instead of `1.5e3`, if you write any constant numbers.
65
 
 
49
  you can define with by passing it to the `pysr` function, with, e.g.,
50
 
51
  ```python
52
+ PySRRegressor(
53
  ...,
54
  unary_operators=["myfunction(x) = x^2"],
55
  binary_operators=["myotherfunction(x, y) = x^2*y"]
 
57
  ```
58
 
59
 
60
+ Make sure that it works with
 
 
61
  `Float32` as a datatype. That means you need to write `1.5f3`
62
  instead of `1.5e3`, if you write any constant numbers.
63