日韩精品一区二区三区高清_久久国产热这里只有精品8_天天做爽夜夜做爽_一本岛在免费一二三区

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

代做 MPHY0041、代寫 C++設計編程
代做 MPHY0041、代寫 C++設計編程

時間:2024-12-02  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



 UCL DEPARTMANT OF MEDICAL PHYSICS AND
BIOMEDICAL ENGINEERING
Module Code: Module Title : Coursework Title : Lecturer:
Date Handed out: Student ID (Not Name)
MPHY0041
Machine Learning in Medical Imaging Assessed Coursework
Dr. Andre Altmann
Friday, October 25th 2024
Undergraduate / Postgraduate Assessed Coursework Tracking Sheet
              Submission Instruction: Before the submission deadline, you should digitally submit your source code and generated figures (a single jupyter notebook file including your written answers). In case you submit multiple files, all files need to be combined in one single zip file and submitted on the module page at UCL Moodle.
Coursework Deadline: Friday, November 29th 2024 at 16:00 at UCL Moodle submission section
Date Received
Date Returned to Student:
The Department of Medical Physics and Biomedical Engineering follows the UCL Academic Manual with regards to plagiarism and coursework late submission. UCL Policy on Plagiarism
UCL Policy on Late Submission of Coursework
If you are unable to submit on-time due to extenuating circumstances (EC), please refer to the UCL Policy on Extenuating Circumstances and contact our EC Secretary at medphys.teaching@ucl.ac.uk as soon as possible.
UCL Policy on Extenuating Circumstances
Please indicate what areas of your coursework you particularly would like feedback on:
Mark (%):
Please note that the mark is provisional and could be changed when the exam boards meet to moderate marks.
                
Please note: This is an AI Category 1 coursework (i.e., AI technologies cannot be used to solve the questions): https://www.ucl.ac.uk/teaching-learning/generative-ai-hub/using- ai-tools-assessment.
Please submit a single jupyter notebook file for Exercises 1, 2, and 3. The file should contain code, plots and comments that help the understanding of your answers. You can give your written answers as a Markdown within the jupyter notebook.
The provided jupyter notebook Notebook_MPHY0041_2425_CW1.ipynb contains the individual gap codes/functions for Exercise 2 and the functions provided for Exercise 3. Please use this notebook as the basis for your submission.
1. Load the dataset ‘Dementia_train.csv’ it contains diagnosis (DX), a cognitive score (ADAS13) and two cerebrospinal fluid (CSF) measurements for two proteins: amyloid and tau. There are three diagnostic labels: CN, MCI, and Dementia.
a) Remove MCI subjects from the dataset. Compute means for each of the three
measurements (ADAS13, ABETA, TAU) for the ‘CN’ (𝜇!") and the ‘Dementia’ (𝜇#$)
groups. In addition, compute the standard deviation (ҵ**;) for these three measures
across the diagnostic groups. Assume that the data follow a Gaussian distribution:
   1 %&( *%+ -! 𝑓(w**9;)= ҵ**;√2𝜋Ү**; ' ,
,
with the means and standard deviation as computed above. Compute the decision boundary between the two disease groups for each of the three features (with the prior probabilities 𝜋.! = 𝜋#$ = 0.5).
Load the dataset ‘Dementia_test.csv’ that contains the same information for another 400 participants. After removing people with MCI, use the decision boundaries from above to compute accuracy, sensitivity and specificity for separating CN from Dementia for each of the three features. [8]
b) Using sklearn functions, train a LinearRegression to separate CN from Dementia subjects using ABETA and TAU values as inputs. Generate a scatter plot for ABETA and TAU using different colours for the two diagnostic groups. Compute the decision boundary based on the linear regression and add it to the plot. What is the accuracy, sensitivity and specificity of your model on the test data for separating CN from Dementia? [7]
c) The previous analyses ignored the subjects with MCI. Going back to the full dataset, compute means for all three groups for ABETA and TAU as well as the joint variance-covariance matrix Σ. Use these to compute linear decision boundaries between all pairs of classes (with the prior probabilities 𝜋.! = 𝜋/!0 =
𝜋#$ = 0.33) without using any models implemented in sklearn. Generate a new scatterplot and add the three decision boundaries. What is the accuracy, sensitivity and specificity for separating CN from Dementia with this method?
[10]

2. Here we complete implementations for different machine learning algorithms. The code with gaps can be found in the notebook Notebook_MPHY0041_2425_CW1.ipynb.
a) The function fit_LogReg_IWLS contains a few gaps that need to be filled for the function to work. This function implements Logistic Regression using iterative weighted least squares (IWLS) as introduced in the lectures. Use your function to train a model that separates Healthy controls from PD subjects in the LogReg_data.csv dataset (DX column indicates PD status, remaining columns are the features). Use the LogisticRegression implemented in sklearn to train a model on the same data. Make a scatter plot between the coefficients obtained from your implementation and the sklearn model. Comment on the
result.
(Hint: The operator @ can be used for matrix multiplications; the function np.linalg.pinv() computes the pseudo-inverse of the matrix: X-1). [7]
b) The function fit_LogReg_GRAD aims to implement Logistic Regression using gradient descent. However, there are still a few gaps in the code. Complete the computation of the cost (J(β)) as well as the update of the beta coefficients. (Hint: gradient descent aims to minimise the cost; however, Logistic Regression is fitted by maximising the log likelihood). Use your function to train a model that separates Healthy controls from PD subjects in the LogReg_data.csv dataset.
Run the training for 3000 iterations with 𝛼 = 0.1. Compare the obtained coefficients to the ones obtained from the IWLS implementation in part a). Comment on the result. [7]
c) The function fit_LogReg_GRAD_momentum aims to implement Logistic Regression using gradient descent with momentum. Extend your solution from (b) and add momentum to the optimization as introduced in the lectures. Use the parameter gamma as the trade-off between momentum and gradient. Train your model on the dataset Syn_Momentum.csv (two inputs X1, X2, and one target y). Run the gradient descent for 100 iterations and compare to the standard gradient descent from (b) also run for 100 iterations (both with 𝛼 = 0.001). How does the Loss evolve over the iterations? Explain your observation. [7]
d) When working with medical data we often encounter biases. This could mean that our target variable (𝑦) is accidentally correlated to another variable (𝑦'). We would like to estimate the model to predict 𝑦, while ignoring the effects introduced by 𝑦'. The trade-off between the objectives can be modified using the parameter 𝛿. Provide a Loss function for this scenario (where both 𝑦 and 𝑦'are fitted using a Logistic Regression). Complete the function fit_LogReg_GRAD_competing, which should implement these logistic regressions with gradient descent. Use the variable delta to implement the trade-off. Load the dataset sim_competitive.csv, it contains two input features (x1, x2) and two output features (y1, y2). Apply your function with different values for 𝛿 (0, 0.5, 0.75, 1.0). Make a scatter plot of the data and add the decision boundaries produced by the four models. [9]

3. This exercise uses T2-weighted MR images of the prostate and surrounding tissue (information here). The task to be solved is to automatically segment the prostate in these images. The input images are gray-scale images with 128x128 pixels (below left) and the output should be a binary matrix of size 128x128, where a 1 indicates the prostate (below right).
The promise1215.zip archive contains three sets of images: training, validation, test. For training, there are 30 MR images paired with their ground truth (i.e., masks). For instance, train/img_02_15.png is the MRI and train/lab_02_15.png is the corresponding ground truth. The function preprocess_img computes a series of filters (raw, sobel, gabor, difference of gaussians, etc.) to be used for the machine learning algorithm. For instance, application to the above image results in the following channels (Figure 1). Use the function provided in create_training_set to randomly sample 1000 patches of size 21x21 from the 30 training images to generate an initial dataset. The resulting dataset is heavily imbalanced (more background patches than target), the function sub_sample is used to generate a random subset of 1000 patches from the entire training data with an approximate 50-50 distribution.
a) Using sklearn, train an SVC model to segment the prostate. Optimize kernel choice (e.g., RBF or polynomial with degree 3) and the cost parameter (e.g., C in the range 0.1 to 1000) using an appropriate variant of cross-validation. Measure performance using the Area Under the ROC Curve (roc_auc) and plot the performance of the kernels depending on the C parameter. (Hint: when SVC seems to take an endless time to train, then change your choice of C parameters; large C parameters ® little regularization ® long training time. E.g., in Colab this took about 30 minutes). [10]
b) Based on your result from a) select the best model parameters and make predictions of the 10 images in the validation dataset. Compute the DICE coefficient and roc_auc for each image. Display the original image, the ground truth, and your segmentations for any 5 images in your validation set. Provide the average DICE coefficient and roc_auc for the entire validation dataset. (Hint: this can take a few minutes per image.) [8]
    
 Figure 1: Feature channels. Numbered from top left to bottom right. (1) raw input image (2) Scharr filter, (3-6) Gabor filter with frequency 0.2 in four directions (7-10) Gabor filter with frequency 0.4 in four directions (1**14) Gabor filter with frequency 0.6 in four directions (15-18) Gabor filter with frequency 0.8 in four directions (19) Local Binary Pattern (LBP) features, and (20) difference of gaussians.
c) Instead of the SVC, train a tree-based ensemble classifier and make predictions for the validation images. Report the average roc_auc and DICE coefficient for the entire validation set. What performs better: the SVC or the tree ensemble? Are tree ensembles or the SVC faster to train and apply? Explain why this is the case.
[7]
d) Use the tree-based ensemble method and explore how the amount of training data (i.e., sub sample size: 500, 1000, 2500, 5000), the patch dimensions (11x11, 17x17, 21x21, 27x27, 31x31) affects the performance on the validation set. [10]
e) As shown in the lectures, post-process your prediction using morphological operations and filters to achieve a better segmentation result. (Hint: some morphological operations are implemented in skimage.morphology; link). Report how your post-processing influences your DICE score on the validation
data. [5]
f) Using your best combination of training data size and patch dimension (from d) and post processing methods (from e), estimate the performance on unseen samples from the test set. Display the original image, the ground truth, and your segmentations for any 5 images in your test set. Provide average DICE coefficient for the entire test set. [5]

請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp







 

掃一掃在手機打開當前頁
  • 上一篇:代寫 CE235、代做 Python 語言編程
  • 下一篇:COMP3173 代做、代寫 Java/c++編程
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務-企業/產品研發/客戶要求/設計優化
    有限元分析 CAE仿真分析服務-企業/產品研發
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
  • 短信驗證碼 trae 豆包網頁版入口 目錄網 排行網

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

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

    日韩精品一区二区三区高清_久久国产热这里只有精品8_天天做爽夜夜做爽_一本岛在免费一二三区

      <em id="rw4ev"></em>

        <tr id="rw4ev"></tr>

        <nav id="rw4ev"></nav>
        <strike id="rw4ev"><pre id="rw4ev"></pre></strike>
        六月天综合网| 国内一区二区在线视频观看| 久久综合给合| 亚洲精品日韩在线| 国产精品专区第二| 欧美色区777第一页| 国产色婷婷国产综合在线理论片a| 一本久久知道综合久久| 国产女人精品视频| 蜜桃精品一区二区三区| 欧美精品播放| 国产一区二区三区精品久久久| 国产精品国产福利国产秒拍| 久久久久久久欧美精品| 国产精品美女久久久| 国产精品视频专区| 久久久久久婷| 午夜精品免费| 一本久久精品一区二区| 欧美一区二区三区久久精品茉莉花| 亚洲欧美日韩专区| 亚洲大胆视频| 欧美日韩国产在线看| 亚洲国产美女精品久久久久∴| 欧美日韩国产免费观看| 欧美人牲a欧美精品| 精品999成人| 欧美午夜片在线观看| 亚洲欧美偷拍卡通变态| 国产精品伊人日日| 欧美成年人视频网站| 狠狠v欧美v日韩v亚洲ⅴ| 久久久久久久精| 亚洲婷婷综合色高清在线| 欧美国产激情二区三区| 欧美xxxx在线观看| 伊大人香蕉综合8在线视| 亚洲欧洲一区二区三区在线观看| 欧美欧美在线| 国模精品一区二区三区色天香| 国产精品一区二区久久国产| 国产精品夜夜嗨| 国产精品视频xxxx| 狠狠色狠狠色综合日日小说| 午夜精品一区二区三区四区| 国产精品都在这里| 国产精品欧美一区二区三区奶水| 亚洲美洲欧洲综合国产一区| 欧美在线一二三四区| 欧美一区二区播放| 欧美成人国产va精品日本一级| 日韩亚洲欧美综合| 欧美/亚洲一区| 一本色道精品久久一区二区三区| 日韩视频中文字幕| 日韩午夜在线播放| 免费成人黄色片| 亚洲大片一区二区三区| 亚洲一区二区三区四区五区午夜| 国产婷婷色一区二区三区四区| 国产精品夫妻自拍| 欧美在线高清视频| 欧美高清视频一二三区| 欧美激情在线观看| 国产区欧美区日韩区| 一区二区三区国产精华| 麻豆国产va免费精品高清在线| 在线精品亚洲一区二区| 亚洲欧洲在线观看| 国产精品高清一区二区三区| 国产一区二区欧美日韩| 麻豆国产va免费精品高清在线| 国产亚洲欧美色| 国产精品久久久久一区二区| 欧美久久婷婷综合色| 一区二区电影免费在线观看| 国产一区二区三区免费在线观看| 在线看片成人| 国产欧美日韩亚洲| 欧美国产一区二区| 欧美激情综合在线| 99re这里只有精品6| 亚洲亚洲精品三区日韩精品在线视频| 亚洲欧美日韩在线播放| 欧美在线视频全部完| 国产一区二区三区奇米久涩| 欧美一区二区三区四区在线观看地址| 欧美大片免费看| 黄色成人在线网址| 在线播放国产一区中文字幕剧情欧美| 美女精品一区| 欧美日韩一区二区欧美激情| 国产乱理伦片在线观看夜一区| 亚洲无限乱码一二三四麻| 国产精品久久久久久久7电影| 国产精品一区二区a| 亚洲少妇最新在线视频| 一区二区三区回区在观看免费视频| 国产综合色产在线精品| 国产一区二区三区奇米久涩| 国产亚洲欧洲997久久综合| 麻豆精品视频在线观看| 国产亚洲福利一区| 久久综合精品一区| 免费欧美高清视频| 久久久久在线| 欧美电影打屁股sp| 欧美久色视频| 欧美精品免费在线观看| 欧美在线地址| 国内外成人免费视频| 久久久伊人欧美| 亚洲国产一区二区精品专区| 欧美性生交xxxxx久久久| 亚洲最新色图| 国产情人节一区| 极品少妇一区二区| 欧美日韩国产免费观看| 欧美一区永久视频免费观看| 欧美体内she精视频在线观看| 亚洲一区二区三区国产| 国产精品国产三级国产专播精品人| 亚洲综合色丁香婷婷六月图片| 久久久蜜桃精品| 一区二区免费在线观看| 欧美精品亚洲一区二区在线播放| 亚洲一区在线视频| 亚洲视频欧美在线| 国产亚洲精品bt天堂精选| 99pao成人国产永久免费视频| 久久久久久久激情视频| 久久综合一区二区三区| 欧美性大战久久久久久久| 久久久久久久网| 欧美日韩国产一区二区| 久久精品国产精品亚洲精品| 免费久久99精品国产自在现线| 国产精品丝袜xxxxxxx| 在线观看视频免费一区二区三区| 欧美成人首页| 亚洲一区影院| 国产精品女主播一区二区三区| 欧美日韩久久精品| 欧美成人tv| 久久精品官网| 欧美激情精品久久久六区热门| 国内精品久久久久久久影视蜜臀| 久久国产一区二区三区| 久久久久久久久岛国免费| 国产一区二区三区久久| 亚洲免费人成在线视频观看| 国产一区三区三区| 亚洲女人av| 欲香欲色天天天综合和网| 欧美乱在线观看| 亚洲精品中文字幕有码专区| 日韩视频免费| 亚洲欧美日韩精品久久| 亚洲七七久久综合桃花剧情介绍| 亚洲黄网站在线观看| 老鸭窝毛片一区二区三区| 久久亚洲欧美| 99精品欧美一区二区三区| 国产精品国产馆在线真实露脸|