Skip to content

Commit 5b8efc2

Browse files
committed
Change the meta-learn TPE to meta-learning TPE
1 parent 3262b01 commit 5b8efc2

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

viz/constants.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
COSTS_SHAPE = (N_RUNS, N_SAMPLES, N_OBJ)
66
# LEVELS = [N_RUNS // 4, N_RUNS // 2, (3 * N_RUNS) // 4]
77
LEVELS = [N_RUNS // 2] * 3
8-
Q, DF = [0.10, 0.15][0], [1.5, 2.0, 2.5, 3.0, 3.5, 4.0, 4.5, 5.0][3]
8+
Q, DF = [0.10, 0.15][0], [1.5, 2.0, 2.5, 3.0, 3.5, 4.0, 4.5, 5.0][2]
99
NO_WAMRSTART = ["no-warmstart-", ""][1]
1010
META_LEARN_TPE = f"{NO_WAMRSTART}tpe_q={Q:.2f}_df={DF:.1f}"
1111
NORMAL_TPE = f"normal_tpe_q={Q:.2f}"
@@ -28,7 +28,7 @@
2828

2929
COLOR_LABEL_DICT = {
3030
# f"tpe_q={Q:.2f}_df={DF:.1f}": ("red", f"Meta-learn TPE df={DF:.1f}"),
31-
META_LEARN_TPE: ("red", "Meta-learn TPE"),
31+
META_LEARN_TPE: ("red", "Meta-learning TPE"),
3232
# f"naive_metalearn_tpe_q={Q:.2f}": ("green", "Uniform weight"),
3333
NORMAL_TPE: ("blue", "MO-TPE"),
3434
TSTR_EHVI: ("violet", "TST-R EHVI"),

viz/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import json
22
from typing import List, Tuple
33

4-
from constants import (
4+
from viz.constants import (
55
N_OBJ,
66
N_RUNS,
77
N_SAMPLES,

viz/viz.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
import numpy as np
1414

15-
from constants import (
15+
from viz.constants import (
1616
BENCH_NAMES,
1717
COLOR_LABEL_DICT,
1818
COSTS_SHAPE,
@@ -33,7 +33,7 @@
3333
OBJ_NAMES_DICT,
3434
TICK_PARAMS,
3535
)
36-
from utils import get_costs, get_true_pareto_front_and_ref_point
36+
from viz.utils import get_costs, get_true_pareto_front_and_ref_point
3737

3838

3939
plt.rcParams["font.family"] = "Times New Roman"

0 commit comments

Comments
 (0)