monokim / pyracing Goto Github PK
View Code? Open in Web Editor NEWA.I. learns how to drive with reinforcement learning
A.I. learns how to drive with reinforcement learning
I am trying to make something similar to this for a collage project can you please tell me how to write environment like open ai gym style
Hi,
I'm trying to make a sim ilar game with q-learning but I just don't really understand what your code is saying.
I would very much appreciate it if you could explain it in some way or maybe we can run through the code on Discord?
thanks in advance
Hello @monokim i am a student intrested in your work. I am quite new to python so i am having some trouble understanding how the lines under the 'def load_and_play' work and how i can access this line of code as i have not seen this pop up ("Start loading history"). If you could explain to me how this works i would most appreciate it. Here is the code for reference:
def load_and_play():
print("Start loading history")
history_list = ['30000.npy']
# load data from history file
print("Start updating q_table")
discount_factor = 0.99
for list in history_list:
history = load_data(list)
learning_rate = get_learning_rate(0)
print(list)
file_size = len(history)
print("file size : " + str(file_size))
i = 0
for data in history:
state_0, action, reward, state, done = data
best_q = np.amax(q_table[state])
q_table[state_0 + (action,)] += learning_rate * (reward + discount_factor * (best_q) - q_table[state_0 + (action,)])
if done == True:
i += 1
learning_rate = get_learning_rate(i)`
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.