加勒比久久综合,国产精品伦一区二区,66精品视频在线观看,一区二区电影

合肥生活安徽新聞合肥交通合肥房產(chǎn)生活服務(wù)合肥教育合肥招聘合肥旅游文化藝術(shù)合肥美食合肥地圖合肥社保合肥醫(yī)院企業(yè)服務(wù)合肥法律

COMP9414代做、代寫Python程序設(shè)計(jì)

時(shí)間:2024-07-21  來源:合肥網(wǎng)hfw.cc  作者:hfw.cc 我要糾錯(cuò)



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





 

掃一掃在手機(jī)打開當(dāng)前頁
  • 上一篇:COMP9021代做、代寫python設(shè)計(jì)程序
  • 下一篇:COMP6008代做、代寫C/C++,Java程序語言
  • 無相關(guān)信息
    合肥生活資訊

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

    關(guān)于我們 | 打賞支持 | 廣告服務(wù) | 聯(lián)系我們 | 網(wǎng)站地圖 | 免責(zé)聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網(wǎng) 版權(quán)所有
    ICP備06013414號-3 公安備 42010502001045

    国产中文在线播放| 麻豆精品一区二区| 色婷婷久久久| 亚洲国产精品一区| 国产精品美女| 蜜桃精品一区二区三区| 天堂久久一区| 黑人一区二区| 日本中文一区二区三区| 国产美女精品| 福利片一区二区| 一区二区高清| 热久久一区二区| 亚洲成aⅴ人片久久青草影院| 欧美激情另类| 亚洲无线视频| 一区二区三区四区精品视频 | 天天躁日日躁狠狠躁欧美| 亚洲国产导航| 日韩中文字幕区一区有砖一区| 国产成人黄色| 精品久久在线| 国产传媒在线| 亚洲特色特黄| 亚洲视频国产| 亚洲伦理久久| 精品久久ai电影| av日韩在线播放| а√在线中文在线新版| 超碰地址久久| www.久久久久爱免| 日韩成人综合网站| 国产精品99一区二区三| 亚洲高清毛片| 国产女人18毛片水真多18精品| 国内精品久久久久久久97牛牛| 免费毛片b在线观看| 老**午夜毛片一区二区三区| 欧美日韩黑人| 九九久久电影| 欧美三级午夜理伦三级小说| 一区二区三区视频播放| 日韩高清三区| 国产一区二区三区四区五区传媒| 麻豆精品一区二区三区| 一区二区日韩免费看| 久久国产婷婷国产香蕉| 成人午夜亚洲| 青草综合视频| 成人在线观看免费视频| 日韩精品第二页| 91在线亚洲| 国产精品第一国产精品| 亚洲综合av一区二区三区| 日韩理论电影院| 蜜桃视频在线网站| 日韩网站中文字幕| 福利精品一区| 亚洲视频二区| 麻豆国产精品官网| 9999精品视频| 日韩高清在线免费观看| 在线一区二区三区视频| 国产精品白丝一区二区三区| 精品大片一区二区| 久久国产精品亚洲人一区二区三区 | www.久久爱.com| 欧美成人精品一级| 日韩av一区二区在线影视| 超碰一区二区三区| 久久精品影视| 黄色成人av网站| 岛国av免费在线观看| 欧美a级在线观看| 四虎精品一区二区免费| 亚洲精品女人| 日韩免费电影在线观看| 青青一区二区三区| 先锋资源久久| 91亚洲国产成人久久精品| 天堂久久一区| www.久久爱.com| 成人自拍在线| 99综合视频| 一本大道色婷婷在线| 久久一综合视频| 先锋影音国产精品| 99免费精品| 男女精品网站| 久久久久久久性潮| 国产日韩欧美一区二区三区| 国产精品2023| 久久国产成人| 久久这里有精品15一区二区三区| 国产精品一区二区精品| 久久久xxx| 色777狠狠狠综合伊人| 久久精品国产一区二区三| 99精品在线免费观看| 日本不卡高清| 蜜臀av性久久久久蜜臀aⅴ四虎| 狠狠久久伊人中文字幕| 欧美男gay| 亚洲精品成人影院| 日韩欧美网址| 自拍自偷一区二区三区| 久久九九电影| 九色porny自拍视频在线观看| 美女看a上一区| 91蜜桃臀久久一区二区| 一本色道久久综合亚洲精品不| 日韩久久一区二区三区| 国产成人精品免费视| 欧美综合另类| av亚洲一区| 日本一区二区三区电影免费观看| 婷婷综合伊人| 欧美在线首页| 欧美aaaaaaaa牛牛影院| av女在线播放| 欧美日韩xxxx| 国产精品日韩| 欧美人成网站| 亚洲电影影音先锋| 99精品视频免费全部在线| 亚洲开心激情| 极品美女一区| 午夜精品福利影院| 水野朝阳av一区二区三区| 你懂的成人av| 希岛爱理一区二区三区| 久久精品久久精品| 精品日韩一区| 黄色精品视频| 免费福利视频一区| 日韩欧美1区| 欧美日韩网站| 国产一区一一区高清不卡| 99久久婷婷国产综合精品青牛牛| 色呦哟—国产精品| 日本亚洲欧美天堂免费| 成人一区二区| 日韩成人午夜电影| 中国色在线日|韩| 日韩av二区在线播放| 三级欧美在线一区| 日韩av高清在线观看| 97精品中文字幕| 日韩精品一区二区三区中文| 国产日韩欧美一区二区三区在线观看| 欧美日韩一二三四| 岛国精品在线| 欧美成人久久| www.久久久久爱免| 日韩一区欧美二区| 日韩avvvv在线播放| 免费福利视频一区二区三区| 国产乱人伦精品一区| 成人在线视频免费| 黑人操亚洲人| 高清久久精品| 毛片在线网站| 欧美日韩在线播放视频| 亚洲国产一区二区精品专区| 日韩亚洲在线| 日韩成人av影视| 国产一区二区久久久久| 欧美福利一区| 国产精品欧美日韩一区| 色一区二区三区| 日韩精品影视| 国产精品啊啊啊| 欧美残忍xxxx极端| 久久国产免费| 欧美精品国产一区二区| 蜜乳av一区二区三区| 精品一区二区三区的国产在线观看| 成人四虎影院| 国产农村妇女精品一二区| 日韩中文一区二区| 国产欧美一级| 国产精品论坛| 99久久www免费| 久久综合亚洲| 日韩成人在线电影| 日韩精品一级二级| 亚洲不卡av不卡一区二区| 在线观看欧美| 神马久久资源| 玖玖精品视频| 999久久久91| 先锋影音国产精品| 欧美一级久久| 最近在线中文字幕| 女人香蕉久久**毛片精品| 北条麻妃一区二区三区在线观看| 免费亚洲视频| 新版的欧美在线视频| 亚洲女同另类| 久久免费国产|