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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? trainlssvm.m

?? LS_SVMlab.rar
?? M
字號:
function [model,b,X,Y]  = trainlssvm(model,X,Y) % Train the support values and the bias term of an LS-SVM for classification or function approximation% % >> [alpha, b] = trainlssvm({X,Y,type,gam,kernel_par,kernel,preprocess})% >> model      = trainlssvm(model)% % type can be 'classifier' or 'function estimation' (these strings% can be abbreviated into 'c' or 'f', respectively). X and Y are% matrices holding the training input and output data. The i-th% data point is represented by the i-th row X(i,:) and Y(i,:). gam% is the regularization parameter: for gam low minimizing of the% complexity of the model is emphasized, for gam high, good fitting% of the training data points is stressed. kernel_par is the% parameter of the kernel; in the common case of an RBF kernel, a% large sig2 indicates a stronger smoothing. The kernel_type% indicates the function that is called to compute the kernel value% (by default RBF_kernel). Other kernels can be used for example: % % >> [alpha, b] = trainlssvm({X,Y,type,gam,[d p],'poly_kernel'})% >> [alpha, b] = trainlssvm({X,Y,type,gam,[]   ,'lin_kernel'})% % The kernel parameter(s) are passed as a row vector, in the case% no kernel parameter is needed, pass the empty vector! % % The training can either be proceeded by the preprocessing% function ('preprocess') (by default) or not ('original'). The% training calls the preprocessing (prelssvm, postlssvm) and the% encoder (codelssvm) if appropiate. % % In the remainder of the text, the content of the cell determining% the LS-SVM is given by {X,Y, type, gam, sig2}. However, the% additional arguments in this cell can always be added in the% calls. % % If one uses the object oriented interface (see also A.3.14), the training is done by% % >> model = trainlssvm(model)% >> model = trainlssvm(model, X, Y)% % The status of the model checks whether a retraining is% needed. The extra arguments X, Y allow to re-initialize the model% with this new training data as long as its dimensions are the% same as the old initiation. % % Three training implementations are included:% %     * The C-implementation linked with CMEX: this implementation%     is based on the iterative solver Conjugate Gradient algorithm%     (CG) (lssvm.mex*). After this training call, a '-' is%     displayed. This is recommended for use on larger data sets. % %     * The C-implementation called via a buffer file: this is%     based on CG; check if the executable 'lssvmFILE.x' is in the%     current directory; (lssvmFILE.x). After this training call, a%     '-' is displayed. %  %     * The Matlab implementation: a straightforward implementation%     based on the matrix division '\' (lssvmMATLAB.m). After this%     training call, a '~' is  displayed. This is recommended for a%     number of training data points smaller than 500 (depending on%     the computer memory).  % % By default, the cmex implementation is called. If this one fails,% the Matlab implementation is chosen instead. One can specify% explicitly which implementation to use using the object oriented% interface. % % This implementation allows to train a multidimensional output% problem. If each output uses the same kernel type, kernel% parameters and regularization parameter, this is% straightforward. If not so, one can specify the different types% and/or parameters as a row vector in the appropriate% argument. Each dimension will be trained with the corresponding% column in this vector. % % >> [alpha, b] = trainlssvm({X, [Y_1 ... Y_d],type,...%                              [gam_1 ... gam_d], ...%                             [sig2_1 ... sig2_d],...%                           {kernel_1,...,kernel_d}})% % Full syntax% %     1. Using the functional interface:% % >> [alpha, b] = trainlssvm({X,Y,type,gam,sig2})% >> [alpha, b] = trainlssvm({X,Y,type,gam,sig2,kernel})% >> [alpha, b] = trainlssvm({X,Y,type,gam,sig2,kernel,preprocess})% %       Outputs    %         alpha         : N x m matrix with support values of the LS-SVM%         b             : 1 x m vector with bias term(s) of the LS-SVM%       Inputs    %         X             : N x d matrix with the inputs of the training data%         Y             : N x 1 vector with the outputs of the training data%         type          : 'function estimation' ('f') or 'classifier' ('c')%         gam           : Regularization parameter%         sig2          : Kernel parameter (bandwidth in the case of the 'RBF_kernel')%         kernel(*)     : Kernel type (by default 'RBF_kernel')%         preprocess(*) : 'preprocess'(*) or 'original'% %%     * Using the object oriented interface:% % >> model = trainlssvm(model)% >> model = trainlssvm({X,Y,type,gam,sig2})% >> model = trainlssvm({X,Y,type,gam,sig2,kernel})% >> model = trainlssvm({X,Y,type,gam,sig2,kernel,preprocess})% %       Outputs    %         model          : Trained object oriented representation of the LS-SVM model%       Inputs    %         model          : Object oriented representation of the LS-SVM model%         X(*)           : N x d matrix with the inputs of the training data%         Y(*)           : N x 1 vector with the outputs of the training data%         type(*)        : 'function estimation' ('f') or 'classifier' ('c')%         gam(*)         : Regularization parameter%         sig2(*)        : Kernel parameter (bandwidth in the case of the 'RBF_kernel')%         kernel(*)      : Kernel type (by default 'RBF_kernel')%         preprocess(*)  : 'preprocess'(*) or 'original'% % See also:%   simlssvm, initlssvm, changelssvm, plotlssvm, prelssvm, codelssvm% Copyright (c) 2002,  KULeuven-ESAT-SCD, License & help @ http://www.esat.kuleuven.ac.be/sista/lssvmlab%% initialise the model 'model'%if (iscell(model)),  model = initlssvm(model{:});end%% given X and Y?%%model = codelssvm(model);eval('model = changelssvm(model,''xtrain'',X);',';');eval('model = changelssvm(model,''ytrain'',Y);',';');eval('model = changelssvm(model,''selector'',1:size(X,1));',';');%% no training needed if status = 'trained'%if model.status(1) == 't',  if (nargout>1),    % [alpha,b]    X = model.xtrain;    Y = model.ytrain;    b = model.b;    model = model.alpha;  end  returnend  %% control of the inputs%if ~((strcmp(model.kernel_type,'RBF_kernel') & length(model.kernel_pars)>=1) |...     (strcmp(model.kernel_type,'lin_kernel') & length(model.kernel_pars)>=0) |...     (strcmp(model.kernel_type,'MLP_kernel') & length(model.kernel_pars)>=2) |...     (strcmp(model.kernel_type,'poly_kernel')& length(model.kernel_pars)>=1)),  eval('feval(model.kernel_type,model.xtrain(1,:),model.xtrain(2,:),model.kernel_pars);model.implementation=''MATLAB'';',...       'error(''The kernel type is not valid or to few arguments'');');elseif (model.steps<=0),  error('steps must be larger then 0');elseif (model.gam<=0),  error('gamma must be larger then 0');% elseif (model.kernel_pars<=0),%   error('sig2 must be larger then 0');elseif or(model.x_dim<=0, model.y_dim<=0),  error('dimension of datapoints must be larger than 0');end%% coding if needed%if model.code(1) == 'c', % changed  model = codelssvm(model);end%% preprocess%eval('if model.prestatus(1)==''c'', changed=1; else changed=0;end;','changed=0;');if model.preprocess(1) =='p' & changed,  model = prelssvm(model);elseif model.preprocess(1) =='o' & changed   model = postlssvm(model);end% clocktic;%% set & control input variables and dimensions% if (model.type(1) == 'f'), % function  dyn_pars=[];elseif (model.type(1) == 'c'), % class  dyn_pars=[];  end% only MATLABif size(model.gam,1)>1,   model.implementation='MATLAB'; end%% output dimension > 1...recursive call on each dimension%if model.y_dim>1,  if (length(model.kernel_pars)==model.y_dim | size(model.gam,2)==model.y_dim |prod(size(model.kernel_type,2))==model.y_dim)    disp('multidimensional output...');    model = trainmultidimoutput(model);    %    % wich output is wanted?    %    if (nargout>1),      X = model.xtrain;      Y = model.ytrain;      b = model.b;      model = model.alpha;    else           model.duration = toc;      model.status = 'trained';    end    return    endend%% call lssvmMATLAB.m, lssvm.mex* or lssvmFILE.m%if strcmpi(model.implementation,'CMEX'),  model.cga_startvalues = [];  eval('model.cga_startvalues;','model.cga_startvalues = [];');    eval(['[model.alpha, model.b,model.cga_startvalues] =' ...	'lssvm(model.xtrain(model.selector, 1:model.x_dim)'',model.x_dim,'...	'model.ytrain(model.selector, 1:model.y_dim),model.y_dim,'...	'model.nb_data, model.type, model.gam,' ...	'model.cga_eps, model.cga_fi_bound,model.cga_max_itr,' ...	'model.cga_startvalues,'...	'model.kernel_type,  model.kernel_pars,' ...	'model.cga_show,dyn_pars);'],...        'model.implementation=''CFILE''; disp(''converting now to CFILE implementation'');');% if error in CMEX ...endif strcmpi(model.implementation,'CFILE'),  eval('model.cga_startvalues;','model.cga_startvalues = [];');  eval('model = lssvmFILE(model,''buffer.mc'');',...       ['model.implementation=''MATLAB'';'...	'disp(''make sure lssvmFILE.x (lssvmFILE.exe) is in the' ...	 ' current directory, change now to MATLAB implementation...'');']);   % if error in CFILE ...endif strcmpi(model.implementation(1),'m'),  model = lssvmMATLAB(model);end%% wich output is wanted?%if (nargout>1),  X = model.xtrain;  Y = model.ytrain;  b = model.b;  model = model.alpha;else       model.duration = toc;  model.status = 'trained';end    %%function model = trainmultidimoutput(model)%% %  model.alpha = zeros(model.nb_data, model.y_dim);  model.b = zeros(1,model.y_dim);  model.cga_startvalues = [];  for d=1:model.y_dim,    eval('gam = model.gam(:,d);','gam = model.gam(:);');    eval('sig2 = model.kernel_pars(:,d);','sig2 = model.kernel_pars(:);');    eval('kernel = model.kernel_typeqbwvqel;','kernel=model.kernel_type;');    [model.alpha(:,d),model.b(d)] = trainlssvm({model.xtrain,model.ytrain(:,d),model.type,gam,sig2,kernel,'original'});  end    %  % wich output is wanted?  %  if (nargout>1),    X = model.xtrain;    Y = model.ytrain;    b = model.b;    model = model.alpha;  else         model.duration = toc;    model.status = 'trained';  end

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久99在线观看| 国产一二三精品| 久久久亚洲欧洲日产国码αv| 99热精品一区二区| 日韩国产精品91| 中日韩av电影| 精品美女在线播放| 在线观看不卡一区| 99久免费精品视频在线观看 | 欧美国产日韩a欧美在线观看| 欧美综合天天夜夜久久| 国产成人无遮挡在线视频| 午夜成人免费电影| 亚洲欧美日韩人成在线播放| 久久久另类综合| 欧美一二三四区在线| 欧美最新大片在线看 | 日韩视频在线一区二区| 色综合久久久久综合体| 国产乱子伦视频一区二区三区 | 麻豆精品一区二区av白丝在线| 中文字幕在线视频一区| 久久久久久久久97黄色工厂| 日韩区在线观看| 欧美久久一区二区| 欧美三级在线看| 色哦色哦哦色天天综合| 99久久精品99国产精品 | 色婷婷国产精品久久包臀| 丰满岳乱妇一区二区三区| 国内久久精品视频| 精品一区二区免费| 另类小说综合欧美亚洲| 青青草精品视频| 日产国产欧美视频一区精品| 视频精品一区二区| 天堂av在线一区| 天堂蜜桃一区二区三区| 婷婷夜色潮精品综合在线| 亚洲高清免费在线| 亚洲电影一区二区三区| 亚洲一区二区三区国产| 亚洲综合免费观看高清完整版| 亚洲乱码中文字幕| 亚洲愉拍自拍另类高清精品| 夜夜嗨av一区二区三区中文字幕| 亚洲一区中文在线| 亚洲成av人片一区二区三区| 日韩成人免费在线| 久久精品噜噜噜成人88aⅴ| 久久成人免费电影| 国产美女一区二区| 国产成人精品免费视频网站| 99精品热视频| 欧美亚洲图片小说| 69av一区二区三区| 日韩视频在线观看一区二区| 久久一区二区视频| 136国产福利精品导航| 亚洲国产日韩在线一区模特| 日韩制服丝袜av| 国内一区二区在线| 99精品一区二区三区| 欧美视频自拍偷拍| 日韩精品一区二区三区中文不卡 | 国产亚洲综合在线| 亚洲欧洲日产国码二区| 亚洲成人午夜电影| 久国产精品韩国三级视频| 成人免费毛片高清视频| 欧美午夜影院一区| 欧美v日韩v国产v| 中文字幕一区二区三区视频| 午夜精品一区二区三区电影天堂| 国产在线国偷精品免费看| av不卡免费电影| 69堂亚洲精品首页| 国产精品乱人伦| 视频一区视频二区中文| 成人福利在线看| 欧美肥妇bbw| 欧美国产精品v| 亚洲成av人影院在线观看网| 国产成人精品免费在线| 欧美久久久久免费| 亚洲国产精品国自产拍av| 亚洲一区二区在线免费观看视频| 久久激情五月激情| 色婷婷av久久久久久久| 欧美电影免费提供在线观看| 综合久久国产九一剧情麻豆| 久久精品国产99国产精品| 色94色欧美sute亚洲线路一ni| 精品av久久707| 亚洲与欧洲av电影| 成人小视频在线观看| 欧美精品欧美精品系列| 国产精品毛片a∨一区二区三区| 青草av.久久免费一区| 一本色道久久综合精品竹菊| 精品国产乱码久久久久久夜甘婷婷| 一区二区免费看| 国产高清无密码一区二区三区| 欧美精品丝袜中出| 最好看的中文字幕久久| 国产成人午夜视频| 日韩一区二区在线观看视频| 亚洲中国最大av网站| 99视频一区二区三区| 欧美tickle裸体挠脚心vk| 亚洲成av人影院| 色婷婷久久久久swag精品| 国产精品日韩成人| 极品美女销魂一区二区三区免费| 欧美挠脚心视频网站| 亚洲另类色综合网站| 国产成人丝袜美腿| 久久久美女毛片| 久久福利资源站| 国产亚洲综合av| 久久福利视频一区二区| 欧美精品久久久久久久多人混战 | 久久er精品视频| 911国产精品| 亚洲一区在线观看免费| 成人精品电影在线观看| 国产三级欧美三级日产三级99| 久久福利视频一区二区| 欧美一二三四在线| 麻豆91免费观看| 欧美一区二区精品在线| 丝袜亚洲另类欧美综合| 欧美日韩在线一区二区| 亚洲一区二区三区视频在线| 91黄色免费观看| 亚洲国产精品久久一线不卡| 日本电影欧美片| 亚洲午夜电影在线| 欧美日韩一区中文字幕| 天天色天天操综合| 91精品黄色片免费大全| 秋霞电影网一区二区| 欧美一级片在线观看| 日本va欧美va精品| 日韩欧美专区在线| 精油按摩中文字幕久久| 2欧美一区二区三区在线观看视频| 国模一区二区三区白浆| 欧美va亚洲va香蕉在线| 国产精品亚洲成人| 国产精品免费网站在线观看| 99久久综合精品| 亚洲一区二区欧美日韩| 欧美一区二区三区在线视频| 激情五月婷婷综合网| 国产免费观看久久| fc2成人免费人成在线观看播放| 亚洲男人的天堂av| 91精品免费在线| 狠狠色丁香久久婷婷综| 国产精品伦理一区二区| 欧美午夜精品一区二区蜜桃| 日本欧美一区二区三区乱码| 亚洲精品在线网站| 91丨国产丨九色丨pron| 亚洲狠狠爱一区二区三区| 日韩欧美成人激情| 成人h动漫精品一区二区| 一级日本不卡的影视| 日韩亚洲国产中文字幕欧美| 国产一区二区不卡| 亚洲视频一二三区| 91精品一区二区三区久久久久久| 激情综合色播激情啊| 亚洲少妇屁股交4| 欧美精品久久99久久在免费线| 国产在线看一区| 亚洲精品一二三四区| 日韩亚洲国产中文字幕欧美| 成人精品国产免费网站| 天堂在线亚洲视频| 国产精品美女久久久久aⅴ| 欧美日韩国产另类一区| 韩国一区二区在线观看| 亚洲精品视频在线观看免费| 日韩免费高清av| 91同城在线观看| 精品亚洲国内自在自线福利| 亚洲欧美电影一区二区| 精品国产一区二区三区久久影院| 色噜噜狠狠一区二区三区果冻| 精品一二三四区| 亚洲国产成人高清精品| 国产精品美女久久久久久久久| 7777精品伊人久久久大香线蕉的| 91精品婷婷国产综合久久性色| 成人激情免费电影网址| 激情六月婷婷综合| 亚洲尤物在线视频观看| 国产精品国产自产拍高清av|