国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看

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

CEG5301代做、MATLAB編程語言代寫

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



CEG5301 Machine Learning with Applications:
Part I: Homework #3
Important note: the due date is 17/03/2024. Please submit the softcopy of your report
to the submission folder in CANVAS. Late submission is not allowed unless it is well
justified. Please supply the MATLAB code or Python Code in your answer if computer
experiment is involved.
Please note that the MATLAB toolboxes for RBFN and SOM are not well developed.
Please write your own codes to implement RBFN and SOM instead of using the
MATLAB toolbox.
Q1. Function Approximation with RBFN (10 Marks)
Consider using RBFN to approximate the following function:
𝑦𝑦 = 1.2 sin(𝜋𝜋𝜋𝜋) − cos(2.4𝜋𝜋𝜋𝜋) , 𝑓𝑓𝑓𝑓𝑓𝑓 w**9;w**9; ∈ [−1.6, 1.6]
The training set is constructed by dividing the range [−1.6, 1.6] using a uniform step
length 0.08, while the test set is constructed by dividing the range [−1.6, 1.6] using
a uniform step length 0.01. Assume that the observed outputs in the training set are
corrupted by random noise as follows.
𝑦𝑦(𝑖𝑖) = 1.2 sin 𝜋𝜋𝜋𝜋(𝑖𝑖)  − cos 2.4𝜋𝜋𝜋𝜋(𝑖𝑖)  + 0.3𝑛𝑛(𝑖𝑖)
where the random noise 𝑛𝑛(𝑖𝑖) is Gaussian noise with zero mean and stand deviation of
one, which can be generated by MATLAB command randn. Note that the test set is not
corrupted by noises. Perform the following computer experiments:
a) Use the exact interpolation method (as described on pages 17-26 in the slides of
lecture five) and determine the weights of the RBFN. Assume the RBF is Gaussian
function with standard deviation of 0.1. Evaluate the approximation performance of
the resulting RBFN using the test set.
 (3 Marks)
b) Follow the strategy of “Fixed Centers Selected at Random” (as described on page 38
in the slides of lecture five), randomly select 20 centers among the sampling points.
Determine the weights of the RBFN. Evaluate the approximation performance of the
resulting RBFN using test set. Compare it to the result of part a).
(4 Marks)
c) Use the same centers and widths as those determined in part a) and apply the
regularization method as described on pages 43-46 in the slides for lecture five. Vary
the value of the regularization factor and study its effect on the performance of RBFN.
(3 Marks)
2
Q2. Handwritten Digits Classification using RBFN (20 Marks)
In this task, you will build a handwritten digits classifier using RBFN. The training data
is provided in MNIST_M.mat. Each binary image is of size 28*28. There are 10
classes in MNIST_M.mat; please select two classes according to the last two different
digits of your matric number (e.g. A0642311, choose classes 3 and 1; A1234567,
choose classes 6 and 7). The images in the selected two classes should be assigned the
label “1” for this question’s binary classification task, while images in all the remaining
eight classes should be assigned the label “0”. Make sure you have selected the correct
2 classes for both training and testing. There will be some mark deduction for wrong
classesselected. Please state your handwritten digit classes for both training and testing.
In MATLAB, the following code can be used to load the training and testing data:
-------------------------------------------------------------------------------------------------------
load mnist_m.mat;
% train_data  training data, 784x1000 matrix
% train_classlabel  the labels of the training data, 1x1000 vector
% test_data  test data, 784x250 matrix
% train_classlabel  the labels of the test data, 1x250 vector
-------------------------------------------------------------------------------------------------------
After loading the data, you may view them using the code below:
-------------------------------------------------------------------------------------------------------
tmp=reshape(train_data(:,column_no),28,28);
imshow(tmp);
-------------------------------------------------------------------------------------------------------
To select a few classes for training, you may refer to the following code:
-------------------------------------------------------------------------------------------------------
trainIdx = find(train_classlabel==0 | train_classlabel==1 | train_classlabel==2); % find the
location of classes 0, 1, 2
Train_ClassLabel = train_classlabel(trainIdx);
Train_Data = train_data(:,trainIdx);
-------------------------------------------------------------------------------------------------------
Please use the following code to evaluate:
-------------------------------------------------------------------------------------------------------
TrAcc = zeros(1,1000);
TeAcc = zeros(1,1000);
thr = zeros(1,1000);
TrN = length(TrLabel);
TeN = length(TeLabel);
for i = 1:1000
 t = (max(TrPred)-min(TrPred)) * (i-1)/1000 + min(TrPred);
 thr(i) = t;

TrAcc(i) = (sum(TrLabel(TrPred<t)==0) + sum(TrLabel(TrPred>=t)==1)) / TrN;
TeAcc(i) = (sum(TeLabel(TePred<t)==0) + sum(TeLabel(TePred>=t)==1)) / TeN;
end
3
plot(thr,TrAcc,'.- ',thr,TeAcc,'^-');legend('tr','te');
-------------------------------------------------------------------------------------------------------
TrPred and TePred are determined by TrPred(j) = ∑ w**8;w**8;𝑖𝑖𝜑𝜑𝑖𝑖(TrData(: , j)) Ү**;Ү**;
𝑖𝑖=0 and
TePred(j) = ∑ w**8;w**8;𝑖𝑖𝜑𝜑𝑖𝑖(TeData(: , j)) Ү**;Ү**;
𝑖𝑖=0 where Ү**;Ү**; is the number of hidden neurons.
TrData and TeData are the training and testing data selected based on your matric
number. TrLabel and TeLabel are the ground-truth label information (Convert to {0,1}
before use!).
You are required to complete the following tasks:
a) Use Exact Interpolation Method and apply regularization. Assume the RBF is
Gaussian function with standard deviation of 100. Firstly, determine the weights of
RBFN without regularization and evaluate its performance; then vary the value of
regularization factor and study its effect on the resulting RBFNs’ performance.
(6 Marks)

b) Follow the strategy of “Fixed Centers Selected at Random” (as described in page 38
of lecture five). Randomly select 100 centers among the training samples. Firstly,
determine the weights of RBFN with widths fixed at an appropriate size and compare
its performance to the result of a); then vary the value of width from 0.1 to 10000 and
study its effect on the resulting RBFNs’ performance.
(8 Marks)

c) Try classical “K-Mean Clustering” (as described in pages 39-40 of lecture five) with
2 centers. Firstly, determine the weights of RBFN and evaluate its performance; then
visualize the obtained centers and compare them to the mean of training images of each
class. State your findings.
(6 Marks)
4
Q3. Self-Organizing Map (SOM) (20 Marks)
a) Write your own code to implement a SOM that maps a **dimensional output layer
of 40 neurons to a “hat” (sinc function). Display the trained weights of each output
neuron as points in a 2D plane, and plot lines to connect every topological adjacent
neurons (e.g. the 2nd neuron is connected to the 1st and 3rd neuron by lines). The training
points sampled from the “hat” can be obtained by the following code:
-------------------------------------------------------------------------------------------------------
x = linspace(-pi,pi,400);
trainX = [x; sinc(x)];  2x400 matrix
plot(trainX(1,:),trainX(2,:),'+r'); axis equal
-------------------------------------------------------------------------------------------------------
(3 Marks)
b) Write your own code to implement a SOM that maps a 2-dimensional output layer
of 64 (i.e. 8×8) neurons to a “circle”. Display the trained weights of each output neuron
as a point in the 2D plane, and plot lines to connect every topological adjacent neurons
(e.g. neuron (2,2) is connected to neuron (1,2) (2,3) (3,2) (2,1) by lines). The training
points sampled from the “circle” can be obtained by the following code:
-------------------------------------------------------------------------------------------------------
X = randn(800,2);
s2 = sum(X.^2,2);
trainX = (X.*repmat(1*(gammainc(s2/2,1).^(1/2))./sqrt(s2),1,2))';  2x800 matrix
plot(trainX(1,:),trainX(2,:),'+r'); axis equal
-------------------------------------------------------------------------------------------------------
(4 Marks)
c) Write your own code to implement a SOM that clusters and classifies handwritten
digits. The training data is provided in Digits.mat. The dataset consists of images in 5
classes, namely 0 to 4. Each image with the size of 28*28 is reshaped into a vector and
stored in the Digits.mat file. After loading the mat file, you may find the 4 matrix/arrays,
which respectively are train_data, train_classlabel, test_data and test_classlabel. There
are totally 1000 images in the training set and 100 images in the test set. Please omit 2
classes according to the last digit of your matric number with the following rule:
omitted class1 = mod(the last digit, 5), omitted_class2 = mod(the last digit+1, 5). For
example, if your matric number is A06423**, ignore classes mod(7,5)=2 and
mod(8,5)=3; A1234569, ignore classes 4 and 0.
Thus, you need to train a model for a 3-classes classification task. Make sure you have
selected the correct 3 classes for both training and testing. There will be some mark
deduction for wrong classes selected. Please state your handwritten digit classes for
both training and testing.
After loading the data, complete the following tasks:
c-1) Print out corresponding conceptual/semantic map of the trained SOM (as
described in page 24 of lecture six) and visualize the trained weights of each output
neuron on a 10×10 map (a simple way could be to reshape the weights of a neuron
5
into a 28×28 matrix, i.e. dimension of the inputs, and display it as an image). Make
comments on them, if any.
(8 Marks)
c-2) Apply the trained SOM to classify the test images (in test_data). The
classification can be done in the following fashion: input a test image to SOM, and
find out the winner neuron; then label the test image with the winner neuron’s label
(note: labels of all the output neurons have already been determined in c-1).
Calculate the classification accuracy on the whole test set and discuss your
findings.
(5 Marks)
The recommended values of design parameters are:
1. The size of the SOM is 1×40 for a), 8×8 for b), 10×10 for c).
2. The total iteration number N is set to be 500 for a) & b), 1000 for c). Only the
first (self-organizing) phase of learning is used in this experiment.
3. The learning rate 𝜂𝜂(𝑛𝑛) is set as:
𝜂𝜂(𝑛𝑛) = 𝜂𝜂0 exp  − 𝑛𝑛
𝜏𝜏2
  , 𝑛𝑛 = 0,1,2, …
where 𝜂𝜂0 is the initial learning rate and is set to be 0.1, 𝜏𝜏2 is the time constant
and is set to be N.
4. The time-varying neighborhood function is:
ℎ𝑗𝑗,𝑖𝑖(w**9;w**9;)(𝑛𝑛) = exp  − 𝑑𝑑𝑗𝑗,𝑖𝑖
2
2ҵ**;ҵ**;(𝑛𝑛)2  , 𝑛𝑛 = 0,1,2, …
where 𝑑𝑑𝑗𝑗,𝑖𝑖 is the distance between neuron j and winner i, ҵ**;ҵ**;(𝑛𝑛) is the effective
width and satisfies:
ҵ**;ҵ**;(𝑛𝑛) = ҵ**;ҵ**;0 exp  − 𝑛𝑛
𝜏𝜏1
  , 𝑛𝑛 = 0,1,2, …
where ҵ**;ҵ**;0 is the initial effective width and is set according to the size of output
layer’s lattice, 𝜏𝜏1 is the time constant and is chosen as 𝜏𝜏𝑖𝑖 = Ү**;Ү**;
log(ҵ**;ҵ**;0)
.
Again, please feel free to experiment with other design parameters which may be
請加QQ:99515681  郵箱:99515681@qq.com   WX:codehelp 

掃一掃在手機打開當前頁
  • 上一篇:代寫COMP26020、代做c/c++,Java編程設計
  • 下一篇:代寫ACS130、代做C++設計編程
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    流體仿真外包多少錢_專業CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務 管路
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真技術服務
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲勞振動
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲
    流體cfd仿真分析服務 7類仿真分析代做服務40個行業
    流體cfd仿真分析服務 7類仿真分析代做服務4
    超全面的拼多多電商運營技巧,多多開團助手,多多出評軟件徽y1698861
    超全面的拼多多電商運營技巧,多多開團助手
    CAE有限元仿真分析團隊,2026仿真代做咨詢服務平臺
    CAE有限元仿真分析團隊,2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗證碼 豆包網頁版入口 破天一劍 目錄網 排行網

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

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

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    品久久久久久久久久96高清| 亚洲黄色成人久久久| 国产a视频免费观看| 欧美亚洲国产精品| 国产精品嫩草影院一区二区| 91精品国产高清久久久久久| 国产欧美一区二区三区视频| 日韩一区二区三区资源| 一女被多男玩喷潮视频| 色老头一区二区三区| 91精品国产综合久久久久久久久| 国产欧美日韩网站| 国产欧美一区二区三区视频| 国模精品系列视频| 国内外免费激情视频| 欧美视频第三页| 日韩精品第1页| 日韩国产精品一区二区三区| 亚洲综合在线中文字幕| 九色91av视频| 欧美精品一区在线播放| 国产精品久久久久久亚洲调教| 国产精品视频区1| 国产乱码一区| 国产精品综合网站| av一区二区三区免费观看| 成人综合国产精品| 91精品国产91久久久久青草| 久久一区二区三区av| 国产精品一区二区三区精品| 日韩高清av| 日韩免费观看av| 人妻av无码专区| 国语自产精品视频在线看 | 精品一区日韩成人| 国产日韩精品电影| 国产精品中文字幕在线观看| 成人a免费视频| 久久综合精品一区| 午夜精品久久久久久久久久久久 | 久久久久久久9| 91久久精品国产91久久| 久久国产主播精品| www.日韩.com| 久久久久久国产免费| 欧美成人精品影院| 日韩中文字幕在线免费| 欧美激情国产精品日韩| 国产女女做受ⅹxx高潮| 91精品国产99久久久久久| 日韩最新在线视频| 久久亚洲精品网站| 亚洲精品国产系列| 手机看片福利永久国产日韩| 日本电影亚洲天堂| 精品视频在线观看一区| 国产精品99久久久久久久久久久久 | 久久久久资源| 国产精品成人久久久久| 亚洲最大成人网色| 欧美综合在线第二页| 成人免费在线小视频| 日韩中文字幕网站| 国产精品美女网站| 亚洲国产日韩欧美| 欧美,日韩,国产在线| 国产日本欧美视频| 久久久久一区二区| 九九热这里只有精品免费看| 日本福利视频一区| 古典武侠综合av第一页| 久久久久久久久久久91| 欧美巨大黑人极品精男| 日韩视频在线免费看| 国产麻花豆剧传媒精品mv在线| 国产xxxxx在线观看| 精品久久久无码人妻字幂| 久久综合九色九九| 亚洲最大福利网站| 欧美性受xxxx黑人猛交| 国产日韩欧美91| 91精品久久久久久久久久| 国产成人免费电影| 欧美一区二区激情| 国产热re99久久6国产精品| 久久久久一本一区二区青青蜜月| 亚洲综合日韩中文字幕v在线| 极品粉嫩国产18尤物| av在线不卡一区| 国产精品免费久久久久影院| 水蜜桃亚洲一二三四在线 | 色狠狠久久av五月综合|| 国产香蕉一区二区三区| 久久久一本精品99久久精品| 久久这里只有精品视频首页| 奇米影视亚洲狠狠色| 久草精品电影| 欧美一区二区大胆人体摄影专业网站 | 欧美在线免费观看| 国产精品12| 欧美情侣性视频| 国产伦精品一区二区三区四区免费 | 91国产在线播放| 一本一生久久a久久精品综合蜜| 精品视频一区二区三区四区| 久久精品国产综合| 欧美成人综合一区| 国产成人精品最新| 日韩欧美一区二区三区四区| 国产xxxxx视频| 日本一区二区在线视频观看| 日韩在线视频观看| 日本中文字幕在线视频观看| 国产高清精品软男同| 99热久久这里只有精品| 久久久久久草| 久久天天躁狠狠躁夜夜爽蜜月 | 国产成人精品福利一区二区三区 | 日日夜夜精品网站| 国产成人精品视频ⅴa片软件竹菊| 日本精品久久电影| 国产精品视频一区二区三区经 | 91久久精品国产91久久| 日韩免费中文字幕| 久久综合色88| 国产欧美在线一区二区| 精品久久久无码人妻字幂| 97久久国产亚洲精品超碰热| 午夜欧美性电影| 久久久久五月天| 国内伊人久久久久久网站视频| 国产精品国产亚洲精品看不卡15| 99久久免费观看| 日本一区二区三区精品视频| 国产精品丝袜白浆摸在线| 国产在线98福利播放视频| 亚洲国产一区二区三区在线| 久久精品国产精品青草色艺| 欧美日韩精品久久久免费观看| 欧美激情视频在线免费观看 欧美视频免费一| 国产精品一色哟哟| 日本不卡免费高清视频| 久久精品国产亚洲一区二区 | jizzjizz国产精品喷水| 日韩 欧美 自拍| 国产99视频在线观看| 日韩在线视频线视频免费网站| 国产欧美一区二区三区视频| 日韩国产欧美精品| 中文字幕在线乱| 国产精品免费视频xxxx| 国产富婆一区二区三区| 国产日韩欧美在线视频观看| 日本一区二区三区四区视频| 久久亚洲精品国产亚洲老地址| 91精品国自产在线观看| 国产一区二区在线免费| 品久久久久久久久久96高清| 欧美激情第1页| 国产精品日本精品| 国产高清在线不卡| 99视频免费播放| 国产深夜精品福利| 欧美亚洲另类激情另类| 亚洲国产一区二区三区在线 | 精品久久久久亚洲| 久久视频精品在线| 久久精品国产99精品国产亚洲性色| 国内精品视频久久| 人体精品一二三区 | 亚洲v国产v| 中文字幕一区二区三区四区五区| 国产成人精品在线| 久久成人资源| 国产欧美日韩高清| 国内一区二区三区在线视频| 欧美日韩精品免费看| 日韩精品免费播放| 日本三级韩国三级久久| 日韩av电影在线网| 亚洲欧洲精品在线| 欧美xxxx14xxxxx性爽| 国产成人一区二| 久久久在线视频| 激情婷婷综合网| 激情内射人妻1区2区3区| 欧美国产视频在线观看| 欧美亚洲丝袜| 欧美精品久久久久久久免费| 人人妻人人澡人人爽欧美一区双| 国产精品第8页| 国产精品日韩在线播放| 91精品国产高清久久久久久91裸体| 国模吧一区二区三区| 日本免费在线精品| 日本久久久久久久| 日韩av一区二区三区在线| 午夜精品一区二区三区在线视频| 亚洲国产一区二区在线| 日韩在线第三页|