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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? demopt1.m

?? 模式識(shí)別的主要工具集合
?? M
字號(hào):
function demopt1(xinit)%DEMOPT1 Demonstrate different optimisers on Rosenbrock's function.%%	Description%	The four general optimisers (quasi-Newton, conjugate gradients,%	scaled conjugate gradients, and gradient descent) are applied to the%	minimisation of Rosenbrock's well known `banana' function. Each%	optimiser is run for at most 100 cycles, and a stopping criterion of%	1.0e-4 is used for both position and function value. At the end, the%	trajectory of each algorithm is shown on a contour plot of the%	function.%%	DEMOPT1(XINIT) allows the user to specify a row vector with two%	columns as the starting point.  The default is the point [-1 1]. Note%	that the contour plot has an x range of [-1.5, 1.5] and a y range of%	[-0.5, 2.1], so it is best to choose a starting point in the same%	region.%%	See also%	CONJGRAD, GRADDESC, QUASINEW, SCG, ROSEN, ROSEGRAD%%	Copyright (c) Ian T Nabney (1996-2001)% Initialise start point for searchif nargin < 1 | size(xinit) ~= [1 2]  xinit = [-1 1];	% Traditional start pointend% Find out if flops is available (i.e. pre-version 6 Matlab)v = version;if (str2num(strtok(v, '.')) >= 6)    flops_works = logical(0);else    flops_works = logical(1);end% Set up optionsoptions = foptions;	% Standard optionsoptions(1) = -1; 	% Turn off printing completelyoptions(3) = 1e-8; 	% Tolerance in value of functionoptions(14) = 100;  	% Max. 100 iterations of algorithmclcdisp('This demonstration compares the performance of four generic')disp('optimisation routines when finding the minimum of Rosenbrock''s')disp('function y = 100*(x2-x1^2)^2 + (1-x1)^2.')disp(' ')disp('The global minimum of this function is at [1 1].')disp(['Each algorithm starts at the point [' num2str(xinit(1))...	' ' num2str(xinit(2)) '].'])disp(' ')disp('Press any key to continue.')pause % Generate a contour plot of the functiona = -1.5:.02:1.5;b = -0.5:.02:2.1;[A, B] = meshgrid(a, b);Z = rosen([A(:), B(:)]);Z = reshape(Z, length(b), length(a));l = -1:6;v = 2.^l;fh1 = figure;contour(a, b, Z, v)title('Contour plot of Rosenbrock''s function')hold onclcdisp('We now use quasi-Newton, conjugate gradient, scaled conjugate')disp('gradient, and gradient descent with line search algorithms')disp('to find a local minimum of this function.  Each algorithm is stopped')disp('when 100 cycles have elapsed, or if the change in function value')disp('is less than 1.0e-8 or the change in the input vector is less than')disp('1.0e-4 in magnitude.')disp(' ')disp('Press any key to continue.')pauseclcx = xinit;flops(0)[x, options, errlog, pointlog] = quasinew('rosen', x, options, 'rosegrad');fprintf(1, 'For quasi-Newton method:\n')fprintf(1, 'Final point is (%f, %f), value is %f\n', x(1), x(2), options(8))fprintf(1, 'Number of function evaluations is %d\n', options(10))fprintf(1, 'Number of gradient evaluations is %d\n', options(11))if flops_works    opt_flops = flops;    fprintf(1, 'Number of floating point operations is %d\n', opt_flops)endfprintf(1, 'Number of cycles is %d\n', size(pointlog, 1) - 1);disp(' ')x = xinit;flops(0)[x, options, errlog2, pointlog2] = conjgrad('rosen', x, options, 'rosegrad');fprintf(1, 'For conjugate gradient method:\n')fprintf(1, 'Final point is (%f, %f), value is %f\n', x(1), x(2), options(8))fprintf(1, 'Number of function evaluations is %d\n', options(10))fprintf(1, 'Number of gradient evaluations is %d\n', options(11))if flops_works    opt_flops = flops;    fprintf(1, 'Number of floating point operations is %d\n', ...	opt_flops)endfprintf(1, 'Number of cycles is %d\n', size(pointlog2, 1) - 1);disp(' ')x = xinit;flops(0)[x, options, errlog3, pointlog3] = scg('rosen', x, options, 'rosegrad');fprintf(1, 'For scaled conjugate gradient method:\n')fprintf(1, 'Final point is (%f, %f), value is %f\n', x(1), x(2), options(8))fprintf(1, 'Number of function evaluations is %d\n', options(10))fprintf(1, 'Number of gradient evaluations is %d\n', options(11))if flops_works    opt_flops = flops;    fprintf(1, 'Number of floating point operations is %d\n', opt_flops)endfprintf(1, 'Number of cycles is %d\n', size(pointlog3, 1) - 1);disp(' ')x = xinit;options(7) = 1; % Line minimisation usedflops(0)[x, options, errlog4, pointlog4] = graddesc('rosen', x, options, 'rosegrad');fprintf(1, 'For gradient descent method:\n')fprintf(1, 'Final point is (%f, %f), value is %f\n', x(1), x(2), options(8))fprintf(1, 'Number of function evaluations is %d\n', options(10))fprintf(1, 'Number of gradient evaluations is %d\n', options(11))if flops_works    opt_flops = flops;    fprintf(1, 'Number of floating point operations is %d\n', opt_flops)endfprintf(1, 'Number of cycles is %d\n', size(pointlog4, 1) - 1);disp(' ')disp('Note that gradient descent does not reach a local minimum in')disp('100 cycles.')disp(' ')disp('On this problem, where the function is cheap to evaluate, the')disp('computational effort is dominated by the algorithm overhead.')disp('However on more complex optimisation problems (such as those')disp('involving neural networks), computational effort is dominated by')disp('the number of function and gradient evaluations.  Counting these,')disp('we can rank the algorithms: quasi-Newton (the best), conjugate')disp('gradient, scaled conjugate gradient, gradient descent (the worst)')disp(' ')disp('Press any key to continue.')pauseclcdisp('We now plot the trajectory of search points for each algorithm')disp('superimposed on the contour plot.')disp(' ')disp('Press any key to continue.')pauseplot(pointlog4(:,1), pointlog4(:,2), 'bd', 'MarkerSize', 6)plot(pointlog3(:,1), pointlog3(:,2), 'mx', 'MarkerSize', 6, 'LineWidth', 2)plot(pointlog(:,1), pointlog(:,2), 'k.', 'MarkerSize', 18)plot(pointlog2(:,1), pointlog2(:,2), 'g+', 'MarkerSize', 6, 'LineWidth', 2)lh = legend(  'Gradient Descent', 'Scaled Conjugate Gradients', ...  'Quasi Newton', 'Conjugate Gradients');hold offclcdisp('Press any key to end.')pauseclose(fh1);clear all;

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲午夜精品17c| 另类小说图片综合网| 成人免费三级在线| 国产精品伦一区| 欧美性欧美巨大黑白大战| 性久久久久久久久| 国产欧美日韩亚州综合| 欧美专区日韩专区| 激情六月婷婷综合| 亚洲精品精品亚洲| 久久欧美一区二区| 在线亚洲精品福利网址导航| 狠狠色狠狠色综合| 亚洲自拍偷拍图区| 中文字幕第一区| 91精品国产综合久久久久久久| 国产激情一区二区三区四区 | 一区二区三区.www| 日韩精品一区二| 色狠狠一区二区三区香蕉| 久久精品99国产国产精| 亚洲精品中文字幕乱码三区| 久久亚洲综合av| 在线成人免费视频| 91蝌蚪porny九色| 高清国产一区二区| 精品一区二区三区在线观看国产| 亚洲精选一二三| 日本一区二区高清| 欧美va日韩va| 日韩一区二区免费在线电影| 在线亚洲人成电影网站色www| 国产高清在线观看免费不卡| 奇米888四色在线精品| 亚洲综合免费观看高清完整版在线| 欧美精品一区二区三区很污很色的| 欧美午夜精品久久久久久超碰| 成人免费精品视频| 国产成人精品免费在线| 九九精品视频在线看| 蜜桃视频在线观看一区二区| 亚洲成人av电影| 亚洲www啪成人一区二区麻豆 | 成人免费精品视频| 国产精品小仙女| 国产一区二区三区四区在线观看 | 国产一区不卡精品| 精品夜夜嗨av一区二区三区| 蜜桃av一区二区三区电影| 亚洲电影一区二区三区| 亚洲一区国产视频| 天天色天天操综合| 五月婷婷色综合| 日本不卡一区二区三区高清视频| 亚洲aaa精品| 免费精品视频最新在线| 日韩精品成人一区二区三区| 日精品一区二区| 日本91福利区| 日本特黄久久久高潮| 久久er99热精品一区二区| 激情综合色播五月| 风间由美一区二区av101| 成人av资源在线| 欧美中文字幕一二三区视频| 欧美美女bb生活片| 精品美女在线播放| 国产精品国产a| 亚洲图片欧美色图| 久久电影网电视剧免费观看| 国产精品1区2区3区在线观看| 成人黄色小视频在线观看| 91在线视频观看| 制服丝袜亚洲播放| 久久精品一区蜜桃臀影院| 日韩美女精品在线| 欧美aaaaa成人免费观看视频| 国产精品一区二区x88av| av高清久久久| 91精品国产综合久久婷婷香蕉 | 美腿丝袜亚洲综合| 成人动漫一区二区在线| 欧美日韩一二区| 久久精品夜色噜噜亚洲a∨| 最新高清无码专区| 精品一区二区综合| 在线观看欧美精品| 久久在线观看免费| 亚洲国产精品久久人人爱蜜臀| 精品在线观看视频| 欧美性大战久久| 中文字幕欧美三区| 日韩不卡一二三区| 色综合视频一区二区三区高清| 日韩视频123| 亚洲激情网站免费观看| 国产一区二区三区高清播放| 欧美三区在线观看| 久久精品视频在线免费观看| 国产精品成人免费精品自在线观看| 丝袜诱惑制服诱惑色一区在线观看 | 国产成人免费9x9x人网站视频| 色香色香欲天天天影视综合网| 欧美成人精品福利| 亚洲韩国精品一区| 99国内精品久久| 精品久久久久久久久久久久久久久| 亚洲综合免费观看高清完整版在线 | 中文字幕的久久| 久久成人av少妇免费| 在线观看欧美精品| 亚洲黄色免费网站| 成人午夜电影久久影院| 久久亚洲二区三区| 毛片av一区二区| 欧美美女激情18p| 午夜激情一区二区| 在线日韩av片| 亚洲一区二区视频在线| 国产69精品久久久久毛片| 欧美精品一区二区三区四区 | 老汉av免费一区二区三区| 欧美女孩性生活视频| 一级女性全黄久久生活片免费| 成人黄色777网| 亚洲欧洲精品一区二区精品久久久| 国产东北露脸精品视频| 久久精品夜色噜噜亚洲aⅴ| 国产精品小仙女| 国产精品久久三| 91无套直看片红桃| 亚洲一区二区不卡免费| 欧美日韩在线不卡| 日本v片在线高清不卡在线观看| 777久久久精品| 久久国产福利国产秒拍| 欧美成人官网二区| 风流少妇一区二区| 亚洲精品va在线观看| 欧美片网站yy| 精品一区二区三区不卡 | 欧美日韩一区二区三区四区| 亚洲v中文字幕| 亚洲精品在线观| 成人黄色小视频| 亚洲福利视频三区| 亚洲精品一区二区三区四区高清| 国产成人午夜片在线观看高清观看| 国产精品久久久久一区二区三区 | 国产精品一区三区| 自拍偷拍亚洲综合| 欧美肥妇free| 国产二区国产一区在线观看| 亚洲欧美激情视频在线观看一区二区三区 | 国产欧美日韩在线视频| 一本久久综合亚洲鲁鲁五月天| 亚洲成人免费视频| 久久久午夜精品| 欧美伊人精品成人久久综合97 | 亚洲尤物在线视频观看| 欧美系列日韩一区| 蜜臀av性久久久久蜜臀av麻豆| 久久中文字幕电影| 日本高清不卡视频| 国产一区二区三区四区五区美女| 亚洲男同性恋视频| 精品国产一区二区精华| 色成人在线视频| 国产乱人伦精品一区二区在线观看| 日韩理论片一区二区| 日韩一区二区在线免费观看| 91麻豆国产福利在线观看| 麻豆成人久久精品二区三区红| 中文字幕在线播放不卡一区| 日韩欧美亚洲国产另类| 色婷婷激情综合| 成人性色生活片| 免费高清视频精品| 一区二区三区精密机械公司| 久久精品人人做人人综合| 91精品国产免费久久综合| 91麻豆国产福利在线观看| 国产成人亚洲综合a∨猫咪| 免费成人在线影院| 天堂精品中文字幕在线| 亚洲一级二级在线| 亚洲欧美成人一区二区三区| 国产日韩欧美电影| 久久夜色精品国产噜噜av| 91精品国产乱码| 欧美精品久久99| 欧美裸体bbwbbwbbw| 欧美最新大片在线看| 色综合网站在线| 色综合天天综合色综合av| 懂色av中文字幕一区二区三区 | 欧美高清一级片在线| 欧美自拍丝袜亚洲| 在线观看国产精品网站| 91麻豆精东视频|