Coder Social home page Coder Social logo

av-nash-q-learning's People

Contributors

alireza-montazeri avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

shenzc25 bfweee

av-nash-q-learning's Issues

Two small problems about the procedure

Thank you very much for your outstanding work.

I have a few small questions that I want to confirm with you.

Firstly, in the my_highway_env.py file,
vehicle = self.action_type.vehicle_class
There seems to be no color attribute in, and it will report an error when running.

Traceback (most recent call last):
File "D:/PyCharm_Projects/Nash Q Learning Lane Change/AV-Nash-Q-Learning/code/train_nash_q.py", line 13, in
env = MyHighwayEnv()
File "D:\Users\ASUS\anaconda3\envs\Nash Q Learning Lane Change\lib\site-packages\highway_env\envs\common\abstract.py", line 71, in init
self.reset()
File "D:\Users\ASUS\anaconda3\envs\Nash Q Learning Lane Change\lib\site-packages\highway_env\envs\common\abstract.py", line 205, in reset
self._reset()
File "D:\PyCharm_Projects\Nash Q Learning Lane Change\AV-Nash-Q-Learning\code\my_highway_env.py", line 67, in _reset
self._create_vehicles()
File "D:\PyCharm_Projects\Nash Q Learning Lane Change\AV-Nash-Q-Learning\code\my_highway_env.py", line 81, in _create_vehicles
vehicle = self.action_type.vehicle_class(
TypeError: init() got an unexpected keyword argument 'color'

Process finished with exit code 1

However, the corresponding color attributes may be used when drawing later. Excuse me, how to solve it here?

Secondly, in the eval_nash_q.py file.
for _ in range(100):
sv_action = sv.act(obs[1])

Obs[1] is passed in, which is to draw the related parameters of sv. However, it will report an error.

Traceback (most recent call last):
File "D:/PyCharm_Projects/Nash Q Learning Lane Change/AV-Nash-Q-Learning/code/eval_nash_q.py", line 43, in
sv_action = sv.act(obs[1])
File "D:\PyCharm_Projects\Nash Q Learning Lane Change\AV-Nash-Q-Learning\code\surround_vehicle.py", line 6, in act
if obs[1][1] < 0.47:
KeyError: 1

And I don't understand what this 0.47 is.

How to deal with these two problems?
Thank you for your answer.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.