99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

COMP9414代做、代寫Python程序設計

時間:2024-07-21  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



COMP9414 24T2
Artificial Intelligence
Assignment 2 - Reinforcement Learning
Due: Week 9, Wednesday, 24 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:
1https://www.gymlibrary.dev/environments/toy text/taxi/
1
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 14 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





 

掃一掃在手機打開當前頁
  • 上一篇:COMP9021代做、代寫python設計程序
  • 下一篇:COMP6008代做、代寫C/C++,Java程序語言
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務-企業/產品研發/客戶要求/設計優化
    有限元分析 CAE仿真分析服務-企業/產品研發
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
  • 短信驗證碼 目錄網 排行網

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

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          9000px;">

                蜜桃视频一区二区三区| 亚洲精品国产第一综合99久久| 99re热这里只有精品免费视频| 午夜精品123| 一区二区三区免费看视频| 国产精品日韩成人| 久久久99精品久久| 国产亚洲一区二区在线观看| 久久久久久久网| 国产午夜亚洲精品理论片色戒| 精品久久久久99| 欧美大片拔萝卜| 亚洲精品一区二区三区精华液| 91精品视频网| 欧美精品一区二区高清在线观看| 欧美成人伊人久久综合网| 欧美日韩国产高清一区二区三区| 在线一区二区三区四区| 91福利国产精品| 欧美精品黑人性xxxx| 欧美精品一级二级三级| 欧美成人艳星乳罩| 国产亚洲短视频| 亚洲人成电影网站色mp4| 亚洲mv大片欧洲mv大片精品| 丝袜美腿亚洲色图| 国产一区999| 91亚洲精品久久久蜜桃网站| 日本精品一级二级| 日韩一本二本av| 国产精品人人做人人爽人人添| 中文字幕日韩一区| 日日噜噜夜夜狠狠视频欧美人| 寂寞少妇一区二区三区| 成人激情动漫在线观看| 欧美三级一区二区| 久久综合久久综合亚洲| 亚洲三级电影全部在线观看高清| 亚洲午夜羞羞片| 国产精品自拍一区| 91福利国产成人精品照片| 日韩一级片在线观看| 国产精品午夜久久| 天天操天天干天天综合网| 国产成人在线视频网址| 欧美色爱综合网| 中文字幕巨乱亚洲| 日韩av电影天堂| 欧美无砖专区一中文字| 欧美欧美欧美欧美| 国产欧美精品一区aⅴ影院 | 亚洲精品日产精品乱码不卡| 全国精品久久少妇| 97精品电影院| 久久久久久久久久久黄色| 亚洲尤物在线视频观看| 成人精品在线视频观看| 日韩三级视频在线看| 亚洲乱码中文字幕综合| 岛国精品一区二区| 777亚洲妇女| 亚洲精品日日夜夜| 岛国av在线一区| 久久精品一区二区三区不卡| 五月天久久比比资源色| 91丨porny丨户外露出| 久久久99久久| 国产乱理伦片在线观看夜一区 | 欧美性猛片xxxx免费看久爱| 日本一区二区三区在线观看| 精品一区二区在线视频| 在线观看av一区二区| 国产精品久久久久久久久免费丝袜| 韩国精品在线观看| 精品少妇一区二区三区免费观看| 天天操天天色综合| 欧美精品一级二级三级| 亚洲电影一区二区| 欧美日韩国产综合一区二区三区| 亚洲欧美另类图片小说| 99国产精品久久久久| 欧美国产乱子伦| av不卡在线观看| 国产精品不卡视频| 色噜噜狠狠成人网p站| 亚洲视频资源在线| 色婷婷精品久久二区二区蜜臂av | 91免费国产在线观看| 亚洲视频在线观看三级| 色婷婷av一区二区三区软件| 亚洲黄色性网站| 欧美精三区欧美精三区| 裸体歌舞表演一区二区| 国产亚洲一区二区三区四区| 成人精品免费网站| 亚洲综合激情网| 欧美一区二区三区视频| 国内精品国产成人国产三级粉色| 久久综合资源网| 盗摄精品av一区二区三区| 最新热久久免费视频| 欧美片网站yy| 久久精品国产一区二区| 91亚洲大成网污www| 中文av一区二区| 欧美在线观看视频在线| 一区二区三区欧美日| 欧美日韩精品免费| 亚洲另类中文字| 日韩一区二区三区视频在线观看| 天天操天天综合网| 日韩欧美一级二级三级久久久| 麻豆精品久久精品色综合| 777午夜精品视频在线播放| 国内偷窥港台综合视频在线播放| 精品99久久久久久| 国产在线不卡一区| 国产精品国产三级国产专播品爱网 | 视频一区中文字幕国产| 91精品国产美女浴室洗澡无遮挡| 午夜电影网一区| 欧美成人a∨高清免费观看| 国产精品白丝av| 亚洲欧洲性图库| 久久综合国产精品| 99re热这里只有精品免费视频| 中文字幕在线一区二区三区| 色哟哟国产精品| 免费观看一级特黄欧美大片| 日韩视频在线永久播放| 色婷婷av一区二区三区大白胸| 日本色综合中文字幕| 久久久久青草大香线综合精品| 99视频热这里只有精品免费| 亚洲在线一区二区三区| 91精品国产品国语在线不卡| 成人高清视频在线观看| 五月婷婷综合在线| 久久久精品欧美丰满| 日本电影欧美片| 紧缚奴在线一区二区三区| 亚洲第一福利视频在线| 久久久精品一品道一区| 欧美三级电影网| 99久久久精品| 国模套图日韩精品一区二区| 精品综合免费视频观看| 亚洲视频狠狠干| 国产色产综合产在线视频| 欧美午夜寂寞影院| 成人午夜精品在线| 国产成人8x视频一区二区| 亚洲h精品动漫在线观看| 中文字幕一区日韩精品欧美| 日韩欧美亚洲国产另类| 色视频成人在线观看免| 99精品1区2区| 国产激情视频一区二区三区欧美 | 精品国精品自拍自在线| 精品乱人伦小说| 欧美放荡的少妇| 欧美日韩在线三区| 99精品热视频| 日本高清免费不卡视频| 成人免费福利片| 国产福利一区二区三区在线视频| 美女一区二区视频| 亚洲同性gay激情无套| 亚洲欧洲成人自拍| 中文字幕av在线一区二区三区| 日韩欧美国产系列| 欧美精品高清视频| 91在线国产福利| 欧美日韩久久久久久| 色悠久久久久综合欧美99| 国产91精品露脸国语对白| 国产精品资源在线观看| 美女视频第一区二区三区免费观看网站 | 亚洲欧美日韩中文播放 | 国产91清纯白嫩初高中在线观看 | 色综合久久综合中文综合网| 国产成人免费视频| 国产**成人网毛片九色| 久久电影网电视剧免费观看| 成人亚洲一区二区一| av一区二区三区四区| 色老头久久综合| 在线免费av一区| 久久人人超碰精品| 国产精品色哟哟| 国产精品久久久久桃色tv| 日韩美女精品在线| 国产精品美女视频| 久久一夜天堂av一区二区三区| 欧美tickling网站挠脚心| 久久影院视频免费| 欧美高清一级片在线观看| 亚洲欧美色图小说| 奇米色一区二区| 成人丝袜高跟foot|