File size: 655 Bytes
841d7fc
 
907cc73
 
841d7fc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b03c020
a369299
 
 
907cc73
 
a369299
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Running:

For now, just modify the script to your liking:

`julia paralleleureqa.jl`

## Modification

You can change the binary and unary operators in `eureqa.jl` here:
```
const binops = [plus, mult]
const unaops = [sin, cos, exp];
```

You can change the dataset here:
```
const nvar = 5;
const X = rand(100, nvar);
# Here is the function we want to learn (x2^2 + cos(x3) + 5)
const y = ((cx,)->cx^2).(X[:, 2]) + cos.(X[:, 3]) .+ 5.0;
```

The default number of processes is 10; this is set with
`addprocs(10)` in `paralleleureqa.jl`.

### Hyperparameters

Turn on annealing by setting the following in `paralleleureqa.jl`:

`const annealing = true`