-
Notifications
You must be signed in to change notification settings - Fork 8
/
constants.py
75 lines (62 loc) · 1.27 KB
/
constants.py
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# constants
# author: Jungtaek Kim (jtkim@postech.ac.kr)
# last updated: July 09, 2018
import numpy as np
JITTER_ACQ = 1e-5
JITTER_COV = 1e-5
JITTER_LOG = 1e-10
STR_OPTIMIZER_METHOD_BO = 'L-BFGS-B'
STR_OPTIMIZER_METHOD_GP = 'BFGS'
STR_GP_COV = 'matern52'
STR_BO_ACQ = 'ei'
STR_BO_INITIALIZATION = 'uniform'
STR_AO_INITIALIZATION = 'uniform'
NUM_BO_GRID = 50
NUM_BO_RANDOM = 1000
NUM_ACQ_SAMPLES = 100
MULTIPLIER_ACQ = 10.0
MULTIPLIER_RESPONSE = 10.0
GP_NOISE = 1e-2
IS_FIXED_GP_NOISE = False
BOUND_UPPER_GP_NOISE = np.inf
TIME_PAUSE = 2.0
RANGE_SHADE = 1.96
ALLOWED_GP_COV = ['se', 'matern32', 'matern52']
ALLOWED_BO_ACQ = ['pi', 'ei', 'ucb', 'aei', 'pure_exploit', 'pure_explore']
ALLOWED_INITIALIZATIONS_BO = ['sobol', 'uniform', 'latin']
ALLOWED_INITIALIZATIONS_AO = ALLOWED_INITIALIZATIONS_BO + ['grid']
KEYS_INFO_BENCHMARK = ['dim_fun', 'bounds', 'global_minimum_X', 'global_minimum_y']
COLORS = [
'red',
'green',
'blue',
'orange',
'olive',
'purple',
'darkred',
'limegreen',
'deepskyblue',
'lightsalmon',
'aquamarine',
'navy',
'rosybrown',
'darkkhaki',
'darkslategray',
]
MARKERS = [
'.',
'x',
'*',
'+',
'^',
'v',
'<',
'>',
'd',
',',
'8',
'h',
'1',
'2',
'3',
]