MilesCranmer commited on
Commit
fee76f1
1 Parent(s): 670f6a4

Set optimization value for manual init

Browse files
Files changed (1) hide show
  1. docs/examples.md +5 -3
docs/examples.md CHANGED
@@ -189,13 +189,15 @@ where $p_i$ is the $i$th prime number, and $x$ is the input feature.
189
  Let's see if we can discover this relationship between $x$ and $y$, using
190
  the [Primes.jl](https://github.com/JuliaMath/Primes.jl) package.
191
 
192
- First, let's manually initialize the Julia backend (here, with 8 threads)
 
193
 
194
  ```python
195
  import pysr
196
- jl = pysr.julia_helpers.init_julia(julia_kwargs={"threads": 8})
197
  ```
198
- `jl` is the Julia runtime.
 
199
 
200
  Now, let's run some Julia code to add the Primes.jl
201
  package to the PySR environment:
 
189
  Let's see if we can discover this relationship between $x$ and $y$, using
190
  the [Primes.jl](https://github.com/JuliaMath/Primes.jl) package.
191
 
192
+ First, let's manually initialize the Julia backend
193
+ (here, with 8 threads and `-O3`):
194
 
195
  ```python
196
  import pysr
197
+ jl = pysr.julia_helpers.init_julia(julia_kwargs={"threads": 8, "optimize": 3})
198
  ```
199
+
200
+ `jl` stores the Julia runtime.
201
 
202
  Now, let's run some Julia code to add the Primes.jl
203
  package to the PySR environment: