Spaces:
Running
Running
MilesCranmer
commited on
Commit
•
90049bc
1
Parent(s):
35b5720
Very good hyperparameters
Browse files
eureqa.py
CHANGED
@@ -6,27 +6,26 @@ import numpy as np
|
|
6 |
import pandas as pd
|
7 |
|
8 |
# Dumped from hyperparam optimization
|
9 |
-
default_alpha =
|
10 |
-
default_fractionReplaced = 0.
|
11 |
-
default_fractionReplacedHof = 0.
|
12 |
-
default_npop =
|
13 |
default_weightAddNode = 1
|
14 |
-
default_weightInsertNode =
|
15 |
-
default_weightDeleteNode =
|
16 |
default_weightMutateConstant = 10
|
17 |
default_weightMutateOperator = 1
|
18 |
default_weightRandomize = 1
|
19 |
-
default_weightSimplify =
|
20 |
default_weightDoNothing = 1
|
21 |
default_result = 1
|
22 |
default_topn = 10
|
23 |
-
default_parsimony =
|
24 |
default_perturbationFactor = 1.0
|
25 |
|
26 |
-
|
27 |
def eureqa(X=None, y=None, threads=4,
|
28 |
-
niterations=
|
29 |
-
ncyclesperiteration=
|
30 |
binary_operators=["plus", "mult"],
|
31 |
unary_operators=["cos", "exp", "sin"],
|
32 |
alpha=default_alpha,
|
|
|
6 |
import pandas as pd
|
7 |
|
8 |
# Dumped from hyperparam optimization
|
9 |
+
default_alpha = 1.0#0.1
|
10 |
+
default_fractionReplaced = 0.10
|
11 |
+
default_fractionReplacedHof = 0.10
|
12 |
+
default_npop = 1000
|
13 |
default_weightAddNode = 1
|
14 |
+
default_weightInsertNode = 3
|
15 |
+
default_weightDeleteNode = 3
|
16 |
default_weightMutateConstant = 10
|
17 |
default_weightMutateOperator = 1
|
18 |
default_weightRandomize = 1
|
19 |
+
default_weightSimplify = 0.01
|
20 |
default_weightDoNothing = 1
|
21 |
default_result = 1
|
22 |
default_topn = 10
|
23 |
+
default_parsimony = 1e-4
|
24 |
default_perturbationFactor = 1.0
|
25 |
|
|
|
26 |
def eureqa(X=None, y=None, threads=4,
|
27 |
+
niterations=100,
|
28 |
+
ncyclesperiteration=300,
|
29 |
binary_operators=["plus", "mult"],
|
30 |
unary_operators=["cos", "exp", "sin"],
|
31 |
alpha=default_alpha,
|