Skip to content

Commit 1ffc0fe

Browse files
committed
Fixes
1 parent f2649d1 commit 1ffc0fe

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+2595
-7
lines changed

diploma_thesis/configuration/experiments/jsp/GRAPH-NN/experiments/2/machine.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ kind: 'rl'
33
parameters:
44

55
model:
6-
kind: 'deep_multi_rule'
6+
kind: 'deep_rule'
77
parameters:
88

99
policy:
@@ -48,14 +48,14 @@ parameters:
4848
kind: 'ppo'
4949
parameters:
5050
device: 'cpu'
51-
sample_count: 256
51+
sample_count: 512
5252
policy_step_ratio: 0.2
5353
entropy_regularization: 0.001
5454
entropy_decay: 0.999
55-
rollback_ratio: 0.0001
55+
rollback_ratio: 0.00
5656
critic_weight: 0.5
5757

58-
epochs: 30
58+
epochs: 10
5959

6060
loss:
6161
kind: 'cross_entropy'
@@ -71,7 +71,7 @@ parameters:
7171
parameters:
7272
lr: 0.001
7373
betas: [0.99, 0.99]
74-
weight_decay: 0.0000001
74+
# weight_decay: 0.0000001
7575

7676
memory:
7777
kind: 'replay'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,173 @@
1+
# Evaluate the effectivenes of basic DQNs on the JSP environment
2+
3+
template: &template 'baseline'
4+
base_model: &base_model 'configuration/experiments/jsp/GRAPH-NN/experiments/2/machine.yml'
5+
6+
graph: &graph
7+
transition_model:
8+
kind: 'base'
9+
parameters:
10+
forward:
11+
kind: 'complete'
12+
13+
schedule:
14+
kind: 'complete'
15+
16+
memory: 0
17+
is_machine_set_in_work_center_connected: False
18+
is_work_center_set_in_shop_floor_connected: False
19+
20+
###############################################################################################
21+
22+
ppo_1: &ppo_1
23+
base_path: *base_model
24+
template: '0/local'
25+
mod_dirs:
26+
- ['configuration/mods/machine/mods']
27+
mods:
28+
__factory__:
29+
- [ 'util/optimizer/grad_norm.yml' ]
30+
- [
31+
'__none__',
32+
]
33+
- [
34+
'util/infrastructure/cuda.yml'
35+
]
36+
- [ 'util/train_schedule/on_stored_data_exclusively_3.yml']
37+
38+
ppo_2: &ppo_2
39+
base_path: *base_model
40+
template: '0/global'
41+
mod_dirs:
42+
- ['configuration/mods/machine/mods']
43+
mods:
44+
__factory__:
45+
- [ 'util/optimizer/grad_norm.yml' ]
46+
- [
47+
'__none__',
48+
# 'agent/ppo/p3or.yml'
49+
]
50+
- [
51+
'util/infrastructure/cuda.yml'
52+
]
53+
- [ 'util/train_schedule/on_stored_data_exclusively_3.yml']
54+
55+
###############################################################################################
56+
57+
reward: &reward
58+
- kind: 'global_decomposed_tardiness'
59+
parameters:
60+
span: 128
61+
62+
##############################################################################################
63+
64+
# 8 runs
65+
66+
long_single_source_run: &long_single_source_run
67+
parameters:
68+
mods:
69+
__inout_factory__:
70+
- [ ['utilization/80.yml'] ]
71+
nested:
72+
parameters:
73+
dispatch:
74+
seed:
75+
- '__range__': [1000, 1300]
76+
77+
78+
79+
###############################################################################################
80+
81+
82+
task:
83+
kind: 'multi_task'
84+
n_workers: 3
85+
n_threads: 10
86+
debug: False
87+
store_run_statistics: False
88+
output_dir: 'results/jsp/experiments/1 (Graph)/Local'
89+
90+
tasks:
91+
- kind: 'multi_value'
92+
parameters:
93+
base:
94+
name: 'model'
95+
output_dir: '1'
96+
log_stdout: False
97+
98+
machine_agent:
99+
kind: 'mod'
100+
parameters:
101+
base_path: 'configuration/mods/machine_agent/model.yml'
102+
mods: [ ]
103+
104+
work_center_agent:
105+
kind: 'static'
106+
parameters:
107+
model:
108+
kind: 'static'
109+
parameters:
110+
rule: 'et'
111+
encoder:
112+
kind: 'plain'
113+
114+
tape:
115+
machine_reward:
116+
kind: 'surrogate_tardiness'
117+
118+
work_center_reward:
119+
kind: 'no'
120+
121+
simulator:
122+
kind: 'episodic'
123+
124+
graph:
125+
*graph
126+
127+
run:
128+
kind: 'mod'
129+
parameters:
130+
base_path: 'configuration/experiments/jsp/GRAPH-NN/experiments/2/run.yml'
131+
mod_dirs:
132+
- 'configuration/mods/run/mods'
133+
mods: []
134+
nested:
135+
parameters:
136+
simulations:
137+
- name: ''
138+
kind: 'multi_value'
139+
parameters:
140+
base:
141+
kind: 'mod'
142+
parameters:
143+
base_path: 'configuration/experiments/jsp/GRAPH-NN/experiments/2/simulation.yml'
144+
mod_dirs:
145+
- 'configuration/mods/simulation/mods'
146+
mods: [ ]
147+
values:
148+
values:
149+
__concat__:
150+
- output_dir: 'Local'
151+
machine_agent:
152+
parameters:
153+
*ppo_1
154+
155+
- output_dir: 'Global'
156+
machine_agent:
157+
parameters:
158+
*ppo_2
159+
160+
tape:
161+
machine_reward:
162+
*reward
163+
164+
run:
165+
parameters:
166+
nested:
167+
parameters:
168+
simulations:
169+
__0__:
170+
parameters:
171+
values:
172+
__concat__:
173+
- *long_single_source_run

0 commit comments

Comments
 (0)