alireza-montazeri / av-nash-q-learning Goto Github PK
View Code? Open in Web Editor NEWImplementation of Nash Q-Learning for Autonomous Vehicle Decision Making
Implementation of Nash Q-Learning for Autonomous Vehicle Decision Making
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.