群聚分析操作介绍以SOM和K means为例ppt课件.ppt

上传人:小飞机 文档编号:1372709 上传时间:2022-11-15 格式:PPT 页数:37 大小:1.33MB
返回 下载 相关 举报
群聚分析操作介绍以SOM和K means为例ppt课件.ppt_第1页
第1页 / 共37页
群聚分析操作介绍以SOM和K means为例ppt课件.ppt_第2页
第2页 / 共37页
群聚分析操作介绍以SOM和K means为例ppt课件.ppt_第3页
第3页 / 共37页
群聚分析操作介绍以SOM和K means为例ppt课件.ppt_第4页
第4页 / 共37页
群聚分析操作介绍以SOM和K means为例ppt课件.ppt_第5页
第5页 / 共37页
点击查看更多>>
资源描述

《群聚分析操作介绍以SOM和K means为例ppt课件.ppt》由会员分享,可在线阅读,更多相关《群聚分析操作介绍以SOM和K means为例ppt课件.ppt(37页珍藏版)》请在三一办公上搜索。

1、群聚分析操作介紹 -以SOM和K-means為例,使用工具:MATLAB 6.1 SPSS11.01,SOM and K-means example,2,SOM操作步驟,資料前置處理Matlab操作,SOM and K-means example,3,資料前置處理,輸入的資料如文字檔所示(本例為X,Y座標值),SOM and K-means example,4,Matlab操作匯入資料,匯入所需資料:100個資料點(座標值),SOM and K-means example,5,Matlab操作匯入資料(續),於c101.txt所在位置,將其匯入,SOM and K-means example,

2、6,Matlab操作匯入資料(續),選擇“Next”,SOM and K-means example,7,Matlab操作匯入資料(續),選擇“Finish”,SOM and K-means example,8,Matlab操作匯入資料(續),將輸入資料由直列轉橫列c101(c101為檔案名稱),SOM and K-means example,9,Matlab操作呼叫類神經網路建構工具,轉置後得到ans檔,於命令列下鍵入“nntool”以呼叫類神經網路模組,SOM and K-means example,10,Matlab操作呼叫類神經網路建構工具(續),選擇“Import”,將資料ans匯入

3、,SOM and K-means example,11,Matlab操作呼叫類神經網路建構工具(續),將ans設為Input型式,SOM and K-means example,12,Matlab操作呼叫類神經網路建構工具(續),待所需資料匯入後,即可選擇“New Network”,以建構類神經網路模組,匯入的資料,SOM and K-means example,13,Matlab操作呼叫類神經網路建構工具(續),選擇網路型態SOM,SOM and K-means example,14,Matlab操作呼叫類神經網路建構工具(續),設定網路的輸入資料來源,SOM and K-means exa

4、mple,15,Matlab操作呼叫類神經網路建構工具(續),設定map的權重數目5 2即為10群,SOM and K-means example,16,Matlab操作呼叫類神經網路建構工具(續),設定學習速率和鄰近半徑值,SOM and K-means example,17,Matlab操作呼叫類神經網路建構工具(續),得到設定好的網路,設定網路所需的相關架構參數後,接著選擇“Train.”,將Train Pattern輸入,以便網路進行學習模擬,SOM and K-means example,18,Matlab操作呼叫類神經網路建構工具(續),選擇Clustering所需的input p

5、attern,SOM and K-means example,19,Matlab操作呼叫類神經網路建構工具(續),設定欲學習次數,待設定完各相關參數後,即可選擇“Train Network”進行網路的Training,SOM and K-means example,20,Matlab操作呼叫類神經網路建構工具(續),練訓完後得到網路輸出結果,按“Export”將結果匯出,SOM and K-means example,21,Matlab操作呼叫類神經網路建構工具(續),將網路和輸出結果Export,確定後,選擇“Export”,Matlab操作呼叫類神經網路建構工具(續),在命令列輸入plot

6、som(network1.iw1,1,network1.layers1.distances) (輸入繪圖指令將群聚中心點標示出來)hold on(保留圖中的群聚中心點)plot(ans(1,:),ans(2,:),b) (輸入繪圖指令將資料點標示出來),SOM and K-means example,23,Matlab操作呼叫類神經網路建構工具(續),按滑鼠左鍵二下,以觀看其群聚結果,(8,1)代表資料點1分在第8群,以上關於SOM在MATLAB的操作結束,SOM and K-means example,24,SOM and K-means example,25,K-means操作步驟,資料的

7、輸入SPSS操作,SOM and K-means example,26,SPSS操作-資料的輸入,開啟SPSS後,選擇“Type in data”選備建立資料,SOM and K-means example,27,SPSS操作-資料的輸入(續),切換至“variable view”鍵入所需變數名稱,SOM and K-means example,28,SPSS操作-資料的輸入(續),切換回Data View輸入資料,SOM and K-means example,29,SPSS操作-群聚分析,選擇群聚分析工具下的“K-means Cluster”,SOM and K-means example

8、,30,SPSS操作-群聚分析(續),1.將x和y座標選為變數,no選為標籤項,2.群數的設定(可由系統隨機選取起始群心),亦可利用檔案匯入自設的群心,SOM and K-means example,31,SPSS操作-群聚分析(續),勾選“匯入檔案”,選擇所設群心的檔案(群心檔如右所示),SOM and K-means example,32,SPSS操作-群聚分析(續),按下此鈕可選擇是否在表格中另存群聚後的新資料,選擇後,按continue繼續,SOM and K-means example,33,SPSS操作-群聚分析(續),按下此鈕可選擇在“輸出報表”中要顯示的資訊,選擇後,按continue繼續,最後按下ok進行群聚動作,SOM and K-means example,34,SPSS操作-輸出報表資訊,SOM and K-means example,35,SPSS操作-群聚結果製圖,1.選擇“scatter plot”散佈圖,2.選擇“Simple”後按“Define”,SOM and K-means example,36,SPSS操作-群聚結果製圖(續),將變數分別匯入後,按“ok”,SOM and K-means example,37,SPSS操作-群聚結果製圖(續),

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 生活休闲 > 在线阅读


备案号:宁ICP备20000045号-2

经营许可证:宁B2-20210002

宁公网安备 64010402000987号