91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

吳恩達機器學習公開課資料

資源截圖

代碼片段和文件信息

%?BOOSTING_EXAMPLE
%
%?Constructs?a?2-dimensional?dataset?classifiable?by?boosting?but?not?any
%?simple?linear?classifier?because?of?the?thresholding?nature?of?the?data.

rand(‘seed‘?0);

%?m?datapoints?in?2-dimensions
mm?=?150;
X?=?rand(mm?2);

thresh_pos?=?.6;
y?=?[X(:?1)?y?=?2?*?y?-?1;

for?T?=?[2?4?5?10]
??figure;
??hpos?=?plot(X(y?==?1?1)?X(y?==?1?2)?‘o‘);
??hold?on;
??hneg?=?plot(X(y?==?-1?1)?X(y?==?-1?2)?‘x‘);
??set(hpos?‘linewidth‘?2);
??set(hneg?‘linewidth‘?2);

??[theta?feature_inds?thresholds]?=?stump_booster(X?y?T);

??x1_coords?=?linspace(0?1?100);
??x2_coords?=?linspace(0?1?100);
??Z?=?zeros(100);
??for?ii?=?1:100
????for?jj?=?1:100
??????pred?=?(sign(x1_coords(ii)?-?thresholds(feature_inds?==?1))‘?*?...
??????????????theta(feature_inds?==?1))?+?...
?????????????(sign(x2_coords(jj)?-?thresholds(feature_inds?==?2))‘?*?...
??????????????theta(feature_inds?==?2));
??????Z(jj?ii)?=?sign(pred);
????end
??end

??C?=?contourc(x1_coords?x2_coords?Z?[0?0]);
??h?=?plot(C(1?2:end)?C(2?2:end)?‘k-‘);
??set(h?‘linewidth‘?2);
??title(sprintf(‘Iterations?=?%d‘?T));
??set(gca?‘fontsize‘?18);
??print(‘-depsc2‘?sprintf(‘boost_plot_%d.eps‘?T));
end

%%?Now?solve?the?logistic?regression?problem?directly

mm?=?200;
X?=?rand(mm?2);
y?=?[X(:?1)?y?=?2?*?y?-?1;

theta_log?=?zeros(3?1);
X_logit?=?[ones(mm?1)?X];
for?iter?=?1:1000
??risk?=?(1/mm)?*?sum(log(1?+?exp(-y?.*?(X_logit?*?theta_log))));
??if?(mod(iter?50)?==?0)
????fprintf(1?‘Iter?%d?loss?%1.4f\n‘?iter?risk);
??end
??p?=?1?./?(1?+?exp(y?.*?(X_logit?*?theta_log)));
??g?=?-(1/mm)?*?X_logit‘?*?(p?.*?y);
??theta_log?=?theta_log?-?2?*?g;
end

x1_coord?=?linspace(0?1?100);
x2_coord?=?-(theta_log(1)?+?theta_log(2)?*?x1_coord)?/?theta_log(3);

figure;
hpos?=?plot(X(y?==?1?1)?X(y?==?1?2)?‘o‘);
hold?on;
hneg?=?plot(X(y?==?-1?1)?X(y?==?-1?2)?‘x‘);
set(hpos?‘linewidth‘?2);
set(hneg?‘linewidth‘?2);
h?=?plot(x1_coord?x2_coord?‘k-‘?‘linewidth‘?2);
axis([0?1?0?1]);
set(gca?‘fontsize‘?18);
print?-depsc2?‘logistic_plot.eps‘;

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件????1036360??2018-08-03?15:18??吳恩達機器學習公開課資料\1412.6572.pdf

?????文件?????128864??2018-08-03?15:19??吳恩達機器學習公開課資料\boosting.pdf

?????文件???????2136??2018-08-03?15:20??吳恩達機器學習公開課資料\boosting_example.m

?????文件?????168829??2018-08-03?15:22??吳恩達機器學習公開課資料\cs229-cvxopt?(1).pdf

?????文件?????168829??2018-08-03?14:57??吳恩達機器學習公開課資料\cs229-cvxopt.pdf

?????文件?????203872??2018-08-03?15:22??吳恩達機器學習公開課資料\cs229-cvxopt2?(1).pdf

?????文件?????203872??2018-08-03?14:58??吳恩達機器學習公開課資料\cs229-cvxopt2.pdf

?????文件?????163887??2018-08-03?15:23??吳恩達機器學習公開課資料\cs229-gaussian_processes.pdf

?????文件?????202549??2018-08-03?15:23??吳恩達機器學習公開課資料\cs229-hmm.pdf

?????文件?????205269??2018-08-03?15:21??吳恩達機器學習公開課資料\cs229-linalg?(1).pdf

?????文件?????205269??2018-08-03?14:50??吳恩達機器學習公開課資料\cs229-linalg.pdf

?????文件?????151564??2018-08-03?14:58??吳恩達機器學習公開課資料\cs229-notes-backprop.pdf

?????文件?????340539??2018-08-03?14:58??吳恩達機器學習公開課資料\cs229-notes-deep_learning.pdf

?????文件?????233824??2018-08-03?14:48??吳恩達機器學習公開課資料\cs229-notes1.pdf

?????文件?????751477??2018-08-03?14:41??吳恩達機器學習公開課資料\cs229-notes1.ps

?????文件??????72012??2018-08-03?15:01??吳恩達機器學習公開課資料\cs229-notes10.pdf

?????文件?????342393??2018-08-03?14:45??吳恩達機器學習公開課資料\cs229-notes10.ps

?????文件??????78012??2018-08-03?15:01??吳恩達機器學習公開課資料\cs229-notes11.pdf

?????文件?????363284??2018-08-03?14:45??吳恩達機器學習公開課資料\cs229-notes11.ps

?????文件?????170639??2018-08-03?15:02??吳恩達機器學習公開課資料\cs229-notes12.pdf

?????文件?????558166??2018-08-03?14:45??吳恩達機器學習公開課資料\cs229-notes12.ps

?????文件?????231186??2018-08-03?15:02??吳恩達機器學習公開課資料\cs229-notes13.pdf

?????文件?????881990??2018-08-03?14:52??吳恩達機器學習公開課資料\cs229-notes2.pdf

?????文件????4642639??2018-08-03?14:44??吳恩達機器學習公開課資料\cs229-notes2.ps

?????文件?????193344??2018-08-03?14:53??吳恩達機器學習公開課資料\cs229-notes3.pdf

?????文件?????578275??2018-08-03?14:44??吳恩達機器學習公開課資料\cs229-notes3.ps

?????文件?????112922??2018-08-03?14:56??吳恩達機器學習公開課資料\cs229-notes4.pdf

?????文件?????446579??2018-08-03?14:44??吳恩達機器學習公開課資料\cs229-notes4.ps

?????文件??????89353??2018-08-03?14:56??吳恩達機器學習公開課資料\cs229-notes5.pdf

?????文件?????370078??2018-08-03?14:44??吳恩達機器學習公開課資料\cs229-notes5.ps

............此處省略37個文件信息

評論

共有 條評論