COMP222、CA Assignment、Python、PythonC/C++|R

COMP222 - 2019 - Second CA AssignmentIndividual courseworkTrain Deep Learning AgentsAssessment InformationAssignment Number 2 (of 2)Weighting 10%Assignment Circulated Thursday 14 November 2019Deadline Monday 16 December 2019, 15:00Submission Mode ElectronicLearning outcome assessed 3. Ability to explain how deep neural networks are constructedand trained, and apply deep neural networksto work with large scale datasetsPurpose of assessment To design and implement deep learning agents for classificationtaskMarking criteria The marking scheme can be found in Section 2.2Submission necessary in order Noto satisfy Module requirements?Late Submission Penalty Standard UoL Policy.11 ObjectiveThis assignment requires you to implement deep neural networks for the two datasets, i.e.,• Optical recognition of handwritten digits dataset• RCV1 datasetfrom https://scikit-learn.org/stable/datasets/index.html, and apply the model evaluationmethods to compare them with the two models in Assignment 1. Please make surethat you select the same dataset as you did for the Assignment 1, if you completed theAssignment 1.2 DNN-based Classification2.1 Requirement and DescriptionLanguage and Platform Python (version 3.5 or above) and Tensorflow or Keras (latestversion). You can use some libraries available on Python platform, including numpy, scipy,scikit-learn, and matplotlib. If you intend to use libraries other than these, please consultthe demonstrator or the lecturer.Learning Task You can choose either classification (preferred) or regression, but needs tobe the same choice as your Assignment 1 submission.Assignment Tasks You need to implement the following functionalities:f1 design and build two different deep neural networks, one with convolutional layer andthe other without convolutional layer;f2 apply model evaluation on the learned models. For the materials on model evaluation,you may take a look at the metrics explained in the lecture “model evaluation”. Youare required to implement by yourself (i.e., do not call built-in libraries)(a) the cross-validation of 5 subsamples,(b) the confusion matrix, and(c) the ROC curve for one class vs. all other classesfor(a) the two neural networks you trained in f1, and(b) the two traditional machine learning algorithms in the first assignment.Please also summarise your observation on the results.2Additional Requirements We have additional requirements that,1. the marker can run your code directly, i.e., see the results of functionality f1 by loadingthe saved models, without training.2. You need to provide clear instructions on how to train the two models. The instructionsmay be e.g., a different command or an easy way of adapting the source code.Documentation You need to write a proper document1. detailing how to run your program, including the software dependencies,2. explaining how the functionalities and additional requirements are implemented, and3. providing the details of your implementation, including e.g., the meaning of parametersand variables, the description of your model evaluation, etc.Submission files Your submission should include the following files:• a file for source code,• two files for saved models, and• a document.Please see Section 3 for instructions on how to package your submission files, and read theQ&A on whether to upload the two trained models from the first assignment.2.2 Marking CriteriaThe assignment is split in a number of steps. Every step gives you some marks.Note 1 At the beginning of the document, please include a check list indicating whetherthe below marking points have been implemented successfully. Unless exceptional cases, thelength of the submitted document needs to be within 4 pages (A4 paper, 11pt font size).Note 2 The marking of a functionality will also consider the quality of coding and the qualityof documentation. A run-able implementation alone will have up to 50% of the marks.functionality f1: 50%For each model (with and without convolutional layer), 20% will be for the model constructionand 5% will be on the model saving and the model file in the submission.3functionality f2: 50%The model evaluation between will include• cross validation (10%)• confusion matrix (10%)• ROC curve (20%)• discussion on the discovery (10%)For each of the four parts, 80% of the marks are for deep learning models, while 20% are forthe traditional models in the first assignment. For example, for cross validation part, if youonly do deep learning models, your marks are capped at 8% instead of 10%.The marker will mark according to the quality of both your evaluation and the documentation.3 Deadlines and How to Submit• Deadline for submitting the first assignment is given at the beginning of this document.• Please submit all the files in a single compressed file with the filename00hstudentnumberi.tar00 or 00hstudentnumberi.zip00For example, “201191838.tar” or “201191838.zip” if your student number is 201191838.Submissions with other filename will not be accepted. Also, in the submission files,please do not include your name.• Submission is via VITAL Turnitin system.4 Q&AQ: The ROC curve we taught in the lecture is for binary classification, butthe models we trained are for multiple classes. What can we do?A: As indicated, you can have one class vs. all other classes, where all other classesare deemed as a single class.Q: My models in the first assignment can output a classification but not aconfidence probability. What can we do for ROC curve?A: If you think some functionality is hard to implement, please explain in the document.The marker will then evaluate your explanation to give you a reasonable mark.4Q: Since we are requested to evaluate the two models from our first assignment,shall we upload again?A: You can upload them again if needed. Note that, the marker won’t be able toaccess the first assignment when they are marking the second assignment.5转自:http://www.3daixie.com/contents/11/3444.html

©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 204,053评论 6 478
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 85,527评论 2 381
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 150,779评论 0 337
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 54,685评论 1 276
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 63,699评论 5 366
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 48,609评论 1 281
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 37,989评论 3 396
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 36,654评论 0 258
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 40,890评论 1 298
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 35,634评论 2 321
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 37,716评论 1 330
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 33,394评论 4 319
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 38,976评论 3 307
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 29,950评论 0 19
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 31,191评论 1 260
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 44,849评论 2 349
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 42,458评论 2 342

推荐阅读更多精彩内容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 7,281评论 0 10
  • **2014真题Directions:Read the following text. Choose the be...
    又是夜半惊坐起阅读 9,363评论 0 23
  • The Inner Game of Tennis W Timothy Gallwey Jonathan Cape ...
    网事_79a3阅读 11,680评论 2 19
  • 本期作者:墨煮酒 活在故事里的局外人,你可以把我当作是一段电影的旁白,并不起眼,却又不可或缺。不做香飘十里的酒香,...
    浪漫的偏执狂阅读 499评论 0 0
  • 看这本书是半个月前,现在想再看一遍,但看到一遍就看不下去了,脑子故意去忘记书里的细节,真的是太苦了,我只能说活着真好!
    虫虫文阅读 80评论 0 1