asataura commited on
Commit
9ca06b7
·
1 Parent(s): 5acfeb6

Replacing pytorch with tensorflow

Browse files
Files changed (2) hide show
  1. requirements.txt +1 -1
  2. trainer.py +2 -3
requirements.txt CHANGED
@@ -1,5 +1,5 @@
1
  numpy>=1.21.0
2
- torch==1.12.0
3
  matplotlib==3.0.0
4
  gym==0.10.9
5
  pandas==1.4.0
 
1
  numpy>=1.21.0
2
+ tensorflow==2.4.1
3
  matplotlib==3.0.0
4
  gym==0.10.9
5
  pandas==1.4.0
trainer.py CHANGED
@@ -11,13 +11,12 @@ import matplotlib as mpl
11
  import matplotlib.pyplot as plt
12
  import json
13
  from tensorflow import keras
14
- from ns3gym import ns3env
15
- from DDQN_FNN import DoubleDeepQNetwork
16
 
17
  jammerTypes = ['dynamic_pattern', 'combined', 'sweeping', 'random']
18
  jammerType = jammerTypes[0]
19
  network = 'FNN'
20
- cscs = [0, 0.1, 0.2, 0.3, 0.4] # Channel switching cost
21
 
22
  for csc in cscs:
23
  env = gym.make('ns3-v0')
 
11
  import matplotlib.pyplot as plt
12
  import json
13
  from tensorflow import keras
14
+ from DDQN import DoubleDeepQNetwork
 
15
 
16
  jammerTypes = ['dynamic_pattern', 'combined', 'sweeping', 'random']
17
  jammerType = jammerTypes[0]
18
  network = 'FNN'
19
+ cscs = [0, 0.05, 0.1, 0.15, 0.2] # Channel switching cost
20
 
21
  for csc in cscs:
22
  env = gym.make('ns3-v0')