狠狠综合久久久久综合网址-a毛片网站-欧美啊v在线观看-中文字幕久久熟女人妻av免费-无码av一区二区三区不卡-亚洲综合av色婷婷五月蜜臀-夜夜操天天摸-a级在线免费观看-三上悠亚91-国产丰满乱子伦无码专区-视频一区中文字幕-黑人大战欲求不满人妻-精品亚洲国产成人蜜臀av-男人你懂得-97超碰人人爽-五月丁香六月综合缴情在线

COMP0197代寫、Python程序設(shè)計(jì)代做

時間:2024-03-22  來源:  作者: 我要糾錯



COMP0197 CW1
1
COMP0197: Applied Deep Learning
Assessed Component 1 (Individual Coursework) 2023-24
Submission before 16:00 (UK time), 21st March 2024 (subject to change), on Moodle
Introduction
This is the first of two assessed coursework. This coursework accounts for 50% of the module with three
independent tasks, and for each task, a task script needs to be submitted with other supporting files and
data. No separate written report is required.
There are hyperlinks in the document for further reference. Throughout this document, various parts of
the text are highlighted, for example:
The aim of the coursework is to develop and assess your ability a) to understand the technical and
scientific concepts behind deep learning theory and applications, b) to research the relevant methodology
and implementation details of the topic, and c) to develop the numerical algorithms in Python and one of
the deep learning libraries TensorFlow and PyTorch. Although the assessment does not place emphasis
on coding skills and advanced software development techniques, basic programming knowledge will be
taken into account, such as the correct use of NumPy arrays, tensors – as opposed to, for example,
unnecessary for-loops, sufficient commenting and consistent code format. Up to [20%] of the relevant
marks may be deducted for substandard programming practice.
Do NOT use this document for any other purposes or share with others. The coursework remains UCL
property as teaching materials. You may be risking breaching intellectual property regulations and/or
academic misconduct, if you publish the details of the coursework or distribute this further.
Conda environment and Python packages
No external code (open-source or not) should be used for the purpose of this coursework. No other
packages should be used, unless specified and installed within the conda environment below. This will be
assessed by running the submitted code on the markers’ computers, within a conda environment created
as follows, for either TensorFlow or PyTorch. Make sure your OS is up-to-date to minimise potential
compatibility issues.
conda create -n comp0197-cw1-tf pillow=10.2 pip=19.3 && conda activate comp0197-cw1-tf && pip
install tensorflow==2.13
conda create -n comp0197-cw1-pt -c pytorch python=3.12 pytorch=2.2 torchvision=0.17
Class names are highlighted for those mandatory classes that should be found in your submitted code.
Function names are highlighted for those mandatory functions that should be found in your submitted
code.
Printed messages on terminal when running the task scripts.
Visualisation saved into PNG files with task scripts.
[5]: square brackets indicate marks, with total marks being 100, for 50% of the module assessment.
“filepath.ext”: quotation marks indicate the names of files or folders.
commands: commands run on bash or Python terminals, given context.
COMP0197 CW1
2
Use one of the two for your coursework and indicate with your submitted folder name, “cw1-tf” or “cw1-
pt”. Use the command conda list -n comp0197-cw1-xx to see the available libraries for this coursework
(“xx” is either “tf” or “pt”). You can choose to use either TensorFlow or PyTorch, but NOT both of them in
this coursework, as it is designed to have a balanced difficulties from different tasks. [100%] of the
relevant marks may be deducted for using external code.
Working directory and task script
Each task should have a task folder, named as “task1”, “task2” and “task3”. A Python task script should
be a file named as “task.py”, such that the script can be executed on a bash terminal when the task folder
is used as the current/working directory, within the conda environment described above:
python task.py
It is the individual’s responsibility to make sure the submitted task scripts can run, in the above-specified
conda environment. If using data/code available in module tutorials, copies or otherwise automated links
need to be provided to ensure a standalone executability of the submitted code. Care needs to be taken
in correct use of relative paths, as it was found to be one of the most common issues in the past. Jupyter
Notebook files are NOT allowed. Up to [100%] of the relevant marks may be deducted if no runnable task
script is found.
Printing and visualisation
Summarising and communicating your implementation and quantitative results is being assessed as part
of the module learning outcome. Each task specifies relevant information and messages to be printed on
terminal, which may contain description, quantitative summary and brief remarks. The printed messages
are expected to be concise, accurate and clear.
When the task requires visualising results (usually in the form of image), the code should save the results
into a PNG file in the respective working directory. These PNG files should be submitted with the code,
although they can be generated by the code as well. Please see examples in the module repository using
Pillow. Please note that matplotlib cannot be used in the task scripts but may be a good tool during
development. Up to [50%] of the relevant marks maybe deducted if this is not followed.
Design your code
The functions/classes/files/messages highlighted (see Introduction) are expected to be found in your
submitted code, along with the task scripts. If not specifically required, you have freedom in designing
your own code, for example, data type, variables, functions, scripts, modules, classes and/or extra results
for discussion. These will be assessed for complementing your work but not for design aspects.
The checklist
This is a list of things that help you to check before submission.
✓ The coursework will be submitted as a single “cw1-xx” folder, compressed as a single zip file.
✓ Under your “cw1-xx” folder, you should have three subfolders, “task1”, “task2” and “task3”.
✓ The task scripts run without needing any additional files, data or customised paths.
✓ All the classes and functions colour-coded in this document can be found in the exact names.
✓ Check all the functions/classes have a docstring indicating a brief description of its purpose,
together with data type, size and what-it-is, for each input argument and output.
COMP0197 CW1
3
Task 1 Stochastic Minibatch Gradient Descent for Linear Models
• Implement a polynomial function polynomial_fun, that takes two input arguments, a weight vector 𝐰
of size 𝑀 + 1 and an input scalar variable 𝑥, and returns the function value 𝑦. The polynomial_fun
should be vectorised for multiple pairs of scalar input and output, with the same 𝐰. [5]
𝑦 = ∑ 𝑤𝑚𝑥
𝑚
𝑀
𝑚=0
• Using the linear algebra modules in TensorFlow/PyTorch, implement a least square solver for fitting
the polynomial functions, fit_polynomial_ls, which takes 𝑁 pairs of 𝑥 and target values𝑡 as input, with
an additional input argument to specify the polynomial degree 𝑀, and returns the optimum weight
vector 𝐰̂ in least-square sense, i.e. ‖𝑡 − 𝑦‖
2
is minimised. [5]
• Using relevant functions/modules in TensorFlow/PyTorch, implement a stochastic minibatch gradient
descent algorithm for fitting the polynomial functions, fit_polynomial_sgd, which has the same input
arguments as fit_polynomial_ls does, with additional two input arguments, learning rate and
minibatch size. This function also returns the optimum weight vector 𝐰̂. During training, the function
should report the loss periodically using printed messages. [5]
• Implement a task script “task.py”, under folder “task1”, performing the following: [15]
o Use polynomial_fun (𝑀 = 2, 𝐰 = [1,2,3]
T
) to generate a training set and a test set, in the
form of respectively and uniformly sampled 20 and 10 pairs of 𝑥, 𝑥𝜖[−20, 20], and 𝑡. The
observed 𝑡 values are obtained by adding Gaussian noise (standard deviation being 0.5) to 𝑦.
o Use fit_polynomial_ls (𝑀𝜖{2,3,4}) to compute the optimum weight vector 𝐰̂ using the
training set. For each 𝑀, compute the predicted target values 𝑦̂ for all 𝑥 in both the training
and test sets.
o Report, using printed messages, the mean (and standard deviation) in difference a) between
the observed training data and the underlying “true” polynomial curve; and b) between the
“LS-predicted” values and the underlying “true” polynomial curve.
o Use fit_polynomial_sgd (𝑀𝜖{2,3,4}) to optimise the weight vector 𝐰̂ using the training set.
For each 𝑀, compute the predicted target values 𝑦̂ for all 𝑥 in both the training and test sets.
o Report, using printed messages, the mean (and standard deviation) in difference between the
“SGD-predicted” values and the underlying “true” polynomial curve.
o Compare the accuracy of your implementation using the two methods with ground-truth on
test set and report the root-mean-square-errors (RMSEs) in both 𝐰 and 𝑦 using printed
messages.
o Compare the speed of the two methods and report time spent in fitting/training (in seconds)
using printed messages.
• Implement a task script “task1a.py”, under folder “task1”. [10]
o Experiment how to make 𝑀 a learnable model parameter and using SGD to optimise this more
flexible model.
o Report, using printed messages, the optimised 𝑀 value and the mean (and standard deviation) in
difference between the model-predicted values and the underlying “true” polynomial curve.
Task 2 A depth-wise separable convolution
For the purpose of the coursework, the dataset is only split into two, training and test sets.
COMP0197 CW1
4
• Adapt the Image Classification tutorial to use a different network, VisionTransformer. You can choose
any configuration that is appropriate for this application. [5]
o TensorFlow version
o PyTorch version
• Implement a data augmentation class MixUp, using the mixup algorithm, such that: [10]
o Inherited from the relevant classes in TensorFlow/PyTorch is recommended but not assessed.
o The MixUp algorithm can be applied to images and labels in each training iteration.
o Have an input flag “sampling_method” and appropriate hyperparameters for two options:
▪ sampling_method = 1: λ is sampled from a beta distribution as described in the paper.
▪ sampling_method = 2: λ is sampled uniformly from a predefined range.
▪ The algorithm should be seeded for reproducible results.
o Visualise your implementation, by saving to a PNG file “mixup.png”, a montage of 16 images
with randomly augmented images that are about to be fed into network training.
o Note: the intention of this task is to implement the augmentation class from scratch using
only TensorFlow/PyTorch basic API functions. Using the built-in data augmentation classes
may result in losing all relevant marks.
• Implement a task script “task.py”, under folder “task2”, completing the following: [15]
o Train a new VisionTransformer classification network with MixUp data augmentation, for
each of the two sampling methods, with 20 epochs.
o Save the two trained models and submit your trained models within the task folder.
o Report the test set performance in terms of classification accuracy versus the epochs.
o Visualise your results, by saving to a PNG file “result.png”, a montage of 36 test images with
printed messages clearly indicating the ground-truth and the predicted classes for each.
Task 3 Ablation Study
Using the Image Classification tutorial, this task investigates the impact of the following modification to
the original network. To evaluate a modification, an ablation study can be used by comparing the
performance before and after the modification.
• Difference between training with the two λ sampling methods in Task 2.
• Implement a task script “task.py”, under folder “task3”, completing the following: [30]
o Random split the data into development set (80%) and holdout test set (20%).
o Random split the development set into train (90%) and validation sets (10%).
o Design at least one metric, other than the loss, on validation set, for monitoring during
training.
o Train two models using the two different sampling methods.
o Report a summary of loss values, speed, metric on training and validation.
o Save and submit these two trained models within the task folder.
o Report a summary of loss values and the metrics on the holdout test set. Compare the results
with those obtained during development.
請加QQ:99515681  郵箱:99515681@qq.com   WX:codehelp

標(biāo)簽:

掃一掃在手機(jī)打開當(dāng)前頁
  • 上一篇:代做COMP226、代寫solution.R設(shè)計(jì)編程
  • 下一篇:代做CSMBD21、代寫Java, C/C++, Python編程
  • 無相關(guān)信息
    昆明生活資訊

    昆明圖文信息
    蝴蝶泉(4A)-大理旅游
    蝴蝶泉(4A)-大理旅游
    油炸竹蟲
    油炸竹蟲
    酸筍煮魚(雞)
    酸筍煮魚(雞)
    竹筒飯
    竹筒飯
    香茅草烤魚
    香茅草烤魚
    檸檬烤魚
    檸檬烤魚
    昆明西山國家級風(fēng)景名勝區(qū)
    昆明西山國家級風(fēng)景名勝區(qū)
    昆明旅游索道攻略
    昆明旅游索道攻略
  • NBA直播 短信驗(yàn)證碼平臺 幣安官網(wǎng)下載 歐冠直播 WPS下載

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

    Copyright © 2025 kmw.cc Inc. All Rights Reserved. 昆明網(wǎng) 版權(quán)所有
    ICP備06013414號-3 公安備 42010502001045

    狠狠综合久久久久综合网址-a毛片网站-欧美啊v在线观看-中文字幕久久熟女人妻av免费-无码av一区二区三区不卡-亚洲综合av色婷婷五月蜜臀-夜夜操天天摸-a级在线免费观看-三上悠亚91-国产丰满乱子伦无码专区-视频一区中文字幕-黑人大战欲求不满人妻-精品亚洲国产成人蜜臀av-男人你懂得-97超碰人人爽-五月丁香六月综合缴情在线
  • <dl id="akume"></dl>
  • <noscript id="akume"><object id="akume"></object></noscript>
  • <nav id="akume"><dl id="akume"></dl></nav>
  • <rt id="akume"></rt>
    <dl id="akume"><acronym id="akume"></acronym></dl><dl id="akume"><xmp id="akume"></xmp></dl>
    手机在线成人免费视频| 国产在线观看中文字幕| av久久久久久| 免费观看中文字幕| www.夜夜爽| 欧美黄网站在线观看| 天天干天天干天天干天天干天天干| 中文字幕黄色大片| 久久久久久蜜桃一区二区| 久久久久久久中文| 18禁裸男晨勃露j毛免费观看| 欧美精品一区免费| 91香蕉视频免费看| 亚洲无吗一区二区三区| 日本阿v视频在线观看| 中文字幕一区二区三区四| wwwwww.色| 男人舔女人下面高潮视频| 欧妇女乱妇女乱视频| 午夜免费福利网站| 在线免费黄色网| 精品免费国产一区二区| 少妇高潮毛片色欲ava片| 日本久久久网站| 91视频福利网| 免费在线精品视频| 黄色网zhan| 日本一区二区三区四区五区六区| 日本xxxx黄色| 男女视频在线看| 性生活免费在线观看| 美女在线视频一区二区| 亚洲激情在线观看视频| 五月婷婷丁香综合网| 性欧美极品xxxx欧美一区二区| 激情五月开心婷婷| 色综合天天色综合| 日韩a一级欧美一级| 国产系列第一页| 日本三级中文字幕在线观看| 成人国产一区二区三区| 久久综合久久网| 人妻精品无码一区二区三区| 成人久久久久久久久| 熟女少妇精品一区二区| 高清一区在线观看| 亚洲天堂一区二区在线观看| 国产一级片91| 黄色一级视频在线播放| 人妻丰满熟妇av无码区app| 超碰在线公开97| 亚洲美女自拍偷拍| 欧美久久久久久久久久久久久久| 大陆极品少妇内射aaaaaa| 欧美精品久久久久久久自慰| 欧美 国产 小说 另类| 毛葺葺老太做受视频| 午夜一级免费视频| 嫩草影院中文字幕| 妞干网在线视频观看| 97视频在线免费| 国产成人黄色网址| 国产成人免费高清视频| 我的公把我弄高潮了视频| 国产最新免费视频| 91亚洲免费视频| 成人高清dvd| 亚洲爆乳无码专区| 欧美精品第三页| 在线免费看v片| 日韩a级黄色片| 国产免费黄色av| 久久人人爽av| 人妻互换免费中文字幕| 欧美牲交a欧美牲交aⅴ免费真| 国产一级做a爰片久久| 中文字幕第80页| 久久久国内精品| 日韩视频在线免费看| 欧美视频亚洲图片| 免费观看国产精品视频| 亚洲综合色在线观看| 国产免费一区二区视频| 黄色手机在线视频| 久久国产精品网| chinese少妇国语对白| 色撸撸在线观看| 免费黄色日本网站| 伊人五月天婷婷| 国产91xxx| 强伦女教师2:伦理在线观看| av动漫在线观看| 欧美做受777cos| 久久人人爽av| 精品无码国产一区二区三区av| 韩国视频一区二区三区| 日本一极黄色片| 久久男人资源站| 日韩不卡的av| 超碰在线播放91| aa在线免费观看| theporn国产精品| 中文字幕有码av| 国产熟人av一二三区| 女人帮男人橹视频播放| 日本中文字幕在线不卡| 精品久久久久久无码中文野结衣 | 亚洲欧美手机在线| aa在线免费观看| 狠狠干 狠狠操| 黄色网络在线观看| 国产日韩视频在线播放| 我要看一级黄色大片| 免费黄色日本网站| 春日野结衣av| 欧美 日本 亚洲| 欧美精品久久久久久久免费| 国产在线xxxx| 人人爽人人爽av| 色香蕉在线观看| 国产欧美精品一二三| 又色又爽又黄视频| 日本中文字幕影院| www.午夜av| 四虎免费在线观看视频| 伊人网在线综合| 警花观音坐莲激情销魂小说| 国产a级片免费看| 免费观看黄色大片| 黄色网络在线观看| 青草视频在线观看视频| 国产日韩av网站| 亚洲中文字幕无码专区| www.99av.com| www,av在线| 国产专区在线视频| 国产免费黄视频| 亚洲午夜精品一区| 亚洲精品免费一区亚洲精品免费精品一区| 91九色在线观看视频| 国产96在线 | 亚洲| 国产 日韩 亚洲 欧美| 国产乱子伦农村叉叉叉| 粉嫩虎白女毛片人体| 亚洲精品性视频| 色哟哟免费网站| 亚洲精品国产suv一区88| 漂亮人妻被中出中文字幕| 男女啪啪网站视频| 伊人成人免费视频| 日韩精品久久一区二区| 久久国产乱子伦免费精品| 天堂一区在线观看| 不卡中文字幕在线观看| 日韩精品视频久久| 91香蕉国产线在线观看| 国产女主播自拍| 成人中文字幕av| 伊人久久在线观看| 国产a级片免费观看| 国产九九在线观看| 成年人看的毛片| 亚洲一区二区福利视频| 成年人视频网站免费| 中文字幕av专区| 欧美视频免费看欧美视频| av片中文字幕| 自拍日韩亚洲一区在线| 亚洲图片 自拍偷拍| www.99热这里只有精品| 香蕉视频xxxx| 国产又大又硬又粗| 国产a级片免费看| 漂亮人妻被中出中文字幕| 蜜臀av性久久久久蜜臀av| 久久久久久久久久久久91| 日韩欧美一区三区| 国产又粗又猛又爽又黄的网站| 十八禁视频网站在线观看| 日韩欧美中文视频| 亚洲成人手机在线观看| 欧美激情国产精品日韩| 女人被男人躁得好爽免费视频| 在线黄色免费观看| 超碰影院在线观看| www.av91| 免费网站在线观看视频| 欧美wwwwwww| 色综合天天色综合| 四虎永久在线精品无码视频| 日本阿v视频在线观看| 九九九九九伊人| 亚洲福利精品视频| 91淫黄看大片| 日本在线视频www| 免费成人午夜视频| 欧美日韩亚洲一| 日本a在线天堂| 国产一级大片免费看| 在线视频一二三区|