亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? mani.m

?? 包含了大多數流形學習方法的代碼,有PCA,ISOMAP,LLE,HLLE
?? M
?? 第 1 頁 / 共 5 頁
字號:
function varargout = mani(varargin)
% mani: MANIfold learning demonstration GUI
%   by Todd Wittman, Department of Mathematics, University of Minnesota
%   E-mail wittman@math.umn.edu with comments & questions.
%   MANI Website: http://www.math.umn.edu/~wittman/mani/index.html
%   Last Modified by GUIDE v2.5 10-Apr-2005 13:28:36% 
%   Methods obtained from various authors.
%      MDS -- Michael Lee
%      ISOMAP -- J. Tenenbaum, de Silva, & Langford
%      LLE -- Sam Roweis & Lawrence Saul
%      Hessian LLE  -- D. Donoho & C. Grimes
%      Laplacian -- M. Belkin & P. Niyogi
%      Diffusion Map -- R. Coifman & S. Lafon
%      LTSA -- Zhenyue Zhang & Hongyuan Zha

% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',  gui_Singleton, ...
                   'gui_OpeningFcn', @mani_OpeningFcn, ...
                   'gui_OutputFcn',  @mani_OutputFcn, ...
                   'gui_LayoutFcn',  @mani_LayoutFcn, ...                   'gui_Callback',   []);
if nargin & isstr(varargin{1})
    gui_State.gui_Callback = str2func(varargin{1});
end

if nargout
    [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
    gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT


% --- Executes just before mani is made visible.
function mani_OpeningFcn(hObject, eventdata, handles, varargin)
handles.output = hObject;
guidata(hObject, handles);
axes(handles.maniAXES);
axis off;
axes(handles.embedAXES);
axis off;
handles.X = 0;
handles.ColorVector = 0;
handles.Y = 0;
handles.isExample = 0;
handles.K = 12;
handles.d = 2;
handles.sigma = 1.45;
handles.runTime = 0;
handles.alpha = 0;
guidata(hObject, handles);
warning off;


% --- Outputs from this function are returned to the command line.
function varargout = mani_OutputFcn(hObject, eventdata, handles)
varargout{1} = handles.output;
function MatrixEdit_CreateFcn(hObject, eventdata, handles)% Hint: edit controls usually have a white background on Windows.%       See ISPC and COMPUTER.if ispc    set(hObject,'BackgroundColor','white');else    set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));endfunction MatrixEdit_Callback(hObject, eventdata, handles)% Hints: get(hObject,'String') returns contents of MatrixEdit as text%        str2double(get(hObject,'String')) returns contents of MatrixEdit as a doublefunction FileEdit_CreateFcn(hObject, eventdata, handles)% Hint: edit controls usually have a white background on Windows.%       See ISPC and COMPUTER.if ispc    set(hObject,'BackgroundColor','white');else    set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));endfunction FileEdit_Callback(hObject, eventdata, handles)% Hints: get(hObject,'String') returns contents of FileEdit as text%        str2double(get(hObject,'String')) returns contents of FileEdit as a double% --- Executes on button press in LoadMatrix.function LoadMatrix_Callback(hObject, eventdata, handles)handles.X = evalin ('base', get(handles.MatrixEdit,'String'));
handles.isExample = 0;
guidata(hObject, handles);
PlotManifold(hObject,eventdata,handles,0);
updateString{1} = ['Matrix ',get(handles.MatrixEdit,'String'),' loaded.'];
set(handles.UpdatesText,'String',updateString);
guidata(hObject, handles);
% --- Executes on button press in LoadFile.function LoadFile_Callback(hObject, eventdata, handles)
Xtemp = dlmread(get(handles.FileEdit,'String'),' ');
[m,n] = size(Xtemp);
% Check if last column is all zeros.  Reading error.
if max(abs(Xtemp(:,n))) == 0
    Xtemp = Xtemp(1:m,1:n-1);
end;
handles.X = Xtemp;
handles.isExample = 0;
guidata(hObject, handles);
PlotManifold(hObject,eventdata,handles,0);
updateString{1} = ['File ',get(handles.FileEdit,'String'),' loaded.'];
set(handles.UpdatesText,'String',updateString);
guidata(hObject, handles);
% --- Executes during object creation, after setting all properties.function ExampleMenu_CreateFcn(hObject, eventdata, handles)% Hint: popupmenu controls usually have a white background on Windows.%       See ISPC and COMPUTER.if ispc    set(hObject,'BackgroundColor','white');else    set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));end% --- Executes on selection change in ExampleMenu.function ExampleMenu_Callback(hObject, eventdata, handles)% Hints: contents = get(hObject,'String') returns ExampleMenu contents as cell array%        contents{get(hObject,'Value')} returns selected item from ExampleMenu
exampleValue = get(handles.ExampleMenu,'Value');
switch exampleValue
    case 1  % Swiss Roll
        set(handles.text19,'String','Z Scaling =');
        set(handles.ParamEdit,'String','1.0');
    case 2  % Swiss Hole
        set(handles.text19,'String','Z Scaling =');
        set(handles.ParamEdit,'String','1.0');
    case 3  % Corner Planes
        set(handles.text19,'String','Lift Angle =');
        set(handles.ParamEdit,'String','45.0');
    case 4  % Punctured Sphere
        set(handles.text19,'String','Z Scaling =');
        set(handles.ParamEdit,'String','1.0');
    case 5  % Twin Peaks
        set(handles.text19,'String','Z Scaling =');
        set(handles.ParamEdit,'String','1.0');
    case 6  % 3D Clusters
        set(handles.text19,'String','# Clusters =');
        set(handles.ParamEdit,'String','3');
    case 7  % Toroidal Helix
        set(handles.text19,'String','Sample Rate =');
        set(handles.ParamEdit,'String','1.0');
    case 8  % Gaussian
        set(handles.text19,'String','Sigma =');
        set(handles.ParamEdit,'String','1.0');
    case 9  % Occluded Disks
        set(handles.text19,'String','Occluder r =');
        set(handles.ParamEdit,'String','1.0');
end;
guidata(hObject,handles);% --- Executes during object creation, after setting all properties.function DimEdit_CreateFcn(hObject, eventdata, handles)% Hint: edit controls usually have a white background on Windows.%       See ISPC and COMPUTER.if ispc    set(hObject,'BackgroundColor','white');else    set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));endfunction DimEdit_Callback(hObject, eventdata, handles)% Hints: get(hObject,'String') returns contents of DimEdit as text%        str2double(get(hObject,'String')) returns contents of DimEdit as a double% --- Executes during object creation, after setting all properties.function KEdit_CreateFcn(hObject, eventdata, handles)% Hint: edit controls usually have a white background on Windows.%       See ISPC and COMPUTER.if ispc    set(hObject,'BackgroundColor','white');else    set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));endfunction KEdit_Callback(hObject, eventdata, handles)% Hints: get(hObject,'String') returns contents of KEdit as text%        str2double(get(hObject,'String')) returns contents of KEdit as a double% --- Executes during object creation, after setting all properties.function REdit_CreateFcn(hObject, eventdata, handles)% Hint: edit controls usually have a white background on Windows.%       See ISPC and COMPUTER.if ispc    set(hObject,'BackgroundColor','white');else    set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));end% --- Executes during object creation, after setting all properties.function SigmaEdit_CreateFcn(hObject, eventdata, handles)% Hint: edit controls usually have a white background on Windows.%       See ISPC and COMPUTER.if ispc    set(hObject,'BackgroundColor','white');else    set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));endfunction SigmaEdit_Callback(hObject, eventdata, handles)% Hints: get(hObject,'String') returns contents of SigmaEdit as text%        str2double(get(hObject,'String')) returns contents of SigmaEdit as a double% --- Executes on button press in PCAButton.function PCAButton_Callback(hObject, eventdata, handles)
handles.d = round(str2double(get(handles.DimEdit,'String')));
handles.d = max(1,handles.d);
updateString{1} = 'Running PCA.';
set(handles.UpdatesText,'String',updateString);
tic;
handles.Y = pca(handles.X,handles.d);
runTime = toc;
guidata(hObject, handles);
PlotEmbedding(hObject,eventdata,handles,0);
assignin ('base','maniY',handles.Y);
updateString{2} = ['PCA complete: ',num2str(runTime),'s'];
updateString{3} = 'Embedding data written to matrix "maniY"';
set(handles.UpdatesText,'String',updateString);% --- Executes on button press in LLEButton.function LLEButton_Callback(hObject, eventdata, handles)
handles.K = round(str2double(get(handles.KEdit,'String')));
handles.K = max(1,handles.K);
handles.d = round(str2double(get(handles.DimEdit,'String')));
handles.d = max(1,handles.d);
updateString{1} = 'Running LLE.';
set(handles.UpdatesText,'String',updateString);
tic;handles.Y = lle(handles.X',handles.K,handles.d)';
runTime = toc;guidata(hObject, handles);
PlotEmbedding(hObject,eventdata,handles,0);
assignin ('base','maniY',handles.Y);
updateString{2} = ['LLE complete: ',num2str(runTime),'s'];
updateString{3} = 'Embedding data written to matrix "maniY"';
set(handles.UpdatesText,'String',updateString);
% --- Executes on button press in MDSButton.function MDSButton_Callback(hObject, eventdata, handles)
handles.d = round(str2double(get(handles.DimEdit,'String')));
handles.d = max(1,handles.d);
updateString{1} = 'Running MDS.';
set(handles.UpdatesText,'String',updateString);
tic;
D = L2_distance(handles.X',handles.X',1);
handles.Y = mdsFast(D, handles.d);
runTime = toc;
guidata(hObject, handles);
PlotEmbedding(hObject,eventdata,handles,0);assignin ('base','maniY',handles.Y);
updateString{2} = ['MDS complete: ',num2str(runTime),'s'];
updateString{3} = 'Embedding data written to matrix "maniY"';
set(handles.UpdatesText,'String',updateString);
% --- Executes on button press in LaplacianButton.function LaplacianButton_Callback(hObject, eventdata, handles)
handles.K = round(str2double(get(handles.KEdit,'String')));
handles.K = max(1,handles.K);
handles.d = round(str2double(get(handles.DimEdit,'String')));
updateString{1} = 'Running Laplacian Eigenmap.';
set(handles.UpdatesText,'String',updateString);
tic;
[E,V] = leigs(handles.X, 'nn', handles.K, handles.d+1);
handles.Y = E(:,1:handles.d);
runTime = toc;guidata(hObject, handles);
PlotEmbedding(hObject,eventdata,handles,0);
assignin ('base','maniY',handles.Y);
updateString{2} = ['Laplacian complete: ',num2str(runTime),'s'];
updateString{3} = 'Embedding data written to matrix "maniY"';
set(handles.UpdatesText,'String',updateString);% --- Executes on button press in ISOMAPButton.function ISOMAPButton_Callback(hObject, eventdata, handles)handles.K = round(str2double(get(handles.KEdit,'String')));
handles.K = max(1,handles.K);
handles.d = round(str2double(get(handles.DimEdit,'String')));
handles.d = max(1,handles.d);
options.dims = handles.d;
updateString{1} = 'Running ISOMAP.';
set(handles.UpdatesText,'String',updateString);
tic;
D = L2_distance(handles.X',handles.X',1);
[Y, R] = Isomap(D, handles.K, options);
runTime = toc;
handles.Y = Y.coords{1}';
guidata(hObject, handles);
PlotEmbedding(hObject,eventdata,handles,0);
assignin ('base','maniY',handles.Y);
updateString{2} = ['ISOMAP complete: ',num2str(runTime),'s'];
updateString{3} = 'Embedding data written to matrix "maniY"';
set(handles.UpdatesText,'String',updateString);% --- Executes on button press in HessianButton.function HessianButton_Callback(hObject, eventdata, handles)
handles.K = round(str2double(get(handles.KEdit,'String')));
handles.K = max(1,handles.K);
handles.d = round(str2double(get(handles.DimEdit,'String')));
handles.d = max(1,handles.d);
updateString{1} = 'Running Hessian LLE.';
set(handles.UpdatesText,'String',updateString);
tic;
[Y, mse] = HLLE(handles.X',handles.K,handles.d);
handles.Y = Y';
runTime = toc;
guidata(hObject, handles);
PlotEmbedding(hObject,eventdata,handles,0);
assignin ('base','maniY',handles.Y);
updateString{2} = ['Hessian LLE complete: ',num2str(runTime),'s'];
updateString{3} = 'Embedding data written to matrix "maniY"';
set(handles.UpdatesText,'String',updateString);% --- Executes during object creation, after setting all properties.function ColorEdit_CreateFcn(hObject, eventdata, handles)% Hint: edit controls usually have a white background on Windows.%       See ISPC and COMPUTER.if ispc    set(hObject,'BackgroundColor','white');else    set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));endfunction ColorEdit_Callback(hObject, eventdata, handles)% Hints: get(hObject,'String') returns contents of ColorEdit as text%        str2double(get(hObject,'String')) returns contents of ColorEdit as a double% --- Executes on button press in ColorCheck.function ColorCheck_Callback(hObject, eventdata, handles)% Hint: get(hObject,'Value') returns toggle state of ColorCheck% --- Executes during object creation, after setting all properties.function PointsEdit_CreateFcn(hObject, eventdata, handles)% Hint: edit controls usually have a white background on Windows.%       See ISPC and COMPUTER.if ispc    set(hObject,'BackgroundColor','white');else    set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));endfunction PointsEdit_Callback(hObject, eventdata, handles)% Hints: get(hObject,'String') returns contents of PointsEdit as text%        str2double(get(hObject,'String')) returns contents of PointsEdit as a double% --- Executes on button press in RunAllButton.function RunAllButton_Callback(hObject, eventdata, handles)handles.K = round(str2double(get(handles.KEdit,'String')));
handles.K = max(1,handles.K);
handles.d = round(str2double(get(handles.DimEdit,'String')));
handles.d = max(1,handles.d);
handles.sigma = str2double(get(handles.SigmaEdit,'String'));
handles.sigma = max(100*eps,abs(handles.sigma));
handles.alpha = str2double(get(handles.AlphaEdit,'String'));
handles.alpha = abs(handles.alpha);
PlotManifold(hObject,eventdata,handles,1);
% Run MDS.
try
tic;
D = L2_distance(handles.X',handles.X',1);
handles.Y = mdsFast(D, handles.d);
handles.runTime = toc;
guidata(hObject, handles);
PlotEmbedding(hObject,eventdata,handles,1);
end;
% Run PCA.
try
tic;
handles.Y = pca(handles.X,handles.d);
handles.runTime = toc;
guidata(hObject, handles);
PlotEmbedding(hObject,eventdata,handles,2);
end;
% Run ISOMAP.  Uses same D as above.
try

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲电影第三页| 日韩av一区二区三区| 亚洲综合在线五月| 久久不见久久见中文字幕免费| 国产盗摄精品一区二区三区在线| 一本久道中文字幕精品亚洲嫩| 欧美丰满少妇xxxxx高潮对白 | av高清不卡在线| 欧美精三区欧美精三区| 国产精品国产成人国产三级| 日本亚洲视频在线| 一本大道av伊人久久综合| 精品久久久久av影院| 亚洲.国产.中文慕字在线| 成人av在线资源| 久久久久国产精品麻豆ai换脸 | 国产精品综合视频| 欧美精品久久99久久在免费线| 中文字幕在线观看不卡| 国产精一区二区三区| 精品国内片67194| 免费观看一级特黄欧美大片| 欧美三级日本三级少妇99| 成人免费在线视频| 成人h精品动漫一区二区三区| 精品对白一区国产伦| 久久成人免费日本黄色| 9191精品国产综合久久久久久| 一区二区三区中文免费| 色婷婷亚洲一区二区三区| 国产精品久久久久永久免费观看 | 色视频成人在线观看免| 亚洲欧洲美洲综合色网| 成人天堂资源www在线| 欧美国产精品久久| 成人午夜视频福利| 亚洲视频一区二区在线| 91丝袜国产在线播放| 国产精品大尺度| 91浏览器打开| 亚洲成人激情自拍| 欧美精品v国产精品v日韩精品| 偷拍与自拍一区| 欧美一区二区三区免费在线看| 视频一区视频二区中文| 678五月天丁香亚洲综合网| 日韩成人午夜电影| 精品成人一区二区| 成人网男人的天堂| 一区二区三区在线视频免费| 4438x亚洲最大成人网| 男人操女人的视频在线观看欧美 | 国产精品国产馆在线真实露脸| www.一区二区| 一区二区三区鲁丝不卡| 欧美片在线播放| 理论片日本一区| 国产精品三级电影| 色哟哟在线观看一区二区三区| 一区二区三区蜜桃| 日韩欧美国产一二三区| 国产传媒一区在线| 一区二区三区精品视频| 欧美一区二区视频观看视频| 国产成人在线免费观看| 伊人婷婷欧美激情| 欧美刺激脚交jootjob| 波多野结衣欧美| 三级久久三级久久| 中文字幕的久久| 欧美日韩精品福利| 国产精品77777| 亚洲成人一区在线| 亚洲国产高清不卡| 777色狠狠一区二区三区| 国产成人综合自拍| 日韩av一级片| 亚洲男人的天堂av| 久久久九九九九| 欧美男人的天堂一二区| 波多野结衣在线aⅴ中文字幕不卡| 无码av中文一区二区三区桃花岛| 久久久不卡网国产精品二区| 欧美在线影院一区二区| 国产福利91精品一区二区三区| 视频在线在亚洲| 一区二区三区在线视频观看| 国产午夜精品理论片a级大结局| 7777精品久久久大香线蕉| 成人涩涩免费视频| 久久97超碰国产精品超碰| 一区二区三区毛片| 国产精品乱人伦中文| 欧美va亚洲va香蕉在线| 欧美乱妇15p| 日本高清不卡视频| 成人涩涩免费视频| 国产成人综合网| 狠狠色狠狠色综合日日91app| 亚洲国产一区二区三区青草影视| 国产精品伦理在线| 欧美激情一区在线观看| 欧美精品一区二区三区视频| 欧美日韩国产一二三| 欧美在线制服丝袜| 日本伦理一区二区| 91农村精品一区二区在线| 成人丝袜高跟foot| 成人精品免费视频| 春色校园综合激情亚洲| 国产成人一级电影| 国产成人aaa| 国产jizzjizz一区二区| 国产很黄免费观看久久| 国产ts人妖一区二区| 国产精一品亚洲二区在线视频| 精油按摩中文字幕久久| 精品一区二区在线观看| 久88久久88久久久| 欧美私人免费视频| 欧美午夜宅男影院| 成人小视频免费观看| 丁香婷婷综合激情五月色| 精品制服美女久久| 久久综合九色综合97婷婷| 丰满放荡岳乱妇91ww| 亚洲丝袜另类动漫二区| 国内久久精品视频| 午夜国产不卡在线观看视频| 国产日韩欧美电影| 欧美国产一区在线| 精品国产91九色蝌蚪| www国产亚洲精品久久麻豆| 国产精品资源在线| 色噜噜久久综合| 成人动漫视频在线| 国产成人精品一区二| 国产精品成人网| 91精品国产综合久久久久久久 | 亚洲国产日韩精品| 日韩极品在线观看| 国产美女久久久久| 91麻豆精品国产自产在线观看一区 | 欧美不卡一区二区| 亚洲欧洲国产专区| 五月婷婷激情综合网| 国产资源精品在线观看| 免费观看一级欧美片| 色激情天天射综合网| 久久精品夜色噜噜亚洲a∨| 日韩国产欧美视频| 欧美色偷偷大香| 亚洲一区二区三区不卡国产欧美| 九九精品一区二区| 精品国产欧美一区二区| 麻豆免费精品视频| 欧美大片一区二区| 久久99精品久久久久久久久久久久 | 欧美日高清视频| 视频一区免费在线观看| 欧美一区日韩一区| 看国产成人h片视频| 欧美一级久久久久久久大片| 日本vs亚洲vs韩国一区三区二区| 欧美精品日韩综合在线| 久久91精品久久久久久秒播 | 欧美精品一区在线观看| 久久精品一二三| 岛国一区二区在线观看| 曰韩精品一区二区| 日韩欧美综合在线| 国产成人午夜电影网| 亚洲综合免费观看高清在线观看| 在线观看国产日韩| 美女一区二区在线观看| 中文一区一区三区高中清不卡| www.久久精品| 美女免费视频一区二区| 综合在线观看色| 91精品国产福利| 不卡av免费在线观看| 欧美色涩在线第一页| 国产一区二区不卡在线| 午夜视频久久久久久| 国产精品色婷婷| 2014亚洲片线观看视频免费| 91蜜桃视频在线| jlzzjlzz欧美大全| 国产一区二区免费看| 日韩在线观看一区二区| 欧美激情一区二区三区不卡| 日韩精品中文字幕一区| 777xxx欧美| 欧美综合欧美视频| 国产美女娇喘av呻吟久久| 欧美精品tushy高清| 欧美网站一区二区| 91精品国产福利| 久久久午夜电影| 中文字幕一区二区日韩精品绯色|