Skip to content

Commit 58ffaa6

Browse files
committed
Update_Material
1 parent db1ad09 commit 58ffaa6

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

Config.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
class Config(object):
22

33
# System setup
4-
N_UE = 50 # Number of Mobile Devices
5-
N_EDGE = 5 # Number of Edge Servers
4+
N_UE = 20 # Number of Mobile Devices
5+
N_EDGE = 2 # Number of Edge Servers
66
UE_COMP_CAP = 2.6 # Mobile Device Computation Capacity
77
UE_TRAN_CAP = 14 # Mobile Device Transmission Capacity
88
EDGE_COMP_CAP = 42 # Edge Servers Computation Capacity

D3QN.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,7 @@ def choose_action(self, observation):
201201
action = np.argmax(actions_value)
202202

203203
else:
204-
if np.random.randint(0,100)>101:
205-
action = 0
206-
else:
207-
action = np.random.randint(1, self.n_actions)
204+
action = np.random.randint(1, self.n_actions)
208205
return action
209206

210207
def learn(self):

0 commit comments

Comments
 (0)