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

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

?? graddesc.m

?? this is also good for learning SVM algorithm
?? M
字號:
function [x, options, flog, pointlog] = graddesc(f, x, options, gradf, ...			varargin)%GRADDESC Gradient descent optimization.%%	Description%	[X, OPTIONS, FLOG, POINTLOG] = GRADDESC(F, X, OPTIONS, GRADF) uses%	batch gradient descent to find a local minimum of the function  F(X)%	whose gradient is given by GRADF(X). A log of the function values%	after each cycle is (optionally) returned in ERRLOG, and a log of the%	points visited is (optionally) returned in POINTLOG.%%	Note that X is a row vector and F returns a scalar value.  The point%	at which F has a local minimum is returned as X.  The function value%	at that point is returned in OPTIONS(8).%%	GRADDESC(F, X, OPTIONS, GRADF, P1, P2, ...) allows  additional%	arguments to be passed to F() and GRADF().%%	The optional parameters have the following interpretations.%%	OPTIONS(1) is set to 1 to display error values; also logs error%	values in the return argument ERRLOG, and the points visited in the%	return argument POINTSLOG. If OPTIONS(1) is set to 0, then only%	warning messages are displayed.  If OPTIONS(1) is -1, then nothing is%	displayed.%%	OPTIONS(2) is the absolute precision required for the value of X at%	the solution.  If the absolute difference between the values of X%	between two successive steps is less than OPTIONS(2), then this%	condition is satisfied.%%	OPTIONS(3) is a measure of the precision required of the objective%	function at the solution.  If the absolute difference between the%	objective function values between two successive steps is less than%	OPTIONS(3), then this condition is satisfied. Both this and the%	previous condition must be satisfied for termination.%%	OPTIONS(7) determines the line minimisation method used.  If it is%	set to 1 then a line minimiser is used (in the direction of the%	negative gradient).  If it is 0 (the default), then each parameter%	update is a fixed multiple (the learning rate) of the negative%	gradient added to a fixed multiple (the momentum) of the previous%	parameter update.%%	OPTIONS(9) should be set to 1 to check the user defined gradient%	function GRADF with GRADCHEK.  This is carried out at the initial%	parameter vector X.%%	OPTIONS(10) returns the total number of function evaluations%	(including those in any line searches).%%	OPTIONS(11) returns the total number of gradient evaluations.%%	OPTIONS(14) is the maximum number of iterations; default 100.%%	OPTIONS(15) is the precision in parameter space of the line search;%	default FOPTIONS(2).%%	OPTIONS(17) is the momentum; default 0.5.  It should be scaled by the%	inverse of the number of data points.%%	OPTIONS(18) is the learning rate; default 0.01.  It should be scaled%	by the inverse of the number of data points.%%	See also%	CONJGRAD, LINEMIN, OLGD, MINBRACK, QUASINEW, SCG%%	Copyright (c) Ian T Nabney (1996-2001)%  Set up the options.if length(options) < 18  error('Options vector too short')endif (options(14))  niters = options(14);else  niters = 100;endline_min_flag = 0; % Flag for line minimisation optionif (round(options(7)) == 1)  % Use line minimisation  line_min_flag = 1;  % Set options for line minimiser  line_options = foptions;  if options(15) > 0    line_options(2) = options(15);  endelse  % Learning rate: must be positive  if (options(18) > 0)    eta = options(18);  else    eta = 0.01;  end  % Momentum term: allow zero momentum  if (options(17) >= 0)    mu = options(17);  else    mu = 0.5;  endend% Check function stringf = fcnchk(f, length(varargin));gradf = fcnchk(gradf, length(varargin));% Display information if options(1) > 0display = options(1) > 0;% Work out if we need to compute f at each iteration.% Needed if using line search or if display results or if termination% criterion requires it.fcneval = (options(7) | display | options(3));%  Check gradientsif (options(9) > 0)  feval('gradchek', x, f, gradf, varargin{:});enddxold = zeros(1, size(x, 2));xold = x;fold = 0; % Must be initialised so that termination test can be performedif fcneval  fnew = feval(f, x, varargin{:});  options(10) = options(10) + 1;  fold = fnew;end%  Main optimization loop.for j = 1:niters  xold = x;  grad = feval(gradf, x, varargin{:});  options(11) = options(11) + 1;  % Increment gradient evaluation counter  if (line_min_flag ~= 1)    dx = mu*dxold - eta*grad;    x =  x + dx;    dxold = dx;    if fcneval      fold = fnew;      fnew = feval(f, x, varargin{:});      options(10) = options(10) + 1;    end  else    sd = - grad./norm(grad);	% New search direction.    fold = fnew;    % Do a line search: normalise search direction to have length 1    [lmin, line_options] = feval('linemin', f, x, sd, fold, ...      line_options, varargin{:});    options(10) = options(10) + line_options(10);    x = xold + lmin*sd;    fnew = line_options(8);  end  if nargout >= 3    flog(j) = fnew;    if nargout >= 4      pointlog(j, :) = x;    end  end  if display    fprintf(1, 'Cycle  %5d  Function %11.8f\n', j, fnew);  end  if (max(abs(x - xold)) < options(2) & abs(fnew - fold) < options(3))    % Termination criteria are met    options(8) = fnew;    return;  endendif fcneval  options(8) = fnew;else  options(8) = feval(f, x, varargin{:});  options(10) = options(10) + 1;endif (options(1) >= 0)  disp('Warning: Maximum number of iterations has been exceeded in graddesc');end

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
xf在线a精品一区二区视频网站| 一本到高清视频免费精品| 欧美日韩另类国产亚洲欧美一级| 亚洲女性喷水在线观看一区| 成人福利视频在线看| 亚洲欧美日韩综合aⅴ视频| 一本久道中文字幕精品亚洲嫩 | 在线电影国产精品| 日韩国产欧美三级| 精品国产乱码久久久久久夜甘婷婷 | 欧美午夜在线观看| 亚洲高清视频在线| 91精品综合久久久久久| 国产高清在线精品| 亚洲乱码中文字幕| 欧美日韩不卡一区| 国产suv精品一区二区6| 亚洲日本青草视频在线怡红院| 欧美视频日韩视频在线观看| 琪琪一区二区三区| 国产精品嫩草99a| 欧洲精品一区二区三区在线观看| 喷水一区二区三区| 中文字幕一区二区三| 欧美日韩mp4| 成人国产精品免费网站| 亚洲va国产天堂va久久en| 日韩视频123| eeuss国产一区二区三区| 亚洲国产wwwccc36天堂| 久久影院电视剧免费观看| 91麻豆精品在线观看| 日本成人在线电影网| 欧美韩国日本不卡| 91麻豆精品国产无毒不卡在线观看 | 色婷婷一区二区| 久久国产欧美日韩精品| 亚洲视频一二三区| 精品国产123| 在线亚洲欧美专区二区| 国产一本一道久久香蕉| 丝袜美腿亚洲色图| 1000部国产精品成人观看| 欧美一卡二卡三卡| 欧美主播一区二区三区美女| 国产成人自拍网| 奇米一区二区三区av| 亚洲免费电影在线| 久久天堂av综合合色蜜桃网| 欧美在线高清视频| 国产成人丝袜美腿| 久久99热99| 五月婷婷色综合| 亚洲免费观看高清| 国产精品乱码妇女bbbb| 欧美va亚洲va在线观看蝴蝶网| 欧美制服丝袜第一页| www.亚洲人| 国产99久久久国产精品潘金网站| 人人爽香蕉精品| 视频一区在线视频| 亚洲香肠在线观看| 亚洲色图20p| 国产精品电影院| 欧美激情一区在线| 国产午夜亚洲精品羞羞网站| 久久久久久亚洲综合| 欧美日韩一区高清| 色综合天天综合色综合av| 风流少妇一区二区| 国产乱子伦视频一区二区三区| 免费高清在线视频一区·| 午夜不卡av在线| 五月婷婷欧美视频| 青青草精品视频| 免费成人在线观看| 六月丁香婷婷久久| 免费高清在线一区| 九色porny丨国产精品| 日韩黄色片在线观看| 美女视频一区在线观看| 青椒成人免费视频| 美日韩一区二区| 国产伦精品一区二区三区视频青涩| 美女免费视频一区| 国产一区二区看久久| 国产成人精品亚洲午夜麻豆| 福利一区在线观看| av中文字幕不卡| 欧美亚洲综合网| 在线不卡欧美精品一区二区三区| 欧美精品久久久久久久久老牛影院| 欧美日韩国产成人在线免费| 欧美一二三四区在线| 精品国产一区二区国模嫣然| 久久久久97国产精华液好用吗| 国产日韩亚洲欧美综合| 自拍偷拍国产精品| 亚洲最大的成人av| 免费在线观看不卡| 粉嫩av一区二区三区粉嫩 | 1024成人网| 天天色天天操综合| 国产精一品亚洲二区在线视频| 丁香婷婷综合网| 一本到一区二区三区| 91精品国产丝袜白色高跟鞋| 久久久久久久电影| 最新热久久免费视频| 亚洲国产欧美在线| 激情欧美一区二区| 色综合天天综合狠狠| 日韩欧美在线1卡| 国产欧美一二三区| 一区二区三区在线视频免费| 日韩va欧美va亚洲va久久| 国产成人精品亚洲777人妖| 色视频欧美一区二区三区| 欧美一区二区三区视频在线观看| 久久久国产午夜精品| 亚洲制服欧美中文字幕中文字幕| 国模无码大尺度一区二区三区| 99麻豆久久久国产精品免费优播| 4438亚洲最大| 亚洲国产欧美在线人成| 国产精一品亚洲二区在线视频| 日本道精品一区二区三区| 日韩精品一区二区三区四区| 亚洲色图一区二区三区| 蓝色福利精品导航| 91福利社在线观看| 久久婷婷色综合| 午夜精品久久久久影视| 成人精品在线视频观看| 欧美一级精品大片| 亚洲欧美另类图片小说| 国产成人自拍高清视频在线免费播放| 欧美综合视频在线观看| 国产精品国产精品国产专区不蜜| 喷白浆一区二区| 欧美日韩久久一区| 亚洲欧洲日韩一区二区三区| 国内精品久久久久影院薰衣草| 欧美伊人久久久久久久久影院 | 国产精品免费av| 麻豆精品国产传媒mv男同| 欧美三级视频在线播放| 亚洲婷婷综合色高清在线| 国产成人免费视频一区| 日韩亚洲欧美在线| 午夜精品久久久久久不卡8050| 99久久99久久精品国产片果冻| 久久伊人中文字幕| 麻豆精品一区二区| 在线不卡一区二区| 日欧美一区二区| 欧美人妇做爰xxxⅹ性高电影| 亚洲精品综合在线| 91麻豆国产在线观看| 国产精品久久久久久久浪潮网站| 国产白丝精品91爽爽久久| 精品成人在线观看| 激情综合网av| 精品国精品国产尤物美女| 奇米精品一区二区三区四区 | 亚洲欧美偷拍卡通变态| 99re成人在线| 亚洲免费在线视频一区 二区| www..com久久爱| 国产精品大尺度| 97精品超碰一区二区三区| 亚洲欧洲精品一区二区三区| 99re热视频精品| 亚洲激情在线播放| 欧美性生活久久| 亚洲国产精品久久艾草纯爱| 欧美日韩情趣电影| 婷婷综合五月天| 91精品国产91久久综合桃花| 免费的成人av| 久久久综合精品| 成人美女视频在线看| 中文字幕一区二区视频| 色网综合在线观看| 亚洲国产精品欧美一二99| 欧美丰满少妇xxxxx高潮对白 | 日韩一区二区精品葵司在线| 久久精品国产成人一区二区三区| 欧美va亚洲va香蕉在线| 国产成人精品三级麻豆| 亚洲欧美日韩在线不卡| 欧美日韩亚洲另类| 国精产品一区一区三区mba桃花 | 久久99国产精品久久99| 国产午夜精品久久| 91首页免费视频| 免费国产亚洲视频| 国产欧美精品一区二区色综合| 91麻豆国产精品久久| 丝袜美腿一区二区三区|