代写COM00177M Evolutionary & Adaptive Computing MEng and MMath Degree Examinations 2023–24代写留学生Pyt

COM00177M

MEng and MMath Degree Examinations 2023–24

DEPARTMENT OF COMPUTER SCIENCE

Evolutionary & Adaptive Computing

Open Individual Assessment

Issued: 12 noon on 22 February 2024

Submission due: 12 noon on 23 May 2024

Feedback and marks due: 27 June 2024

All students should submit their answers through the electronic submission system:

http://www.cs.york.ac.uk/student/assessment/submit/ by 12 noon on 23 May 2024. An assessment that has been submitted after this deadline will be marked initially as if it  had been handed in on time, but the Board of Examiners will normally apply a lateness penalty.

Your attention is drawn to the section about Academic Misconduct in your Departmental Handbook: https://www.cs.york.ac.uk/student/handbook/.

Any queries on this assessment should be addressed by email to Simon O’Keefe and Dimitar Kazakov at [email protected] or [email protected]. Answers that apply to all students will be posted on the VLE.

Rubric

Your submission should be a single zip file named after your exam number, Yxxxxxxx.zip, which contains:

•  For Part 1 of this assessment

  a single Jupyter or Colab notebook EVAC1.ipynb  combining code and explanations

  a PDF EVAC1.pdf  of the state of the same notebook after all of its code has been executed.

•  For Part 2 of this assessment

  a pair of NetLogo files EVAC2-train.nlogo and EVAC2-test.nlogo,   possibly accompanied by additional image and data files. The first of these files should allow to run the evolutionary algorithm (with a relevant

description in its Info section). The second file should contain an already evolved behaviour for every dog, and allow for the performance of the

evolved herding dogs to be tested. It should also contain an Info section

with a report on the results and all remaining comments.

If there are discrepancies between the contents and output of the Jupyter/Colab notebook and what is shown in the PDF, the former will be used for marking.

Do not use archive formats other than zip. Your submission MUST be a single zip archive. Your code should assume any auxiliary files that you may generate are in the same folder as the notebook from which they are accessed.

1  Evolution of a function (this part is worth 50 marks)

1.1 Scenario

The scenario for this part of the assessment is the search for routes through a set of cities, subject to multiple constraints. A sales repreresentative is visiting cities to make sales, and has a good estimate for the sales to be made in each city. Visiting every city will maximise sales, but also maximise the distance travelled. The aim is to minimise the distance travelled, which may be to a subset of cities, but still make a lot of sales. The dataset contains a matrix with the distance between each city, and a list of the value of sales in each city.

1.2 Task

This part of the assessment requires you to use an evolutionary algorithm to evolve routes that start at a particular city, visit a number of other cities, and return to the start city. Apart from the start city, each city may only be visited once. The start city may be any city–that is, any route around any subset of cities is valid. The objectives are to:

1.  Minimise the distance travelled

2.  Maximise the value of sales made (counting the start city only once)

You must follow these rules of implementation:

(a) You MUST use Python and the DEAP library to implement an evolutionary algorithm.

(b) You MUST submit a Colab or Jupyter notebook containing runnable code for your evolved solution.

(c) You MUST evaluate thoroughly the performance of the evolved solution as appropriate to the problem.

1.3  Data

The data for this assessment may be found on the Assessment page of the module VLE site.

1.4 To do

You should report on this part of the assignment by adding comments to the Colab/Jupyter notebook you have created.

The marking criteria assume there is working code. Partial marks may be allocated for design alone. No results will be accepted if the corresponding parts of the code involved in their generation cannot be executed.

1.  Description of the algorithm implemented [15 marks]

Give a full description of the chosen representation for individuals, and of the algorithm that you finally have chosen. You should give a clear justification for all the design choices made.

2.  Quality of code [5 marks]

You must provide runnable code and a solution for the evolutionary algorithm using Python and DEAP. Your code should be well commented, and demonstrate the competent use of features of DEAP.

3.  Investigation of parameters and representation [10 marks]

You should make a systematic investigation of the effect of parameters and of the choice of representation in order to improve evolution of the solution. Where you have tested ideas experimentally you should present statistics to support decisions about parameters.

4.  Evaluation of your solution [20 marks]

You should evaluate your algorithm or algorithms thoroughly. You should present appropriate summary statistics and plots in your notebook to support statements about the effectiveness of the solution, and give appropriate interpretation and discussion of results.

1.5  Marking criteria

2  Evolving Herding Dogs (this part is worth 50 marks)

2.1 Scenario

You need to implement a simple multi-agent environment with two types of agents, sheep (plural) and dogs. All agents are placed on a square, two-dimensional, wrapped around an orthogonal grid made of N × N patches. At the beginning of each run, S sheep and D dogs are placed in the environment in a (pseudo-)random way. Both sheep and dogs can choose from five possible actions: moving in one of the four cardinal directions (North, South, West, East) or staying in the same square. The environment is updated in rounds. All agents are prompted in turn to plan their next move, after which all moves are carried out simultaneously. There is no limit on the  number of agents that can reside in the same patch.

Sheep will be using a simple, fixed behaviour, choosing exactly one of the following actions, in order of preference (from highest to lowest):

1.  If there is a dog in your current patch, move, if possible, to a patch without a dog;

2.  If there is a dog in any of the four adjacent patches (i.e. North, South, East or West of the current one), move, if possible, to an adjacent patch that does not contain a dog;

3.  Move to a patch with no sheep, but which is adjacent to a patch with sheep;

4.  Move to an adjacent patch containing fewer sheep than the current patch;

5.  Make a stochastic choice of action as follows: choose the same action as the last one with 50% probability, or choose one of the remaining four actions, each with 12.5% probability. For the first move, assume for all sheep that their previous move was to stay put.

The initial behaviour for all dogs is to choose one of the five possible actions with the  same 20% probability. Dogs can see the position (coordinates of the current patch) of all other dogs and all sheep, and they can tell which species each agent belongs to.

2.2 Task

On the most general level, the goal here is to evolve a team (“pack”) of herding dogs, which would constantly strive to keep all sheep in as tight a formation as possible.

Numerically, we can say the dogs will be aiming to minimise the score defined as the sum of the variances of X and Y coordinates for all sheep:

Design, implement, describe and evaluate a procedure that employs evolution to produce herding behaviour for the dogs that outperforms as best as possible their default behaviour. Each of the dogs should be able to evolve a separate behaviour, which is potentially different from the rest. The size of the environment can be changed at will for evolution purposes, but the resulting behaviour should be tested for 50 sheep, 5 dogs, and an environment of size N = 49, i.e. where patches have coordinates ranging from (-24,-24) to (24,24).

2.3  Reporting

1.  Representation of dogs’ behaviour [10 marks]

Choose a clear and efficient representation of your dogs’ behaviour that would also allow for adaptation. Describe the chosen representation and explain the reasons behind it. You can choose a representation where the dog’s behaviour is potentially affected by the value of a function of your choice (think of it as a special sense), e.g. the relative position of the centre of mass of all sheep with respect to your current position, the position of the patch with the highest/lowest number of sheep, the patch with the highest drop in sheep numbers, etc.

Describe clearly how the function is defined, and present a brief a priory argument why it may prove useful.

2.  Implementation of default behaviour and fitness estimation [7 marks]

Provide the necessary, working code implementing the simulation where your chosen representation of dogs’ behaviour is set to their default behaviour, then describe how running the simulation is going to provide data for estimating the fitness of your dogs.

3.  Design and implementation of adaptation [18 marks]

Describe the design of (9 marks), and implement (9 marks) a procedure that uses adaptation tooptimise the behaviour of your agents.

4.  Design of evaluation procedure [10 marks]

Design and describe an evaluation procedure that allows you to compare the behaviour obtained through adaptation to the initial, non-adaptive behaviour, and draw conclusions that are grounded on sound statistical arguments.

5.  Experimental evaluation [5 marks]

Collect experimental evidence, carry out, and show the results of the evaluation procedure described above.

2.4  Marking Criteria

1. Three marks for a rational encoding making use of the most relevant information, with up to another 2 marks for a well-argued effort to find a good trade-off in the choice of representation that reduces the search space of distinct behaviours with as little loss of expected performance as possible. Up to another 5 marks for incorporating a well-argued for function providing a potentially useful information to guide a useful herding behaviour.

2. Up to 4 marks for a running, easy to use, and well described implementation of the simulator, and up to 3 marks for the design of a setup that evaluates the dogs’ fitness.

3. A maximum of 9+9 marks for a well implemented, described and argued for a procedure that provides at least the functionality of a generic GA (which would score 3+3 marks max), explores systematically the meta-parameter space to achieve best performance (2+2 marks), and implements at least 3 of the following: fitness scaling or equivalent (e.g. ranking), elitism, niching/crowding, adaptive mutation rates, fitness sharing (up to 4+4 marks).

4. Four marks for a solution that includes an unbiased exploration of the space of initial configurations, six marks for a sound choice and detailed description of a statistical tool/mechanism for the comparison (e.g. choosing the most appropriate statistical test, well argued for).

5. Full (five) marks for a substantial range of experiments, well presented and summarised through the evaluation procedure.

All of the above assumes there is working code implementing the individual objectives. Partial marks may be allocated for design alone. No results will be accepted, if the corresponding parts of the code involved in their generation cannot be executed.

The criteria to be used in the marking also include clarity, simplicity, generality and rigour of the methods chosen, as well as the ability to describe, analyse and visualise experimental results in an effective way.

 

 


热门主题

课程名

omp9727 ddes9903 mgt253 fc021 int2067/int5051 bsb151 babs2202 mis2002s phya21 18-213 cege0012 math39512 math38032 mech5125 mdia1002 cisc102 07 mgx3110 cs240 11175 fin3020s eco3420 ictten622 comp9727 cpt111 de114102d mgm320h5s bafi1019 efim20036 mn-3503 comp9414 math21112 fins5568 comp4337 bcpm000028 info6030 inft6800 bcpm0054 comp(2041|9044) 110.807 bma0092 cs365 math20212 ce335 math2010 ec3450 comm1170 cenv6141 ftec5580 ecmt1010 csci-ua.0480-003 econ12-200 ectb60h3f cs247—assignment ib3960 tk3163 ics3u ib3j80 comp20008 comp9334 eppd1063 acct2343 cct109 isys1055/3412 econ7230 msinm014/msing014/msing014b math2014 math350-real eec180 stat141b econ2101 fit2004 comp643 bu1002 cm2030 mn7182sr ectb60h3s ib2d30 ohss7000 fit3175 econ20120/econ30320 acct7104 compsci 369 math226 127.241 info1110 37007 math137a mgt4701 comm1180 fc300 ectb60h3 llp120 bio99 econ7030 csse2310/csse7231 comm1190 125.330 110.309 csc3100 bu1007 comp 636 qbus3600 compx222 stat437 kit317 hw1 ag942 fit3139 115.213 ipa61006 econ214 envm7512 6010acc fit4005 fins5542 slsp5360m 119729 cs148 hld-4267-r comp4002/gam cava1001 or4023 cosc2758/cosc2938 cse140 fu010055 csci410 finc3017 comp9417 fsc60504 24309 bsys702 mgec61 cive9831m pubh5010 5bus1037 info90004 p6769 bsan3209 plana4310 caes1000 econ0060 ap/adms4540 ast101h5f plan6392 625.609.81 csmai21 fnce6012 misy262 ifb106tc csci910 502it comp603/ense600 4035 csca08 8iar101 bsd131 msci242l csci 4261 elec51020 blaw1002 ec3044 acct40115 csi2108–cryptographic 158225 7014mhr econ60822 ecn302 philo225-24a acst2001 fit9132 comp1117b ad654 comp3221 st332 cs170 econ0033 engr228-digital law-10027u fit5057 ve311 sle210 n1608 msim3101 badp2003 mth002 6012acc 072243a 3809ict amath 483 ifn556 cven4051 2024 comp9024 158.739-2024 comp 3023 ecs122a com63004 bms5021 comp1028
联系我们
EMail: 99515681@qq.com
QQ: 99515681
留学生作业帮-留学生的知心伴侣!
工作时间:08:00-21:00
python代写
微信客服:codinghelp
站长地图