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

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

代做6CCS3AIN、Python語言編程代寫
代做6CCS3AIN、Python語言編程代寫

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



Coursework
1 Introduction
This coursework exercise asks you to write code to create an MDP-solver to work in the Pacman
environment that we used for the practical exercises.
Read all these instructions before starting.
This exercise will be assessed.
2 Getting started
You should download the file pacman-cw.zip from KEATS. This contains a familiar set of files that
implement Pacman, and version 6 of api.py which defines the observability of the environment that
you will have to deal with, and the same non-deterministic motion model that the practicals used.
Version 6 of api.py, further extends what Pacman can know about the world. In addition to
knowing the location of all the objects in the world (walls, food, capsules, ghosts), Pacman can now
see what state the ghosts are in, and so can decide whether they have to be avoided or not.
3 What you need to do
3.1 Write code
This coursework requires you to write code to control Pacman and win games using an MDP-solver.
For each move, you will need to have the model of Pacman’s world, which consists of all the elements
of a Markov Decision Process, namely:
• A finite set of states S;
• A finite set of actions A;
• A state-transition function P(s
0
|s, a);
• A reward function R;
• A discount factor γ ∈ [0, 1];
Following this you can then compute the action to take, either via Value Iteration, Policy Iteration or
Modified Policy Iteration. It is expected that you will correctly implement such a solver and optimize
the choice of the parameters. There is a (rather familiar) skeleton piece of code to take as your
starting point in the file mdpAgents.py. This code defines the class MDPAgent.
There are two main aims for your code:
1 Mallmann-Trenn / McBurney / 6ccs3ain-cw(a) Win hard in smallGrid
(b) Win hard in mediumClassic
To win games, Pacman has to be able to eat all the food. In this coursework, for these objectives,
“winning” just means getting the environment to report a win. Score is irrelevant.
3.1.1 Getting Excellence points
There is a difference between winning a lot and winning well. This is why completing aim (a) and
(b) from previous section allows you to collect up to 80 points in the Coursework. The remaining
20 points are obtained by having a high Excellence Score Difference in the mediumClassic layout,
a metric that directly comes from having a high average winning score. This can be done through
different strategies, for example through chasing eatable ghosts.
A couple of things to be noted. Let W be the set of games won, i.e., |W| ∈ [0, 25]. For any won
game i ∈ W define sw(i) to be the score obtained in game/run i.
• ∆Se in the marksheet is the Excellence Score Difference. You can use the following formula
to calculate it when you test your code and compare the result against the values in Table 3
∆Se =
X
i∈W
(sw(i) − 1500) (1)
Losses count as 0 score and are not considered. If ∆Se < 0, we set it to 0 (you cannot have
a negative excellence score difference).
• Because smallGrid does not have room for score improvement, we will only look at the
mediumClassic layout
• You can still get excellence points if your code performs poorly in the number of wins; marking
points are assigned independently in the two sections
• Note however that marking points are assigned such that it is not convenient for you to directly
aim for a higher average winning score without securing previous sections’s aims (a) and (b)
first
• We will use the same runs in mediumClassic to derive the marks for Table 2 and Table 3.
3.2 Things to bear in mind
Some things that you may find helpful:
(a) We will evaluate whether your code can win games in smallGrid by running:
python pacman.py -q -n 25 -p MDPAgent -l smallGrid
-l is shorthand for -layout. -p is shorthand for -pacman. -q runs the game without the
interface (making it faster).
(b) We will evaluate whether your code can win games in mediumClassic by running:
python pacman.py -q -n 25 -p MDPAgent -l mediumClassic
The -n 25 runs 25 games in a row.
2 Mallmann-Trenn / McBurney / 6ccs3ain-cw(c) The time limit for evlauation is 25 minute for mediumClassic and 5 minutes for small grid.
It will run on a high performance computer with 26 cores and 192 Gb of RAM. The time
constraints are chosen after repeated practical experience and reflect a fair time bound.
(d) When using the -n option to run multiple games, the same agent (the same instance of
MDPAgent.py) is run in all the games.
That means you might need to change the values of some of the state variables that control
Pacman’s behaviour in between games. You can do that using the final() function.
(e) There is no requirement to use any of the methods described in the practicals, though you
can use these if you wish.
(f) If you wish to use the map code I provided in MapAgent, you may do this, but you need to
include comments that explain what you used and where it came from (just as you would for
any code that you make use of but don’t write yourself).
(g) You can only use libraries that are part of a the standard Python 2.7 distribution. This ensures
that (a) everyone has access to the same libraries (since only the standard distribution is
available on the lab machines) and (b) we don’t have trouble running your code due to some
library incompatibilities.
(h) You should comment your code and have a consistent style all over the file.
3.3 Limitations
There are some limitations on what you can submit.
(a) Your code must be in Python 2.7. Code written in a language other than Python will not be
marked.
Code written in Python 3.X is unlikely to run with the clean copy of pacman-cw that we will
test it against. If is doesn’t run, you will lose marks.
Code using libraries that are not in the standard Python 2.7 distribution will not run (in
particular, NumPy is not allowed). If you choose to use such libraries and your code does not
run as a result, you will lose marks.
(b) Your code must only interact with the Pacman environment by making calls through functions
 in Version 6 of api.py. Code that finds other ways to access information about the
environment will lose marks.
The idea here is to have everyone solve the same task, and have that task explore issues with
non-deterministic actions.
(c) You are not allowed to modify any of the files in pacman-cw.zip except mdpAgents.py.
Similar to the previous point, the idea is that everyone solves the same problem — you can’t
change the problem by modifying the base code that runs the Pacman environment. Therefore,
you are not allowed to modify the api.py file.
(d) You are not allowed to copy, without credit, code that you might get from other students or
find lying around on the Internet. We will be checking.
This is the usual plagiarism statement. When you submit work to be marked, you should only
seek to get credit for work you have done yourself. When the work you are submitting is code,
3 Mallmann-Trenn / McBurney / 6ccs3ain-cwyou can use code that other people wrote, but you have to say clearly that the other person
wrote it — you do that by putting in a comment that says who wrote it. That way we can
adjust your mark to take account of the work that you didn’t do.
(e) Your code must be based on solving the Pacman environment as an MDP. If you don’t submit
a program that contains a recognisable MDP solver, you will lose marks.
(f) The only MDP solvers we will allow are the ones presented in the lecture, i.e., Value iteration,
Policy iteration and Modified policy iteration. In particular, Q-Learning is unacceptable.
(g) Your code must only use the results of the MDP solver to decide what to do. If you submit
code which makes decisions about what to do that uses other information in addition to what
the MDP-solver generates (like ad-hoc ghost avoiding code, for example), you will lose marks.
This is to ensure that your MDP-solver is the thing that can win enough games to pass the
functionality test.
4 What you have to hand in
Your submission should consist of a single ZIP file. (KEATS will be configured to only accept a
single file.) This ZIP file must include a single Python .py file (your code).
The ZIP file must be named:
cw <lastname> <firstname>.zip
so my ZIP file would be named cw mallmann-trenn frederik.zip.
Remember that we are going to evaluate your code by running your code by using variations on
python pacman.py -p MDPAgent
(see Section 5 for the exact commands we will use) and we will do this in a vanilla copy of the
pacman-cw folder, so the base class for your MDP-solving agent must be called MDPAgent.
To streamline the marking of the coursework, you must put all your code in one file, and this file
must be called mdpAgents.py,
Do not just include the whole pacman-cw folder. You should only include the one file that includes
the code you have written.
Submissions that do not follow these instructions will lose marks. That includes submissions which
are RAR files. RAR is not ZIP.
5 How your work will be marked
See cw-marksheet.pdf for more information about the marking.
There will be six components of the mark for your work:
(a) Functionality
We will test your code by running your .py file against a clean copy of pacman-cw.
As discussed above, the number of games you win determines the number of marks you get.
Since we will check it this way, you may want to reset any internal state in your agent using
4 Mallmann-Trenn / McBurney / 6ccs3ain-cwfinal() (see Section 3.2). For the excellence marks, we will look at the winning scores for
the mediumClassic layout.
Since we have a lot of coursework to mark, we will limit how long your code has to demonstrate
that it can win. We will terminate the run of the 25smallGrid games after 5 minutes, and
will terminate the run of the 25 mediumClassic games after 25 minutes. If your code has
failed to win enough games within these times, we will mark it as if it lost. Note that we will
use the -q command, which runs Pacman without the interface, to speed things up.
(b) Code not written in Python will not be marked.
(c) Code that does not run in our test setting will receive 0 marks. Regardless of the reason.
(d) We will release the random seed that we use for marking. Say the seed is 42, then you need
to do the following to verify our marking is correct:
1) fix the random seed to 42 (int, not string type) at line 541 of pacman.py. (not ’42’)
2) download a fresh copy of the new api (to avoid using files you modified yourself)
3) run python pacman.py -q -f -n 25 -p MDPAgent -l mediumClassic
4) you should get the same result as us. If not repeat step 3) again. Should the outcome be
different, then you didn’t fix the random seed correctly. Go back to 1)
A copy of the marksheet, which shows the distribution of marks across the different elements of the
coursework, will be available from KEATS.
5 Mallmann-Trenn / McBurney / 6ccs3ain-cw

請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp



 

掃一掃在手機打開當前頁
  • 上一篇:MS3251代寫、代做Python/Java程序
  • 下一篇:魚享花全國客服電話是多少.魚享花人工客服服務熱線電話
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
    合肥機場巴士2號線
    合肥機場巴士2號線
    合肥機場巴士1號線
    合肥機場巴士1號線
  • 短信驗證碼 豆包 幣安下載 AI生圖 目錄網

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

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

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

          9000px;">

                国产精品久久毛片a| 欧美在线观看一二区| 精品奇米国产一区二区三区| 首页国产欧美日韩丝袜| 欧美激情在线看| 欧美一级一区二区| 色欧美日韩亚洲| 丁香六月久久综合狠狠色| 奇米色一区二区| 亚洲高清免费视频| 亚洲欧美电影一区二区| 国产精品女主播在线观看| 精品久久五月天| 7777精品伊人久久久大香线蕉 | 日本一区二区三区四区 | 色综合视频在线观看| 黄色小说综合网站| 另类专区欧美蜜桃臀第一页| 亚洲成a人v欧美综合天堂| 亚洲视频一区在线| 亚洲色图欧洲色图婷婷| 中文字幕一区二区不卡| 国产精品网友自拍| 国产精品免费久久| 欧美日韩免费视频| 欧美日韩国产高清一区| 欧美性极品少妇| 欧美日韩在线亚洲一区蜜芽| 欧美午夜精品电影| 欧美一二三在线| 精品精品欲导航| 久久嫩草精品久久久精品| 精品欧美久久久| 国产日韩欧美不卡| 亚洲欧洲综合另类| 亚洲bt欧美bt精品777| 免费观看日韩电影| 日韩在线a电影| 久久国产精品99精品国产| 国产一区二区三区四区在线观看| 国产福利一区二区| 色婷婷亚洲精品| 色综合天天综合狠狠| 欧美性生活久久| 日韩免费观看高清完整版 | 欧美日韩成人高清| 一区二区三区产品免费精品久久75 | 亚洲欧美日韩国产中文在线| 91小宝寻花一区二区三区| 激情综合五月天| 亚洲观看高清完整版在线观看| 日韩午夜激情视频| 日韩午夜激情免费电影| 91欧美激情一区二区三区成人| 五月婷婷综合在线| 国产美女精品一区二区三区| 激情av综合网| 国产精品99久| 成人黄色小视频在线观看| 亚洲国产成人tv| **性色生活片久久毛片| 蜜臀av一区二区| 九色综合国产一区二区三区| 日本一不卡视频| 日本伊人色综合网| 狠狠色丁香久久婷婷综合丁香| 日本在线不卡视频一二三区| 国产在线精品一区在线观看麻豆| 国产在线视频精品一区| 成人av在线影院| 国产激情偷乱视频一区二区三区| 狠狠色丁香九九婷婷综合五月| 成人精品国产免费网站| 91麻豆精品一区二区三区| 欧洲国内综合视频| 久久嫩草精品久久久久| 欧美国产精品久久| 国产精品久久久久天堂| 五月天亚洲精品| 在线精品视频小说1| 久久综合久久鬼色| 久久99精品久久久久久动态图 | 国产婷婷色一区二区三区| 亚洲大型综合色站| 99久免费精品视频在线观看| 久久久久久久久99精品| 免费在线一区观看| 国产一区二区网址| 欧美成人精品1314www| 亚洲精选视频免费看| 亚洲国产美女搞黄色| 成人app网站| 亚洲精品国产成人久久av盗摄| 成人激情黄色小说| 亚洲一区二区三区免费视频| 成人免费观看视频| 中文无字幕一区二区三区| 大尺度一区二区| 中文字幕视频一区| 粉嫩aⅴ一区二区三区四区五区| 91精品啪在线观看国产60岁| 免费在线观看一区| 亚洲精品一区二区在线观看| 国产成人av一区二区三区在线观看| 日韩欧美国产一区在线观看| 99久久婷婷国产| 午夜一区二区三区视频| 日韩欧美国产午夜精品| 国产精品亚洲综合一区在线观看| 国产精品日日摸夜夜摸av| 欧美日韩成人综合天天影院 | 亚洲精品一二三四区| 久久久久久久精| 午夜婷婷国产麻豆精品| 99久久夜色精品国产网站| 亚洲欧美区自拍先锋| 9191久久久久久久久久久| 久久成人免费日本黄色| 国产精品私人影院| 日本精品免费观看高清观看| 日本成人在线一区| 日本一区二区三区dvd视频在线| 99在线精品视频| 久久爱另类一区二区小说| 亚洲视频在线一区二区| 欧美电影精品一区二区| 99国产欧美久久久精品| 毛片一区二区三区| 夜夜嗨av一区二区三区网页| 久久亚洲捆绑美女| 欧美喷潮久久久xxxxx| 国产成人h网站| 麻豆久久久久久久| 亚洲精品视频在线观看网站| 久久婷婷国产综合精品青草| 欧美人妇做爰xxxⅹ性高电影 | 国产.欧美.日韩| 亚洲国产美女搞黄色| 国产精品久久久久aaaa樱花| 欧美tickling挠脚心丨vk| 欧美综合色免费| 色综合久久99| 91在线观看污| 福利一区二区在线观看| 国产一区二区三区综合| 精品一区二区免费看| 免费人成黄页网站在线一区二区| 亚洲综合丁香婷婷六月香| 最新久久zyz资源站| 国产精品乱码一区二区三区软件 | 久久久www成人免费毛片麻豆 | 亚洲精品成人悠悠色影视| 国产亚洲福利社区一区| 日韩欧美国产综合一区 | 91亚洲国产成人精品一区二三 | 国产成人99久久亚洲综合精品| 日韩电影在线一区二区三区| 婷婷成人综合网| 天堂av在线一区| 视频一区欧美日韩| 亚洲电影第三页| 亚洲午夜私人影院| 亚洲成人久久影院| 日韩福利视频网| 另类小说图片综合网| 九九**精品视频免费播放| 久久疯狂做爰流白浆xx| 国产伦精品一区二区三区免费迷| 国产一区二区三区香蕉| 成人高清视频在线观看| 日本高清不卡在线观看| 欧美性一二三区| 欧美高清dvd| 久久久青草青青国产亚洲免观| 日本一区二区免费在线观看视频 | 91香蕉视频黄| 欧美日韩一区二区在线观看视频| 欧美午夜理伦三级在线观看| 91麻豆精品91久久久久久清纯| 日韩免费看的电影| 国产婷婷一区二区| 一区二区三区中文字幕精品精品 | 免费高清在线一区| 国产一区999| 色偷偷久久一区二区三区| 91麻豆精品国产91久久久久久久久| 日韩免费电影网站| 最新久久zyz资源站| 日韩精品福利网| 国产v综合v亚洲欧| 在线观看国产91| 亚洲精品在线一区二区| 亚洲精品免费在线| 免费在线观看视频一区| www.亚洲激情.com| 日韩一本二本av| 亚洲同性同志一二三专区| 日本美女一区二区三区| 成人三级伦理片| 欧美一区二区三区四区久久|