Spaces:
Sleeping
Sleeping
MilesCranmer
commited on
Commit
•
841d7fc
1
Parent(s):
6e5f7ce
Add README
Browse files
README.md
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Running:
|
2 |
+
|
3 |
+
`julia paralleleureqa.jl`
|
4 |
+
|
5 |
+
## Modification
|
6 |
+
|
7 |
+
You can change the binary and unary operators in `eureqa.jl` here:
|
8 |
+
```
|
9 |
+
const binops = [plus, mult]
|
10 |
+
const unaops = [sin, cos, exp];
|
11 |
+
```
|
12 |
+
|
13 |
+
You can change the dataset here:
|
14 |
+
```
|
15 |
+
const nvar = 5;
|
16 |
+
const X = rand(100, nvar);
|
17 |
+
# Here is the function we want to learn (x2^2 + cos(x3) + 5)
|
18 |
+
const y = ((cx,)->cx^2).(X[:, 2]) + cos.(X[:, 3]) .+ 5.0;
|
19 |
+
```
|
20 |
+
|
21 |
+
The default number of processes is 10; this is set with
|
22 |
+
`addprocs(10)`.
|