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

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

代做6CCS3AIN MDP-solver

時間:2023-11-26  來源:合肥網(wǎng)hfw.cc  作者:hfw.cc 我要糾錯



1 Introduction

Coursework
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′ |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 = 􏰀(sw(i) − 1500) (1) i∈W
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 func- tions 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-cw

(e) (f) (g)
4
you 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.
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.
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.
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.
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-cw

final() (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.
Code not written in Python will not be marked.
(b) Style There are no particular requirements on the way that your code is structured, but it should follow standard good practice in software development and will be marked accordingly.
Remember that your code is only allowed to interact with the Pacman environment through version 6 of api.py. Code that does not follow this rule will lose marks.
(c) Documentation
All good code is well documented, and your work will be partly assessed by the comments you provide in your code. If we cannot understand from the comments what your code does, then you will lose marks. At the same time, comments are not intended to be paragraph-long, but brief sentences. Good code should explain itself for the most part.
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:codehelp

掃一掃在手機打開當前頁
  • 上一篇:代做CSc 360、代寫A Simple File程序
  • 下一篇:&#160;代做EEE226、java,c++編程代寫
  • 無相關信息
    合肥生活資訊

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

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

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

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

          9000px;">

                亚洲一区在线观看免费观看电影高清 | 日韩一区二区精品| 中文字幕av一区二区三区高| 日韩高清欧美激情| 欧美在线观看一区| 亚洲成人福利片| 欧美视频第二页| 亚洲色图色小说| 色成年激情久久综合| 亚洲视频一区二区在线观看| 国产91对白在线观看九色| 久久人人97超碰com| 国产在线播精品第三| 91精品国产综合久久精品性色| 亚洲一线二线三线视频| 国产蜜臀av在线一区二区三区| 国产一二三精品| 久久久久久久综合色一本| 国产精品亚洲午夜一区二区三区| 精品欧美一区二区在线观看| 日日摸夜夜添夜夜添亚洲女人| 成人美女在线观看| 3d成人h动漫网站入口| 男女激情视频一区| 久久视频一区二区| 成人午夜视频福利| 亚洲一线二线三线视频| 日韩一卡二卡三卡国产欧美| 精品一区二区三区免费毛片爱 | 成人永久看片免费视频天堂| 国产女人18水真多18精品一级做| 99视频有精品| 亚洲超碰精品一区二区| 欧美高清视频不卡网| 国产一区二区三区黄视频| 国产精品激情偷乱一区二区∴| 91尤物视频在线观看| 午夜亚洲国产au精品一区二区| 在线日韩一区二区| 亚洲精品视频一区二区| 538prom精品视频线放| 激情另类小说区图片区视频区| 中文字幕成人av| 欧美放荡的少妇| 99视频精品免费视频| 天堂精品中文字幕在线| 久久人人爽人人爽| 欧美日韩国产美| 成人av电影免费观看| 日韩av在线发布| 国产精品久久久久久久蜜臀 | 国产宾馆实践打屁股91| 亚洲va中文字幕| 国产精品久久夜| 色综合久久综合中文综合网| 日本成人在线看| 亚洲靠逼com| 国产精品女上位| 欧美成人a∨高清免费观看| 91免费在线视频观看| 国产精品资源在线看| 午夜伊人狠狠久久| 一区二区三区在线免费观看| 亚洲精品一区二区三区影院| 欧美性猛片aaaaaaa做受| 成人亚洲一区二区一| 婷婷六月综合亚洲| 97精品久久久午夜一区二区三区| 免费成人av在线播放| 亚洲欧美电影院| 国产欧美精品日韩区二区麻豆天美| 日韩一级二级三级精品视频| 欧美日本一区二区| 欧美日韩国产小视频在线观看| 99久久777色| 国产成人av影院| 激情五月激情综合网| 久久电影网电视剧免费观看| 日本大胆欧美人术艺术动态| 天天影视色香欲综合网老头| 香蕉成人伊视频在线观看| 日韩精品最新网址| 欧美在线你懂得| 国产成人自拍网| 亚洲一线二线三线视频| 中文字幕一区在线观看视频| 久久久99精品久久| 国产色综合一区| 国产精品无遮挡| 亚洲伦理在线精品| 无码av中文一区二区三区桃花岛| 亚洲国产美女搞黄色| 婷婷久久综合九色国产成人| 美国三级日本三级久久99| 极品少妇一区二区| 粉嫩13p一区二区三区| 91色乱码一区二区三区| 在线亚洲精品福利网址导航| 欧美三级蜜桃2在线观看| 欧美一二三四在线| 国产亚洲精品精华液| 亚洲免费电影在线| 久久精品噜噜噜成人88aⅴ| 日韩精品乱码av一区二区| 国产精品久久久久久久午夜片| 国产精品国产三级国产三级人妇 | 欧美午夜精品久久久久久孕妇| 韩国精品一区二区| 婷婷夜色潮精品综合在线| 国产在线精品免费av| 99视频一区二区| 欧美日韩不卡在线| 国产日本欧洲亚洲| 偷窥国产亚洲免费视频 | 精品国产区一区| ...xxx性欧美| 日本中文在线一区| 成人国产精品免费| 7777精品久久久大香线蕉| 久久久久久日产精品| 亚洲一区二区三区中文字幕 | 免费在线观看不卡| 国产一区激情在线| 欧美自拍偷拍一区| 国产亚洲成年网址在线观看| 一区二区三区丝袜| 成人精品小蝌蚪| 欧美电视剧免费观看| 亚洲高清中文字幕| eeuss鲁一区二区三区| 欧美成人精精品一区二区频| 一区二区三区波多野结衣在线观看 | 日本二三区不卡| 欧美三级资源在线| 欧美性猛片aaaaaaa做受| 中文字幕av一区 二区| 久久99精品久久久久久动态图 | 精彩视频一区二区| 国产精华液一区二区三区| 欧美色区777第一页| 综合在线观看色| 国产精品自拍在线| 精品久久久久久久人人人人传媒 | 久久精品夜色噜噜亚洲a∨| 丝袜a∨在线一区二区三区不卡| 日本韩国精品一区二区在线观看| 久久久久青草大香线综合精品| 香港成人在线视频| 欧美日韩精品欧美日韩精品| 亚洲自拍偷拍图区| 精品视频一区二区不卡| 亚洲激情六月丁香| 欧亚洲嫩模精品一区三区| 一区二区三区免费在线观看| 热久久久久久久| 日韩视频免费观看高清在线视频| 亚洲h动漫在线| 日韩一卡二卡三卡国产欧美| 精品一区二区三区欧美| 久久久久久99精品| 国产999精品久久| 亚洲视频一区二区在线| 色婷婷av一区二区三区gif| 一区二区三区欧美视频| 欧美亚洲图片小说| 性做久久久久久免费观看欧美| 欧美夫妻性生活| 国产在线精品一区在线观看麻豆| 欧美肥妇毛茸茸| 九九精品一区二区| 久久综合国产精品| 蜜臀久久久久久久| 欧美高清你懂得| 久久99久久99| 精品日韩在线观看| 亚洲愉拍自拍另类高清精品| 7777精品伊人久久久大香线蕉的| 五月激情综合婷婷| 国产精品国产三级国产a| 久久亚洲综合av| 97精品国产97久久久久久久久久久久| 亚洲6080在线| 亚洲欧洲在线观看av| 日韩视频一区二区三区| 97国产一区二区| 国产成人精品亚洲日本在线桃色| 亚洲国产综合人成综合网站| 日本一区二区高清| 久久精品综合网| 精品国精品国产尤物美女| 欧美区在线观看| 欧美系列亚洲系列| 欧美影院一区二区| 色国产综合视频| 91一区二区在线| 99视频精品在线| 色综合久久88色综合天天| 波多野结衣精品在线| 91亚洲精品久久久蜜桃网站| 成人激情视频网站|