We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db1ad09 commit 58ffaa6Copy full SHA for 58ffaa6
Config.py
@@ -1,8 +1,8 @@
1
class Config(object):
2
3
# System setup
4
- N_UE = 50 # Number of Mobile Devices
5
- N_EDGE = 5 # Number of Edge Servers
+ N_UE = 20 # Number of Mobile Devices
+ N_EDGE = 2 # Number of Edge Servers
6
UE_COMP_CAP = 2.6 # Mobile Device Computation Capacity
7
UE_TRAN_CAP = 14 # Mobile Device Transmission Capacity
8
EDGE_COMP_CAP = 42 # Edge Servers Computation Capacity
D3QN.py
@@ -201,10 +201,7 @@ def choose_action(self, observation):
201
action = np.argmax(actions_value)
202
203
else:
204
- if np.random.randint(0,100)>101:
205
- action = 0
206
- else:
207
- action = np.random.randint(1, self.n_actions)
+ action = np.random.randint(1, self.n_actions)
208
return action
209
210
def learn(self):
0 commit comments