MSc Computer Science
Module: CSM010 – Applied Machine Learning (AML)
Submission Deadline: Monday 1 July 202* (GMT/BST)
• Please Note: You are permitted to upload your Coursework in
the final submission area as many times as you like before the
deadline. You will receive a similarity/originality score which
represents what the Turnitin system identifies as work similar
to another source. The originality score can take over 24 hours
to generate, especially at busy times e.g. submission
deadline.
• If you upload the wrong version of your Coursework, you are
able to upload the correct version of your Coursework via the
same submission area. You simply need to click on the ‘submit
paper’ button again and submit your new version before the
deadline.
In doing so, this will delete the previous version which you
submitted and your new updated version will replace it.
Therefore your Turnitin similarity score should not be affected.
If there is a change in your Turnitin similarity score, it will be
due to any changes you may have made to your Coursework.
• Please Note, when the due date is reached, the version you
have submitted last, will be considered as your final
submission and it will be the version that is marked.
• Once the due date has passed, it will not be possible for
you to upload a different version of your assessment.
Therefore, you must ensure you have submitted the
correct version of your assessment which you wish to be
marked, by the due date.
========== PAGE 2 OF 8 ==========
Coursework Description
The aim of this coursework is to provide a hands-on, practical,
assessment of your machine learning skills; to work creatively on a
dataset of a real-world application; to define a learning problem,
discuss data attributes, evaluate suitable learning algorithm(s) —
analytically or through your implementation, and to present your
findings and conclusions.
Background
This is your chance to investigate a real-world machine learning
classification problem using an appropriate data set and techniques.
You will obtain some data, analyse it, select appropriate features
using some of the techniques we have covered, and then train and
evaluate a number of candidate machine learning algorithms suited
to classification tasks, before choosing the one that performs the
best on your data.
You can find a range of recommended datasets for machine
learning classification problems in the UCI Machine Learning
Repository and Kaggle. Many are categorised according to the type
of machine learning task they are best suited.
Your approach to implementing a machine learning solution (or a
predictive model) and your written analysis that describes your
approach and design choices will form the basis of the assessment
for this coursework.
========== PAGE 3 OF 8 ==========
Software Requirements:
First a note on requirements terminology. We will use the convention
employed in ISO standards. Specifically, we use shall to refer to
functionality that is mandatory to implement, while should refers to
guidance or recommendation i.e. the implementation of the
specified feature is not mandatory.
• Your source code shall be submitted in a Jupyter
Notebook, with clear headings (see the written report
software requirements) highlighting each component of
your solution from data collection and pre-processing to
final model construction, prediction, and evaluation of
the results. The Jupyter notebook for your project can
be created on [COURSEWORK PLATFORM] if you do not have Jupyter notebook
installed on our local machine.
• Your source code should be well-structured using
appropriate indentation and spacing to support visual
readability.
• You shall place all source code and any other files or
directories required for the software to run in the Master
branch of your allocated github repository. You should
use this github repository throughout development so
that your commit history is visible to the marker.
• Your implementation shall consider all the software
requirements detailed below, where appropriate to the
final solution.
========== PAGE 4 OF 8 ==========
Written report and software requirements:
You shall present your code and written report (2000 words) using
the following headings to clearly separate each step of the analysis.
You shall consider all the points listed under each section as part
of your implementation and written report so that you can best
demonstrate your methodology and critical analysis skills.
- The data:
– Describe your chosen dataset, why is it interesting, what real-world problem could be solved or how would it be useful to industry e.g. marketing, business intelligence, medicine, or
molecular biology?
- Reference the source of the data, where did you find it?
- Discuss any issues with the data; is there any sampling bias
or skew in the representation of the different attributes;
missing values?
- Discuss the pre-processing steps taken to get the data in the
form that can be used for machine learning; did you
normalise, standardise, or scale any attributes in the data, if
so, why was this necessary.
- Constructing and Selecting Features:
– Separate the features from the target variable.
- Apply feature selection techniques (e.g. filter, or wrapper)
and report on the selected features.
- Consider whether feature importance provides any additional
benefit in narrowing down the best candidate features.
========== PAGE 5 OF 8 ==========
- Building ML algorithms:
- You shall apply at least three candidate machine learning algorithms suited to classification tasks and identify their
machine learning category, e.g. supervised, unsupervised,
semi-supervised.
- Discuss the selection strategies for the candidate algorithms (what motivated your choice?).
- Find the best configuration for each model, consider the
model design components e.g. number of features, size of
the test and train set, max depth for decision trees etc.
- Perform model-specific optimisations and iteratively debug
model as complexity is added. Consider using an appropriate
resampling technique when the dataset is small when
evaluating the candidate algorithms e.g. cross validation.
- Discuss the selection strategies for searching for the best configuration (e.g. trial and error, grid search, random search etc.)
- Evaluating models and analysing the results:
- Evaluate the classification performance (e.g. accuracy, F1, Precision, Recall, and confusion matrix) of the candidate ML
models on the test data and interpret the results based on
the information provided by the evaluation metrics. Is the
precision and recall higher for some classes, did some
models perform best in terms of recall or precision for
particular classes.
- Discuss general model trade-offs (accuracy versus interpretability) of the chosen models and propose two
========== PAGE 6 OF 8 ==========
models (e.g. features selected and ML classifiers) that
performed the best overall with respect to the evaluation
metrics and justify your choice.
Format of the report:
You must produce a report of 2,000 words (±10%). The cover page
must show your name, student number, the word count of your
report (excluding appendices), module title, and a suitable title.
You are encouraged to produce tables and figures that help convey
maximum information within the word count; and help provide the
relevant detail, e.g. summary of the data, features selected, and
evaluation metrics. These can be presented in the appendix, and
referenced in the main text of your report.
The report must be in digital format (not hand-written) and presented
using either Arial 10 point or Times New Roman 11 point font for the
main body of the text and 1.5 line spacing. Pages must have a
minimum of 2.54 (1 inch) margins, i.e. MS Word ‘normal’ margins.
IEEE referencing must be used when including references. The
page number should be in the footer.
You are strongly recommended to upload it in PDF format where
possible, especially if including tables or figures.
How to submit:
Work on your coursework using the repository allocated to you in
the AML module [CODE REPOSITORY PLATFORM]. To claim your repository, please
follow the submission link from the assessment section of the [LEARNING PLATFORM].
Make sure you use the repository provided in the classroom
throughout development, so that the examiners can track your
progress and process cf. Development Style section in the marking
rubric in [COURSEWORK PLATFORM].
========== PAGE 7 OF 8 ==========
Note:
Make sure that in addition to your source code you also include
any other files or directories that are needed for your program to
run.
To submit your work for marking, clone the version of the github
repository that you wish to be considered by cloning it to [COURSEWORK PLATFORM].
Go to the coursework assignment in [COURSEWORK PLATFORM].
Open the terminal (using Tools-> Terminal) and type
git clone YOUR_GITHUBCLASSROOM_REPO_LINK
where YOUR_GITHUBCLASSROOM_REPO_LINK is the URL of
your assigned GitHub project repository.
Enter the credentials of your GitHub account. Remember that you
need to use a personal access token as your password.
Note
You must provide both:
• the GitHub repo with the final version of your coursework
(and history)
• the Jupyter notebook for your project on [COURSEWORK PLATFORM] (for marking).
• A written report of 2000 words.
All entries contribute to your mark for the assessment.
Marking Rubric.
Your mark will be determined according to the rubric available in
[COURSEWORK PLATFORM].
========== PAGE 8 OF 8 ==========
Assessment Criteria:
Please refer to Appendix C of the [PROGRAMME REGULATIONS DOCUMENT] for
detailed Assessment Criteria.
Plagiarism:
This is cheating. Do not be tempted and certainly do not succumb
to temptation. Plagiarised copies are invariably rooted out and
severe penalties apply. All assignment submissions are
electronically tested for plagiarism.
More information may be accessed via:
[INSTITUTIONAL LINK REDACTED]
计算机科学理学硕士
模块:CSM010 – 应用机器学习(AML)
课程作业:2024年4月至6月学习阶段
提交截止时间:2024年7月1日(星期一)13:00(GMT/BST)
请注意:
- 在截止日期之前,你可以在最终提交区域不限次数地上传课程作业。系统会提供相似度/原创性评分,该评分反映 Turnitin 系统识别出的与你的作业相似的其他来源内容。生成原创性评分可能需要超过24小时,尤其是在课程作业截止日期等繁忙时段。
- 如果你上传了错误版本,可以在截止日期之前通过同一提交区域上传正确版本。只需再次点击“提交论文”(submit paper)按钮并提交新版本即可。
- 这样操作会删除之前提交的版本,并以更新后的版本替代。因此,Turnitin 相似度评分原则上不会受到影响。如果相似度评分发生变化,这是因为你对课程作业内容作出了修改。
- 截止时间到达时,你最后一次提交的版本将被视为最终版本,并作为评分依据。
- 截止日期过后,将无法再上传其他版本。因此,你必须确保在截止日期前提交了希望用于评分的正确版本。
课程作业说明
本课程作业旨在通过实践性评估检验你的机器学习技能。你需要针对现实应用场景中的数据集开展创造性工作,定义一个学习问题,讨论数据属性,分析评估适当的学习算法(可以通过理论分析或实际实现完成),并展示你的研究发现与结论。
背景
这是你研究现实世界机器学习分类问题的机会。你需要使用适当的数据集和技术开展研究。
你将获取并分析数据,运用课程中介绍的一些技术选择适当的特征,然后训练并评估若干适用于分类任务的候选机器学习算法,最终选出在你的数据上表现最佳的算法。
你可以在 UCI 机器学习资料库和 Kaggle 中找到多种推荐用于机器学习分类问题的数据集。其中许多数据集按照最适合的机器学习任务类型进行了分类。
你如何实现机器学习解决方案(或预测模型),以及你如何通过书面分析说明采用的方法和设计选择,将构成本课程作业评估的基础。
软件要求
首先说明本文件中对要求用语的使用方式。我们采用 ISO 标准中的惯例:shall 表示必须实现的功能;should 表示指导性建议,也就是说,并非强制要求实现所述功能。
- 你的源代码必须提交在 Jupyter Notebook 中,并使用清晰的标题划分解决方案的各个组成部分,涵盖从数据收集和预处理,到最终模型构建、预测及结果评估的全过程(相关标题要求请参阅书面报告的软件要求部分)。如果你的本地计算机没有安装 Jupyter Notebook,可以在[课程作业平台]上创建项目所需的 Jupyter Notebook。
- 源代码应具有良好的结构,并使用适当的缩进和空格,以确保代码易于阅读。
- 你必须将所有源代码以及程序运行所需的其他文件或目录,放入分配给你的 GitHub 仓库的 Master 分支中。开发过程中应持续使用该 GitHub 仓库,以便评分人员查看你的提交历史。
- 在适用于最终解决方案的情况下,你的实现必须考虑下文列出的所有软件要求。
书面报告与软件要求
你必须按照以下标题组织代码和书面报告。报告字数为2000字。使用这些标题清楚地区分分析的每个步骤。你应将各部分列出的所有要点纳入实现和书面报告,以充分展示你的方法论能力和批判性分析能力。
- 数据
- 描述你选择的数据集:它为什么有趣?它能够解决什么现实问题,或者如何应用于行业,例如市场营销、商业智能、医学或分子生物学?
- 注明数据来源:你在哪里找到这些数据?
- 讨论数据中存在的问题:是否存在抽样偏差,或不同属性的分布不均衡?是否存在缺失值?
- 讨论为使数据能够用于机器学习而进行的预处理步骤。你是否对数据中的某些属性进行了归一化、标准化或缩放?如果进行了,为什么有必要这样做?
- 特征构建与选择
- 将特征与目标变量分离。
- 应用特征选择技术(例如过滤法或包装法),并报告所选特征。
- 考虑特征重要性分析是否能够进一步帮助你缩小最佳候选特征的范围。
- 构建机器学习算法
- 你必须至少应用三种适用于分类任务的候选机器学习算法,并指出它们所属的机器学习类别,例如监督学习、无监督学习或半监督学习。
- 讨论选择这些候选算法的策略,即是什么促使你选择这些算法。
- 为每个模型寻找最佳配置,并考虑模型设计要素,例如特征数量、训练集和测试集的规模、决策树的最大深度等。
- 对模型进行针对性的优化,并随着模型复杂度增加而反复调试。若数据集较小,在评估候选算法时,应考虑采用适当的重采样技术,例如交叉验证。
- 讨论搜索最佳配置时所采用的策略,例如试错法、网格搜索或随机搜索等。
- 模型评估与结果分析
- 在测试数据上评估候选机器学习模型的分类表现,例如准确率(Accuracy)、F1 分数、精确率(Precision)、召回率(Recall)和混淆矩阵,并根据评估指标提供的信息解释结果。某些类别的精确率和召回率是否更高?某些模型是否在特定类别的召回率或精确率方面表现更好?
- 讨论所选模型的一般权衡关系,例如准确率与可解释性之间的权衡,并提出两个整体表现最佳的模型(例如所选特征和机器学习分类器的组合)。你需要依据评估指标证明其整体表现,并解释选择理由。
报告格式
你必须提交一份2000字的报告,允许上下浮动10%(即1800至2200字)。封面必须注明你的姓名、学号、报告字数(不包括附录)、模块名称,以及一个恰当的标题。
建议你使用表格和图形,在规定字数内尽可能清晰地呈现信息,并提供相关细节,例如数据摘要、所选特征和评估指标。相关内容可以放在附录中,并在报告正文中引用。
报告必须采用电子文档格式,不得手写。正文应使用 Arial 10号字体或 Times New Roman 11号字体,行距为1.5倍。页边距至少为2.54厘米(1英寸),即 Microsoft Word 中的“普通”页边距。引用参考文献时必须采用 IEEE 引用格式。页码应放在页脚中。
强烈建议你尽可能以 PDF 格式提交报告,尤其是在报告包含表格或图形时。
如何提交
使用在 AML 模块的[代码仓库平台]中分配给你的仓库完成课程作业。要领取仓库,请通过[学习平台]的评估部分进入提交链接。
在整个开发过程中,务必使用课堂环境中提供的仓库,以便考官追踪你的开发进度和过程。相关要求可参阅[课程作业平台]评分标准中的“开发风格”(Development Style)部分。
注意事项
除了源代码外,请确保一并提交程序运行所需的其他文件或目录。
要提交作业供评分,请将你希望作为最终评分版本的 GitHub 仓库克隆到[课程作业平台]。
进入[课程作业平台]中的课程作业任务。
打开终端(使用 Tools → Terminal),输入:
git clone YOUR_GITHUBCLASSROOM_REPO_LINK
其中,YOUR_GITHUBCLASSROOM_REPO_LINK 是分配给你的 GitHub 项目仓库的 URL。
输入你的 GitHub 账户凭据。请记住,你需要使用个人访问令牌(personal access token)作为密码。
你必须提交以下所有内容:
- 包含课程作业最终版本及提交历史的 GitHub 仓库;
- 用于评分、存放在[课程作业平台]上的项目 Jupyter Notebook;
- 一份2000字的书面报告。
以上各项都会计入本次课程作业的评分。
评分标准
你的分数将根据[课程作业平台]中提供的评分标准(rubric)确定。
评估标准
详细评估标准请参阅[项目规章文件]的附录 C。
抄袭
抄袭属于作弊行为。不要抱有侥幸心理,更不要屈服于这种诱惑。抄袭的作业通常都会被查出,并会受到严厉处罚。所有作业提交都会通过电子系统进行抄袭检测。
更多信息请参阅:
[学校专属链接已隐藏]