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

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

?? demopt1.m

?? 神經網絡的經典代碼
?? M
字號:
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;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲精品国产精品乱码不99| 久久久99精品免费观看| 大美女一区二区三区| 国产一区日韩二区欧美三区| 日韩avvvv在线播放| 麻豆高清免费国产一区| 人人爽香蕉精品| 久久99精品久久久久婷婷| 捆绑紧缚一区二区三区视频 | 国产麻豆成人精品| 国产一区二区三区蝌蚪| 成人综合婷婷国产精品久久蜜臀 | 国产美女精品一区二区三区| 卡一卡二国产精品 | 国内外成人在线视频| 九一九一国产精品| 成人精品视频一区二区三区尤物| 成人性生交大片免费看在线播放| 99精品一区二区| 欧美伊人久久大香线蕉综合69| 7777精品伊人久久久大香线蕉| 欧美xxxxxxxx| 亚洲人吸女人奶水| 免费精品视频在线| 粉嫩在线一区二区三区视频| 在线精品视频免费播放| 日韩无一区二区| 国产精品欧美一级免费| 亚洲第一狼人社区| 狠狠狠色丁香婷婷综合久久五月| 丁香一区二区三区| 欧美午夜精品久久久久久超碰 | 国产精品久久久久影院| 亚洲高清在线视频| 国产精品一级二级三级| 91蜜桃视频在线| 精品盗摄一区二区三区| 亚洲自拍偷拍图区| 国产美女精品在线| 欧美日韩一区成人| 国产精品三级视频| 热久久国产精品| 91同城在线观看| 欧美一区二区久久| 亚洲免费观看高清完整| 久久99精品国产| 欧美日韩亚洲另类| 国产精品国产馆在线真实露脸 | www.成人网.com| 欧美电影免费观看高清完整版在 | 中文在线一区二区| 日本sm残虐另类| 欧美在线你懂得| 中文字幕亚洲区| 国产在线精品免费av| 8v天堂国产在线一区二区| 国产精品国产馆在线真实露脸 | 亚洲人妖av一区二区| 九九视频精品免费| 欧美一区二区不卡视频| 亚洲国产精品久久久久婷婷884 | 日韩一级免费观看| 亚洲一区二区三区爽爽爽爽爽| 不卡av免费在线观看| 久久久久9999亚洲精品| 精品无人区卡一卡二卡三乱码免费卡 | 爽好久久久欧美精品| 欧亚洲嫩模精品一区三区| 国产精品久久二区二区| 国产成+人+日韩+欧美+亚洲| 精品国产一区二区三区不卡 | 91视频你懂的| 国产精品不卡视频| av不卡一区二区三区| 国产日韩欧美综合一区| 国产精品99久久久久久宅男| 久久天天做天天爱综合色| 精品一区二区三区免费| 精品国产人成亚洲区| 国产麻豆精品久久一二三| 国产无遮挡一区二区三区毛片日本| 九九精品一区二区| 国产日韩影视精品| 91视频国产观看| 亚洲午夜久久久| 5858s免费视频成人| 美女一区二区久久| 久久色中文字幕| 成人激情文学综合网| 亚洲视频资源在线| 欧美三级日韩三级国产三级| 丝瓜av网站精品一区二区| 精品人在线二区三区| 国产成人无遮挡在线视频| 最近中文字幕一区二区三区| 在线看日本不卡| 蜜臀av一级做a爰片久久| 欧美经典三级视频一区二区三区| av不卡一区二区三区| 亚洲成人黄色影院| 久久影音资源网| 色系网站成人免费| 精品一区二区三区视频| 日本一区二区在线不卡| 91久久精品午夜一区二区| 免费人成网站在线观看欧美高清| 久久久久久免费毛片精品| 99精品1区2区| 美女mm1313爽爽久久久蜜臀| 亚洲欧洲av色图| 欧美电影精品一区二区| 99天天综合性| 久久99在线观看| 亚洲靠逼com| 精品国产一区二区三区不卡| 色成年激情久久综合| 精品一区二区三区久久| 一区二区三区在线不卡| 久久午夜老司机| 宅男在线国产精品| 北条麻妃国产九九精品视频| 久久精品国产**网站演员| 有坂深雪av一区二区精品| 日韩精品一区二区三区swag | 国内欧美视频一区二区 | 久久先锋影音av鲁色资源网| 欧美亚洲综合久久| 99久久免费精品高清特色大片| 免费成人在线网站| 亚洲一区在线播放| 国产精品情趣视频| 久久久久久久网| 欧美一区二区三区四区视频| 91国偷自产一区二区使用方法| 激情综合色播五月| 日韩在线一区二区三区| 樱花草国产18久久久久| 中文字幕一区二区三区av| 国产女主播视频一区二区| 日韩欧美一级在线播放| 欧美久久久久久蜜桃| 欧美日韩一级二级三级| 91福利精品第一导航| 91免费精品国自产拍在线不卡| 91豆麻精品91久久久久久| 成人午夜激情影院| 成人av小说网| 亚洲综合成人网| 亚洲色图.com| 欧美曰成人黄网| 国产一区二区伦理片| 日本麻豆一区二区三区视频| 亚洲电影一区二区三区| 亚洲一线二线三线视频| 亚洲日本在线观看| 中文字幕亚洲电影| 中文字幕一区二区三区四区 | 亚洲一二三四在线观看| 亚洲欧美日韩一区| 一区二区三区在线免费播放| 亚洲线精品一区二区三区| 亚洲午夜免费视频| 日韩精品每日更新| 国产一区二区在线免费观看| 国产成人免费视频网站高清观看视频| 国产a久久麻豆| av在线播放不卡| 91福利视频网站| 91精品久久久久久久久99蜜臂| 这里只有精品免费| 久久久久久久久久看片| 国产精品乱人伦| 洋洋成人永久网站入口| 日韩高清欧美激情| 国产精品888| 色网站国产精品| 欧美一卡二卡三卡| 国产欧美一区二区精品秋霞影院 | 色8久久精品久久久久久蜜| 欧美日韩国产大片| 久久先锋影音av鲁色资源网| 中文字幕在线不卡国产视频| 亚洲午夜精品网| 国产成人自拍网| 欧美三级视频在线| 国产欧美精品一区二区色综合朱莉| 亚洲欧洲成人精品av97| 奇米综合一区二区三区精品视频| 国产精品538一区二区在线| 色综合天天综合狠狠| 日韩一级在线观看| 国产精品福利在线播放| 五月天激情综合| 懂色av一区二区三区免费看| 欧美日韩美少妇| 国产精品第五页| 国产一区91精品张津瑜| 欧美区一区二区三区| 国产精品国产三级国产aⅴ无密码 国产精品国产三级国产aⅴ原创 | 麻豆视频观看网址久久|