Testing
TrinhTuanHung2021 opened this issue · 2 comments
TrinhTuanHung2021 commented
TrinhTuanHung2021 commented
I see that there are many algorithms in the algorithms
folder?
How could I change algorithms in main_1_1_v2.py?
Thanks
AntonioAlgaida commented
Hi,
To change the algorithm you need to change lane 99 in main_1_1_v2.py
By default is used the fixed traffic light algorithm with a green time defined by: greentime=(120-10)//2
If you want to change by other traditional traffic lights algorithms, you need to instantiate in the previous lane.
Like: algorithm = REDVDAlgorithm(...)
Changing Fixed
by algorithm
If you want to use the proposed algorithm, you need to instantiate the module located in TD3PER
algorithm = TD3Agent.Agent(...)
Best,