亚洲十八**毛片_亚洲综合影院_五月天精品一区二区三区_久久久噜噜噜久久中文字幕色伊伊 _欧美岛国在线观看_久久国产精品毛片_欧美va在线观看_成人黄网大全在线观看_日韩精品一区二区三区中文_亚洲一二三四区不卡

COMP9414代寫、Python語言編程代做

時間:2024-07-06  來源:  作者: 我要糾錯



COMP9414 24T2
Artificial Intelligence
Assignment 2 - Reinforcement Learning
Due: Week 9, Wednesday, 26 July 2024, 11:55 PM.
1 Problem context
Taxi Navigation with Reinforcement Learning: In this assignment,
you are asked to implement Q-learning and SARSA methods for a taxi nav-
igation problem. To run your experiments and test your code, you should
make use of the Gym library1, an open-source Python library for developing
and comparing reinforcement learning algorithms. You can install Gym on
your computer simply by using the following command in your command
prompt:
pip i n s t a l l gym
In the taxi navigation problem, there are four designated locations in the
grid world indicated by R(ed), G(reen), Y(ellow), and B(lue). When the
episode starts, one taxi starts off at a random square and the passenger is
at a random location (one of the four specified locations). The taxi drives
to the passenger’s location, picks up the passenger, drives to the passenger’s
destination (another one of the four specified locations), and then drops off
the passenger. Once the passenger is dropped off, the episode ends. To show
the taxi grid world environment, you can use the following code:

env = gym .make(”Taxi?v3 ” , render mode=”ans i ” ) . env
s t a t e = env . r e s e t ( )
rendered env = env . render ( )
p r i n t ( rendered env )
In order to render the environment, there are three modes known as
“human”, “rgb array, and “ansi”. The “human” mode visualizes the envi-
ronment in a way suitable for human viewing, and the output is a graphical
window that displays the current state of the environment (see Fig. 1). The
“rgb array” mode provides the environment’s state as an RGB image, and
the output is a numpy array representing the RGB image of the environment.
The “ansi” mode provides a text-based representation of the environment’s
state, and the output is a string that represents the current state of the
environment using ASCII characters (see Fig. 2).
Figure 1: “human” mode presentation for the taxi navigation problem in
Gym library.
You are free to choose the presentation mode between “human” and
“ansi”, but for simplicity, we recommend “ansi” mode. Based on the given
description, there are six discrete deterministic actions that are presented in
Table 1.
For this assignment, you need to implement the Q-learning and SARSA
algorithms for the taxi navigation environment. The main objective for this
assignment is for the agent (taxi) to learn how to navigate the gird-world
and drive the passenger with the minimum possible steps. To accomplish
the learning task, you should empirically determine hyperparameters, e.g.,
the learning rate α, exploration parameters (such as ? or T ), and discount
factor γ for your algorithm. Your agent should be penalized -1 per step it
2
Figure 2: “ansi” mode presentation for the taxi navigation problem in Gym
library. Gold represents the taxi location, blue is the pickup location, and
purple is the drop-off location.
Table 1: Six possible actions in the taxi navigation environment.
Action Number of the action
Move South 0
Move North 1
Move East 2
Move West 3
Pickup Passenger 4
Drop off Passenger 5
takes, receive a +20 reward for delivering the passenger, and incur a -10
penalty for executing “pickup” and “drop-off” actions illegally. You should
try different exploration parameters to find the best value for exploration
and exploitation balance.
As an outcome, you should plot the accumulated reward per episode and
the number of steps taken by the agent in each episode for at least 1000
learning episodes for both the Q-learning and SARSA algorithms. Examples
of these two plots are shown in Figures 3–6. Please note that the provided
plots are just examples and, therefore, your plots will not be exactly like the
provided ones, as the learning parameters will differ for your algorithm.
After training your algorithm, you should save your Q-values. Based on
your saved Q-table, your algorithms will be tested on at least 100 random
grid-world scenarios with the same characteristics as the taxi environment for
both the Q-learning and SARSA algorithms using the greedy action selection
3
Figure 3: Q-learning reward. Figure 4: Q-learning steps.
Figure 5: SARSA reward. Figure 6: SARSA steps.
method. Therefore, your Q-table will not be updated during testing for the
new steps.
Your code should be able to visualize the trained agent for both the Q-
learning and SARSA algorithms. This means you should render the “Taxi-
v3” environment (you can use the “ansi” mode) and run your trained agent
from a random position. You should present the steps your agent is taking
and how the reward changes from one state to another. An example of the
visualized agent is shown in Fig. 7, where only the first six steps of the taxi
are displayed.
2 Testing and discussing your code
As part of the assignment evaluation, your code will be tested by tutors
along with you in a discussion carried out in the tutorial session in week 10.
The assignment has a total of 25 marks. The discussion is mandatory and,
therefore, we will not mark any assignment not discussed with tutors.
Before your discussion session, you should prepare the necessary code for
this purpose by loading your Q-table and the “Taxi-v3” environment. You
should be able to calculate the average number of steps per episode and the
4
Figure 7: The first six steps of a trained agent (taxi) based on Q-learning
algorithm.
average accumulated reward (for a maximum of 100 steps for each episode)
for the test episodes (using the greedy action selection method).
You are expected to propose and build your algorithms for the taxi nav-
igation task. You will receive marks for each of these subsections as shown
in Table 2. Except for what has been mentioned in the previous section, it is
fine if you want to include any other outcome to highlight particular aspects
when testing and discussing your code with your tutor.
For both Q-learning and SARSA algorithms, your tutor will consider the
average accumulated reward and the average taken steps for the test episodes
in the environment for a maximum of 100 steps for each episode. For your Q-
learning algorithm, the agent should perform at most 13 steps per episode on
average and obtain a minimum of 7 average accumulated reward. Numbers
worse than that will result in a score of 0 marks for that specific section.
For your SARSA algorithm, the agent should perform at most 15 steps per
episode on average and obtain a minimum of 5 average accumulated reward.
Numbers worse than that will result in a score of 0 marks for that specific
section.
Finally, you will receive 1 mark for code readability for each task, and
your tutor will also give you a maximum of 5 marks for each task depending
on the level of code understanding as follows: 5. Outstanding, 4. Great,
3. Fair, 2. Low, 1. Deficient, 0. No answer.
5
Table 2: Marks for each task.
Task Marks
Results obtained from agent learning
Accumulated rewards and steps per episode plots for Q-learning
algorithm.
2 marks
Accumulated rewards and steps per episode plots for SARSA
algorithm.
2 marks
Results obtained from testing the trained agent
Average accumulated rewards and average steps per episode for
Q-learning algorithm.
2.5 marks
Average accumulated rewards and average steps per episode for
SARSA algorithm.
2.5 marks
Visualizing the trained agent for Q-learning algorithm. 2 marks
Visualizing the trained agent for SARSA algorithm. 2 marks
Code understanding and discussion
Code readability for Q-learning algorithm 1 mark
Code readability for SARSA algorithm 1 mark
Code understanding and discussion for Q-learning algorithm 5 mark
Code understanding and discussion for SARSA algorithm 5 mark
Total marks 25 marks
3 Submitting your assignment
The assignment must be done individually. You must submit your assignment
solution by Moodle. This will consist of a single .zip file, including three
files, the .ipynb Jupyter code, and your saved Q-tables for Q-learning and
SARSA (you can choose the format for the Q-tables). Remember your files
with your Q-tables will be called during your discussion session to run the
test episodes. Therefore, you should also provide a script in your Python
code at submission to perform these tests. Additionally, your code should
include short text descriptions to help markers better understand your code.
Please be mindful that providing clean and easy-to-read code is a part of
your assignment.
Please indicate your full name and your zID at the top of the file as a
comment. You can submit as many times as you like before the deadline –
later submissions overwrite earlier ones. After submitting your file a good
6
practice is to take a screenshot of it for future reference.
Late submission penalty: UNSW has a standard late submission
penalty of 5% per day from your mark, capped at five days from the as-
sessment deadline, after that students cannot submit the assignment.
4 Deadline and questions
Deadline: Week 9, Wednesday 24 of July 2024, 11:55pm. Please use the
forum on Moodle to ask questions related to the project. We will prioritise
questions asked in the forum. However, you should not share your code to
avoid making it public and possible plagiarism. If that’s the case, use the
course email cs9414@cse.unsw.edu.au as alternative.
Although we try to answer questions as quickly as possible, we might take
up to 1 or 2 business days to reply, therefore, last-moment questions might
not be answered timely.
For any questions regarding the discussion sessions, please contact directly
your tutor. You can have access to your tutor email address through Table
3.
5 Plagiarism policy
Your program must be entirely your own work. Plagiarism detection software
might be used to compare submissions pairwise (including submissions for
any similar projects from previous years) and serious penalties will be applied,
particularly in the case of repeat offences.
Do not copy from others. Do not allow anyone to see your code.
Please refer to the UNSW Policy on Academic Honesty and Plagiarism if you
require further clarification on this matter.
請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp









 

標簽:

掃一掃在手機打開當前頁
  • 上一篇:FINS5510代寫、代做Python/c++程序語言
  • 下一篇:代寫公式指標 代寫指標股票公式定制開發
  • 無相關信息
    昆明生活資訊

    昆明圖文信息
    蝴蝶泉(4A)-大理旅游
    蝴蝶泉(4A)-大理旅游
    油炸竹蟲
    油炸竹蟲
    酸筍煮魚(雞)
    酸筍煮魚(雞)
    竹筒飯
    竹筒飯
    香茅草烤魚
    香茅草烤魚
    檸檬烤魚
    檸檬烤魚
    昆明西山國家級風景名勝區
    昆明西山國家級風景名勝區
    昆明旅游索道攻略
    昆明旅游索道攻略
  • 短信驗證碼平臺 理財 WPS下載

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 kmw.cc Inc. All Rights Reserved. 昆明網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    aaa日本高清在线播放免费观看| 国产在线观看一区二区 | 国产精品第十页| 亚洲国产老妈| 在线看片欧美| 免费在线视频一区| 国产一区二区三区在线观看免费视频| 狠狠v欧美v日韩v亚洲ⅴ| 成年人网站91| 亚洲色图制服丝袜| 欧美性猛xxx| www.777色| 日韩a在线看| 成人影音在线| 国产第一亚洲| 九九久久婷婷| 亚洲精品女人| 北岛玲一区二区三区四区| 亚洲国产电影在线观看| 午夜婷婷国产麻豆精品| 91精品国产综合久久久久久久| 日本wwwwwwwzzzzz视频| 日韩三级电影网| 女人让男人操自己视频在线观看| 国产精品视频一区二区三区综合 | 日韩欧美一区二区免费| 在线观看污污视频| 日本中文字幕在线2020| 亚洲黄色网址| 亚洲v天堂v手机在线| 亚洲激情社区| 91免费国产在线观看| 精品美女永久免费视频| 日本wwwwwwwzzzzz视频| 一广人看www在线观看免费视频| 人人视频精品| 久久中文字幕av| 国产一区二区三区免费观看| 亚洲欧美区自拍先锋| 日韩欧美国产一区在线观看| 国产露出视频在线观看| 99久久亚洲国产日韩美女| 欧美理论在线播放| 国产成人亚洲综合色影视| 亚洲国产精品麻豆| 日本在线免费观看视频| 男女羞羞在线观看| 天天射成人网| 99re这里都是精品| 51久久夜色精品国产麻豆| 九色网友自拍视频手机在线| 成人国产一区| 一区二区日本视频| 亚洲欧美一区二区三区孕妇| 成人eeuss影院在线观看| 日韩激情av| 精品视频久久| 91在线精品秘密一区二区| 欧美日韩国产区一| caopo在线| 女厕嘘嘘一区二区在线播放| 国产在线观看一区二区| 欧美自拍偷拍一区| 久久黄色美女电影| 国产欧美日韩一区二区三区四区| 国产一区二区在线免费观看| 一本色道久久综合亚洲精品按摩| 国产女人在线观看| 日韩精选在线| 99精品在线观看视频| 欧美成人高清电影在线| 中文在线中文资源| 免费精品视频| 亚洲成av人影院在线观看网| 国产亚洲依依| 精品亚洲成人| 国产精品理论在线观看| 最新国产在线视频| 久久资源综合| 久久久一区二区| 羞羞网站免费观看| 精品欧美午夜寂寞影院| 久久综合视频网| 亚洲男男gay视频| 欧美挤奶吃奶水xxxxx| 国产一区高清在线| 羞羞小视频在线观看| 国产精品一区二区三区av | 精品国产乱码久久久久久牛牛| 美女高潮视频在线看| 免费亚洲网站| 欧美美女激情18p| a欧美人片人妖| 久久精品国产**网站演员| 欧美精品在欧美一区二区少妇| 深夜成人在线| 麻豆国产91在线播放| 91精品国产高清一区二区三区蜜臀| 国产调教在线| 久久国产夜色精品鲁鲁99| 欧美成人一区二区| 一区二区在线免费播放| 久久精品人人做人人爽97| 有色激情视频免费在线| 色135综合网| 欧美色另类天堂2015| 成人欧美大片| 99re视频这里只有精品| 亚州色图欧美色图| 中文字幕免费精品| 在线视频国内自拍亚洲视频| 肉色欧美久久久久久久免费看| 国产在线精品一区二区不卡了| h网址在线观看| 久久久久久影院| 色屁屁一区二区| 国产精品一区三区在线观看| 国产精品视频你懂的| 性欧美高清come| 国产精品夜夜嗨| 九色在线视频| 蜜桃一区二区三区在线观看| 少妇激情av一区二区三区| 欧美日韩在线观看视频小说| 在线亚洲精品福利网址导航| 日本成人精品| 国产精品无人区| 中国色在线日|韩| 97久久精品人人做人人爽| 蜜桃视频在线观看www社区 | 视频一区二区欧美| 亚洲精品一区二区| 在线欧美视频| 人与动性xxxxx免费视频| 亚洲午夜伦理| 在线看片黄色| 日韩高清在线一区| 欧美视频综合| 国产一区二区调教| gogo在线观看| 国产亚洲精品超碰| 91av亚洲| 亚洲人成7777| 超碰地址久久| 欧美日韩在线亚洲一区蜜芽| 自拍亚洲一区| 伊人伊人av电影| 在线亚洲欧美| 久草视频在线看| 99视频有精品| 黑人巨大精品| 亚洲综合一二区| 乱中年女人伦av一区二区| 欧洲精品一区二区| 99久久99热这里只有精品 | 国产欧美中文在线| 伊人久久一区| 在线观看不卡一区| 中文字幕一区二区三区久久网站| 99在线免费视频| 麻豆一区二区在线| 久操视频在线播放| 国产精品乱人伦| 欧美人与动xxxxz0oz| 日韩视频永久免费| 亚洲综合好骚| 丝袜中文在线| 亚洲午夜免费电影| 成人在线免费小视频| 国产特级嫩嫩嫩bbb| 国产一区二区三区四区在线观看| 毛片网站在线看| 一区二区三区日韩| 精品国产91乱码一区二区三区四区| 亚洲jizzjizz妇女| 国产乱对白刺激视频不卡| 中文字幕21页在线看| 色综合欧美在线视频区| 亚洲激情五月| 在线观看免费黄色| 一区二区三区免费网站| 日韩欧美精品综合| 免费成人av电影| 国产精品久久久久久久久久久免费看 | 精品毛片三在线观看| 欧美在线91| 2021国产在线| 色伊人久久综合中文字幕| 国产日韩欧美在线播放不卡| av小片在线| 亚洲国产美国国产综合一区二区| 91精品一区国产高清在线gif| 黄色大片在线看| 国产欧美精品一区二区三区四区| 神马久久影院| 成年人在线看| 欧美日韩亚洲国产一区| 日日夜夜精品免费视频| 久久久国产精品网站| 国产黄色免费电影|