Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two logic after executing setRedYellowGreenState #185

Open
Gavin-Tao opened this issue Feb 29, 2024 · 0 comments
Open

Two logic after executing setRedYellowGreenState #185

Gavin-Tao opened this issue Feb 29, 2024 · 0 comments

Comments

@Gavin-Tao
Copy link

Hi @LucasAlegre

I am running ql_single-intersection.py and found that the number of logic after running setProgramLogic is 1 while that of logic after running setRedYellowGreenState is 2.
image

This is the output:
c: (Logic(programID='0', type=0, currentPhaseIndex=0, phases=(Phase(duration=42.0, state='GGrr', minDur=-1.0, maxDur=-1.0), Phase(duration=42.0, state='rrGG', minDur=-1.0, maxDur=-1.0), Phase(duration=2.0, state='yyrr', minDur=-1.0, maxDur=-1.0), Phase(duration=2.0, state='rryy', minDur=-1.0, maxDur=-1.0)), subParameter={}),)
b (Logic(programID='0', type=0, currentPhaseIndex=0, phases=(Phase(duration=42.0, state='GGrr', minDur=-1.0, maxDur=-1.0), Phase(duration=42.0, state='rrGG', minDur=-1.0, maxDur=-1.0), Phase(duration=2.0, state='yyrr', minDur=-1.0, maxDur=-1.0), Phase(duration=2.0, state='rryy', minDur=-1.0, maxDur=-1.0)), subParameter={}), Logic(programID='online', type=0, currentPhaseIndex=0, phases=(Phase(duration=1.0, state='GGrr', minDur=1.0, maxDur=1.0),), subParameter={}))

May I ask if the two logics may have an influence on training performance? Because I've run the codes but noticed that the performance isn't as expected.

Second question: I run the ql_single-intersection.py, ql_2way-single-intersection.py, and dqn_2way-single-intersection.py successfully but the output csv files seem to be not converged. I plotted the metrics but found that it seems that the performance is not stable and works well. May I ask if you verified the three scenarios' performance before? In addition, could you provide details on the output of the experiment for the result.png file in the outputs folder like which experiment's output?

I look forward to hearing from you. Your reply is really appreciated.

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant