-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsettings.py
65 lines (55 loc) · 1.76 KB
/
settings.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
"""Contains global, immutable settings.
Anything that varies between runs should be a command-line arg (args.py).
"""
def create_config(args):
"""Create config class
"""
class Config:
"""Config class
"""
env = args.env
start_seed = args.start_seed
num_seeds = args.num_seeds
collect_data = args.collect_data
data_dir = "data/"
cover_num_blocks = 2
cover_num_targets = 2
cover_block_widths = [0.1, 0.07]
cover_target_widths = [0.05, 0.03]
cover_num_test_problems = 30
blocks_demo_num_objs = [3, 4, 5]
blocks_test_num_objs = [6]
blocks_num_test_problems = 10
painting_demo_num_objs = [3, 4, 5]
painting_test_num_objs = [6, 7, 8, 9, 10]
painting_num_test_problems = 30
backtracking_num_samples_per_step = 10
effect_prob_threshold = 0.001
num_demos = 20
num_negatives = {
"cover": 100,
"painting": 2500,
"blocks": 100,
}[args.env]
max_test_episode_length = {
"cover": 5,
"painting": 50,
"blocks": 50,
}[args.env]
approach_timeout = {
"cover": 1,
"painting": 10,
"blocks": 10,
}[args.env]
builp_max_unique_lifted_effects = 10
builp_learn_probabilities = True
builp_learn_empty_effects = False
builp_max_preconditions_per_effect = 100000
builp_max_search_iters = 100
builp_max_rule_size = float("inf")
builp_true_pos_weight = 10
builp_false_pos_weight = 1
builp_var_count_weight = 1e-1
builp_rule_size_weight = 1e-2
builp_referenced_objects_only = True
return Config