You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

633 lines
62 KiB

<!DOCTYPE HTML>
<html lang="" >
<head>
<meta charset="UTF-8">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>群众的力量是伟大的-随机森林 · GitBook</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="description" content="">
<meta name="generator" content="GitBook 3.2.3">
<link rel="stylesheet" href="gitbook/style.css">
<link rel="stylesheet" href="gitbook/gitbook-plugin-katex/katex.min.css">
<link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
<link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
<link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
<meta name="HandheldFriendly" content="true"/>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
<link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">
<link rel="next" href="kMeans.html" />
<link rel="prev" href="decision_tree.html" />
</head>
<body>
<div class="book">
<div class="book-summary">
<div id="book-search-input" role="search">
<input type="text" placeholder="Type to search" />
</div>
<nav role="navigation">
<ul class="summary">
<li class="chapter " data-level="1.1" data-path="./">
<a href="./">
简介
</a>
</li>
<li class="chapter " data-level="1.2" data-path="machine_learning.html">
<a href="machine_learning.html">
机器学习概述
</a>
</li>
<li class="chapter " data-level="1.3" data-path="algorithm.html">
<a href="algorithm.html">
常见机器学习算法
</a>
<ul class="articles">
<li class="chapter " data-level="1.3.1" data-path="kNN.html">
<a href="kNN.html">
近朱者赤近墨者黑-kNN
</a>
</li>
<li class="chapter " data-level="1.3.2" data-path="linear_regression.html">
<a href="linear_regression.html">
最简单的回归算法-线性回归
</a>
</li>
<li class="chapter " data-level="1.3.3" data-path="logistic_regression.html">
<a href="logistic_regression.html">
使用回归的思想进行分类-逻辑回归
</a>
</li>
<li class="chapter " data-level="1.3.4" data-path="decision_tree.html">
<a href="decision_tree.html">
最接近人类思维的算法-决策树
</a>
</li>
<li class="chapter active" data-level="1.3.5" data-path="random_forest.html">
<a href="random_forest.html">
群众的力量是伟大的-随机森林
</a>
</li>
<li class="chapter " data-level="1.3.6" data-path="kMeans.html">
<a href="kMeans.html">
物以类聚人以群分-kMeans
</a>
</li>
<li class="chapter " data-level="1.3.7" data-path="AGNES.html">
<a href="AGNES.html">
以距离为尺-AGNES
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.4" data-path="metrics.html">
<a href="metrics.html">
模型评估指标
</a>
<ul class="articles">
<li class="chapter " data-level="1.4.1" data-path="classification_metrics.html">
<a href="classification_metrics.html">
分类性能评估指标
</a>
</li>
<li class="chapter " data-level="1.4.2" data-path="regression_metrics.html">
<a href="regression_metrics.html">
回归性能评估指标
</a>
</li>
<li class="chapter " data-level="1.4.3" data-path="cluster_metrics.html">
<a href="cluster_metrics.html">
聚类性能评估指标
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.5" data-path="sklearn.html">
<a href="sklearn.html">
使用sklearn进行机器学习
</a>
</li>
<li class="chapter " data-level="1.6" >
<span>
综合实战案例
</span>
<ul class="articles">
<li class="chapter " data-level="1.6.1" >
<span>
泰坦尼克生还预测
</span>
<ul class="articles">
<li class="chapter " data-level="1.6.1.1" data-path="titanic/introduction.html">
<a href="titanic/introduction.html">
简介
</a>
</li>
<li class="chapter " data-level="1.6.1.2" data-path="titanic/EDA.html">
<a href="titanic/EDA.html">
探索性数据分析(EDA)
</a>
</li>
<li class="chapter " data-level="1.6.1.3" data-path="titanic/feature engerning.html">
<a href="titanic/feature engerning.html">
特征工程
</a>
</li>
<li class="chapter " data-level="1.6.1.4" data-path="titanic/fit and predict.html">
<a href="titanic/fit and predict.html">
构建模型进行预测
</a>
</li>
<li class="chapter " data-level="1.6.1.5" data-path="titanic/tuning.html">
<a href="titanic/tuning.html">
调参
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.6.2" >
<span>
使用强化学习玩乒乓球游戏
</span>
<ul class="articles">
<li class="chapter " data-level="1.6.2.1" data-path="pingpong/what is reinforce learning.html">
<a href="pingpong/what is reinforce learning.html">
什么是强化学习
</a>
</li>
<li class="chapter " data-level="1.6.2.2" data-path="pingpong/Policy Gradient.html">
<a href="pingpong/Policy Gradient.html">
Policy Gradient原理
</a>
</li>
<li class="chapter " data-level="1.6.2.3" data-path="pingpong/coding.html">
<a href="pingpong/coding.html">
使用Policy Gradient玩乒乓球游戏
</a>
</li>
</ul>
</li>
</ul>
</li>
<li class="chapter " data-level="1.7" data-path="recommand.html">
<a href="recommand.html">
实训推荐
</a>
</li>
<li class="divider"></li>
<li>
<a href="https://www.gitbook.com" target="blank" class="gitbook-link">
Published with GitBook
</a>
</li>
</ul>
</nav>
</div>
<div class="book-body">
<div class="body-inner">
<div class="book-header" role="navigation">
<!-- Title -->
<h1>
<i class="fa fa-circle-o-notch fa-spin"></i>
<a href="." >群众的力量是伟大的-随机森林</a>
</h1>
</div>
<div class="page-wrapper" tabindex="-1" role="main">
<div class="page-inner">
<div id="book-search-results">
<div class="search-noresults">
<section class="normal markdown-section">
<h1 id="&#x7FA4;&#x4F17;&#x7684;&#x529B;&#x91CF;&#x662F;&#x4F1F;&#x5927;&#x7684;-&#x968F;&#x673A;&#x68EE;&#x6797;">&#x7FA4;&#x4F17;&#x7684;&#x529B;&#x91CF;&#x662F;&#x4F1F;&#x5927;&#x7684;-&#x968F;&#x673A;&#x68EE;&#x6797;</h1>
<p>&#x65E2;&#x7136;&#x6709;&#x51B3;&#x7B56;&#x6811;&#xFF0C;&#x90A3;&#x6709;&#x6CA1;&#x6709;&#x7528;&#x591A;&#x68F5;&#x51B3;&#x7B56;&#x6811;&#x7EC4;&#x6210;&#x68EE;&#x6797;&#x7684;&#x7B97;&#x6CD5;&#x5462;&#xFF1F;&#x6709;&#xFF01;&#x90A3;&#x5C31;&#x662F;<strong>&#x968F;&#x673A;&#x68EE;&#x6797;</strong>&#x3002;&#x968F;&#x673A;&#x68EE;&#x6797;&#x662F;&#x4E00;&#x79CD;&#x53EB;<strong>Bagging</strong>&#x7684;&#x7B97;&#x6CD5;&#x6846;&#x67B6;&#x7684;&#x53D8;&#x4F53;&#x3002;&#x6240;&#x4EE5;&#x60F3;&#x8981;&#x7406;&#x89E3;<strong>&#x968F;&#x673A;&#x68EE;&#x6797;</strong>&#x9996;&#x5148;&#x8981;&#x7406;&#x89E3;<strong>Bagging</strong>&#x3002;</p>
<h2 id="bagging">Bagging</h2>
<h3 id="&#x4EC0;&#x4E48;&#x662F;bagging">&#x4EC0;&#x4E48;&#x662F;Bagging</h3>
<p><strong>Bagging</strong> &#x662F; Bootstrap Aggregating &#x7684;&#x82F1;&#x6587;&#x7F29;&#x5199;&#xFF0C;&#x521A;&#x63A5;&#x89E6;&#x7684;&#x60A8;&#x4E0D;&#x8981;&#x8BEF;&#x8BA4;&#x4E3A; <strong>Bagging</strong> &#x662F;&#x4E00;&#x79CD;&#x7B97;&#x6CD5;&#xFF0C;<strong>Bagging</strong> &#x662F;&#x96C6;&#x6210;&#x5B66;&#x4E60;&#x4E2D;&#x7684;&#x5B66;&#x4E60;&#x6846;&#x67B6;&#xFF0C; <strong>Bagging</strong> &#x662F;&#x5E76;&#x884C;&#x5F0F;&#x96C6;&#x6210;&#x5B66;&#x4E60;&#x65B9;&#x6CD5;&#x3002;&#x5927;&#x540D;&#x9F0E;&#x9F0E;&#x7684;&#x968F;&#x673A;&#x68EE;&#x6797;&#x7B97;&#x6CD5;&#x5C31;&#x662F;&#x5728; $Bagging$ &#x7684;&#x57FA;&#x7840;&#x4E0A;&#x4FEE;&#x6539;&#x7684;&#x7B97;&#x6CD5;&#x3002;</p>
<p><strong> Bagging &#x65B9;&#x6CD5;&#x7684;&#x6838;&#x5FC3;&#x601D;&#x60F3;&#x5C31;&#x662F;&#x4E09;&#x4E2A;&#x81ED;&#x76AE;&#x5320;&#x9876;&#x4E2A;&#x8BF8;&#x845B;&#x4EAE;</strong>&#x3002;&#x5982;&#x679C;&#x4F7F;&#x7528; <strong>Bagging</strong> &#x89E3;&#x51B3;&#x5206;&#x7C7B;&#x95EE;&#x9898;&#xFF0C;&#x5C31;&#x662F;&#x5C06;&#x591A;&#x4E2A;&#x5206;&#x7C7B;&#x5668;&#x7684;&#x7ED3;&#x679C;&#x6574;&#x5408;&#x8D77;&#x6765;&#x8FDB;&#x884C;&#x6295;&#x7968;&#xFF0C;&#x9009;&#x53D6;&#x7968;&#x6570;&#x6700;&#x9AD8;&#x7684;&#x7ED3;&#x679C;&#x4F5C;&#x4E3A;&#x6700;&#x7EC8;&#x7ED3;&#x679C;&#x3002;&#x5982;&#x679C;&#x4F7F;&#x7528; <strong>Bagging</strong> &#x89E3;&#x51B3;&#x56DE;&#x5F52;&#x95EE;&#x9898;&#xFF0C;&#x5C31;&#x5C06;&#x591A;&#x4E2A;&#x56DE;&#x5F52;&#x5668;&#x7684;&#x7ED3;&#x679C;&#x52A0;&#x8D77;&#x6765;&#x7136;&#x540E;&#x6C42;&#x5E73;&#x5747;&#xFF0C;&#x5C06;&#x5E73;&#x5747;&#x503C;&#x4F5C;&#x4E3A;&#x6700;&#x7EC8;&#x7ED3;&#x679C;&#x3002;</p>
<p>&#x90A3;&#x4E48; <strong>Bagging</strong> &#x65B9;&#x6CD5;&#x5982;&#x6B64;&#x6709;&#x6548;&#x5462;&#xFF0C;&#x4E3E;&#x4E2A;&#x4F8B;&#x5B50;&#x3002;&#x72FC;&#x4EBA;&#x6740;&#x6211;&#x76F8;&#x4FE1;&#x60A8;&#x5E94;&#x8BE5;&#x73A9;&#x8FC7;&#xFF0C;&#x5728;&#x5929;&#x9ED1;&#x4E4B;&#x524D;&#xFF0C;&#x6751;&#x6C11;&#x4EEC;&#x90FD;&#x8981;&#x6839;&#x636E;&#x5F53;&#x5929;&#x6240;&#x53D1;&#x751F;&#x7684;&#x4E8B;&#x548C;&#x522B;&#x4EBA;&#x7684;&#x53D1;&#x73B0;&#x6765;&#x6295;&#x7968;&#x51B3;&#x5B9A;&#x8C01;&#x53EF;&#x80FD;&#x662F;&#x72FC;&#x4EBA;&#x3002;</p>
<p>&#x5982;&#x679C;&#x6211;&#x4EEC;&#x5C06;&#x6BCF;&#x4E2A;&#x6751;&#x6C11;&#x770B;&#x6210;&#x662F;&#x4E00;&#x4E2A;&#x5206;&#x7C7B;&#x5668;&#xFF0C;&#x90A3;&#x4E48;&#x6BCF;&#x4E2A;&#x6751;&#x6C11;&#x7684;&#x4EFB;&#x52A1;&#x5C31;&#x662F;&#x4E8C;&#x5206;&#x7C7B;&#xFF0C;&#x5047;&#x8BBE; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><msub><mi>h</mi><mi>i</mi></msub><mo>(</mo><mi>x</mi><mo>)</mo></mrow><annotation encoding="application/x-tex">h_i(x)</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.75em;"></span><span class="strut bottom" style="height:1em;vertical-align:-0.25em;"></span><span class="base textstyle uncramped"><span class="mord"><span class="mord mathit">h</span><span class="msupsub"><span class="vlist"><span style="top:0.15em;margin-right:0.05em;margin-left:0em;"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">&#x200B;</span></span><span class="reset-textstyle scriptstyle cramped mtight"><span class="mord mathit mtight">i</span></span></span><span class="baseline-fix"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">&#x200B;</span></span>&#x200B;</span></span></span></span><span class="mopen">(</span><span class="mord mathit">x</span><span class="mclose">)</span></span></span></span> &#x8868;&#x793A;&#x7B2C; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>i</mi></mrow><annotation encoding="application/x-tex">i</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.65952em;"></span><span class="strut bottom" style="height:0.65952em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord mathit">i</span></span></span></span> &#x4E2A;&#x6751;&#x6C11;&#x8BA4;&#x4E3A; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>x</mi></mrow><annotation encoding="application/x-tex">x</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.43056em;"></span><span class="strut bottom" style="height:0.43056em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord mathit">x</span></span></span></span> &#x662F;&#x4E0D;&#x662F;&#x72FC;&#x4EBA;( <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>&#x2212;</mo><mn>1</mn></mrow><annotation encoding="application/x-tex">-1</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.64444em;"></span><span class="strut bottom" style="height:0.72777em;vertical-align:-0.08333em;"></span><span class="base textstyle uncramped"><span class="mord">&#x2212;</span><span class="mord mathrm">1</span></span></span></span> &#x4EE3;&#x8868;&#x4E0D;&#x662F;&#x72FC;&#x4EBA;&#xFF0C; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mn>1</mn></mrow><annotation encoding="application/x-tex">1</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.64444em;"></span><span class="strut bottom" style="height:0.64444em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord mathrm">1</span></span></span></span> &#x4EE3;&#x8868;&#x662F;&#x72FC;&#x4EBA;)&#xFF0C;<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>f</mi><mo>(</mo><mi>x</mi><mo>)</mo></mrow><annotation encoding="application/x-tex">f(x)</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.75em;"></span><span class="strut bottom" style="height:1em;vertical-align:-0.25em;"></span><span class="base textstyle uncramped"><span class="mord mathit" style="margin-right:0.10764em;">f</span><span class="mopen">(</span><span class="mord mathit">x</span><span class="mclose">)</span></span></span></span> &#x8868;&#x793A; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>x</mi></mrow><annotation encoding="application/x-tex">x</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.43056em;"></span><span class="strut bottom" style="height:0.43056em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord mathit">x</span></span></span></span> &#x771F;&#x6B63;&#x7684;&#x8EAB;&#x4EFD;(&#x662F;&#x4E0D;&#x662F;&#x72FC;&#x4EBA;)&#xFF0C;<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>&#x3F5;</mi></mrow><annotation encoding="application/x-tex">\epsilon</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.43056em;"></span><span class="strut bottom" style="height:0.43056em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord mathit">&#x3F5;</span></span></span></span> &#x8868;&#x793A;&#x4E3A;&#x6751;&#x6C11;&#x5224;&#x65AD;&#x9519;&#x8BEF;&#x7684;&#x9519;&#x8BEF;&#x7387;&#x3002;&#x5219;&#x6709; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>P</mi><mo>(</mo><msub><mi>h</mi><mi>i</mi></msub><mo>(</mo><mi>x</mi><mo>)</mo><mo>&#x2260;</mo><mi>f</mi><mo>(</mo><mi>x</mi><mo>)</mo><mo>)</mo><mo>=</mo><mi>&#x3F5;</mi></mrow><annotation encoding="application/x-tex">P(h_i(x)\neq f(x))=\epsilon</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.75em;"></span><span class="strut bottom" style="height:1em;vertical-align:-0.25em;"></span><span class="base textstyle uncramped"><span class="mord mathit" style="margin-right:0.13889em;">P</span><span class="mopen">(</span><span class="mord"><span class="mord mathit">h</span><span class="msupsub"><span class="vlist"><span style="top:0.15em;margin-right:0.05em;margin-left:0em;"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">&#x200B;</span></span><span class="reset-textstyle scriptstyle cramped mtight"><span class="mord mathit mtight">i</span></span></span><span class="baseline-fix"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">&#x200B;</span></span>&#x200B;</span></span></span></span><span class="mopen">(</span><span class="mord mathit">x</span><span class="mclose">)</span><span class="mrel">&#x2260;</span><span class="mord mathit" style="margin-right:0.10764em;">f</span><span class="mopen">(</span><span class="mord mathit">x</span><span class="mclose">)</span><span class="mclose">)</span><span class="mrel">=</span><span class="mord mathit">&#x3F5;</span></span></span></span>&#x3002;</p>
<p>&#x6839;&#x636E;&#x72FC;&#x4EBA;&#x6740;&#x7684;&#x89C4;&#x5219;&#xFF0C;&#x6751;&#x6C11;&#x4EEC;&#x9700;&#x8981;&#x6295;&#x7968;&#x51B3;&#x5B9A;&#x5929;&#x9ED1;&#x524D;&#x8C01;&#x662F;&#x72FC;&#x4EBA;&#xFF0C;&#x4E5F;&#x5C31;&#x662F;&#x8BF4;&#x5982;&#x679C;&#x6709;&#x8D85;&#x8FC7;&#x534A;&#x6570;&#x7684;&#x6751;&#x6C11;&#x6295;&#x7968;&#x65F6;&#x731C;&#x5BF9;&#x4E86;&#xFF0C;&#x90A3;&#x4E48;&#x8FD9;&#x4E00;&#x8F6E;&#x5C31;&#x731C;&#x5BF9;&#x4E86;&#x3002;&#x90A3;&#x4E48;&#x5047;&#x8BBE;&#x73B0;&#x5728;&#x6709; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>T</mi></mrow><annotation encoding="application/x-tex">T</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.68333em;"></span><span class="strut bottom" style="height:0.68333em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord mathit" style="margin-right:0.13889em;">T</span></span></span></span> &#x4E2A;&#x6751;&#x6C11;&#xFF0C;<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>H</mi><mo>(</mo><mi>x</mi><mo>)</mo></mrow><annotation encoding="application/x-tex">H(x)</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.75em;"></span><span class="strut bottom" style="height:1em;vertical-align:-0.25em;"></span><span class="base textstyle uncramped"><span class="mord mathit" style="margin-right:0.08125em;">H</span><span class="mopen">(</span><span class="mord mathit">x</span><span class="mclose">)</span></span></span></span> &#x8868;&#x793A;&#x6295;&#x7968;&#x540E;&#x6700;&#x7EC8;&#x7684;&#x7ED3;&#x679C;&#xFF0C;&#x5219;&#x6709; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>H</mi><mo>(</mo><mi>x</mi><mo>)</mo><mo>=</mo><mi>s</mi><mi>i</mi><mi>g</mi><mi>n</mi><mo>(</mo><msubsup><mo>&#x2211;</mo><mrow><mi>i</mi><mo>=</mo><mn>1</mn></mrow><mi>T</mi></msubsup><msub><mi>h</mi><mi>i</mi></msub><mo>(</mo><mi>x</mi><mo>)</mo><mo>)</mo></mrow><annotation encoding="application/x-tex">H(x)=sign(\sum_{i=1}^Th_i(x))</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.8423309999999999em;"></span><span class="strut bottom" style="height:1.142341em;vertical-align:-0.30001em;"></span><span class="base textstyle uncramped"><span class="mord mathit" style="margin-right:0.08125em;">H</span><span class="mopen">(</span><span class="mord mathit">x</span><span class="mclose">)</span><span class="mrel">=</span><span class="mord mathit">s</span><span class="mord mathit">i</span><span class="mord mathit" style="margin-right:0.03588em;">g</span><span class="mord mathit">n</span><span class="mopen">(</span><span class="mop"><span class="mop op-symbol small-op" style="top:-0.0000050000000000050004em;">&#x2211;</span><span class="msupsub"><span class="vlist"><span style="top:0.30001em;margin-left:0em;margin-right:0.05em;"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">&#x200B;</span></span><span class="reset-textstyle scriptstyle cramped mtight"><span class="mord scriptstyle cramped mtight"><span class="mord mathit mtight">i</span><span class="mrel mtight">=</span><span class="mord mathrm mtight">1</span></span></span></span><span style="top:-0.364em;margin-right:0.05em;"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">&#x200B;</span></span><span class="reset-textstyle scriptstyle uncramped mtight"><span class="mord mathit mtight" style="margin-right:0.13889em;">T</span></span></span><span class="baseline-fix"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">&#x200B;</span></span>&#x200B;</span></span></span></span><span class="mord"><span class="mord mathit">h</span><span class="msupsub"><span class="vlist"><span style="top:0.15em;margin-right:0.05em;margin-left:0em;"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">&#x200B;</span></span><span class="reset-textstyle scriptstyle cramped mtight"><span class="mord mathit mtight">i</span></span></span><span class="baseline-fix"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">&#x200B;</span></span>&#x200B;</span></span></span></span><span class="mopen">(</span><span class="mord mathit">x</span><span class="mclose">)</span><span class="mclose">)</span></span></span></span>&#x3002;</p>
<p>&#x73B0;&#x5728;&#x5047;&#x8BBE;&#x6BCF;&#x4E2A;&#x6751;&#x6C11;&#x90FD;&#x662F;&#x6709;&#x4E3B;&#x89C1;&#x7684;&#x4EBA;&#xFF0C;&#x5BF9;&#x4E8E;&#x8C01;&#x662F;&#x72FC;&#x4EBA;&#x90FD;&#x6709;&#x81EA;&#x5DF1;&#x7684;&#x60F3;&#x6CD5;&#xFF0C;&#x90A3;&#x4E48;&#x4ED6;&#x4EEC;&#x7684;&#x9519;&#x8BEF;&#x7387;&#x4E5F;&#x662F;&#x76F8;&#x4E92;&#x72EC;&#x7ACB;&#x7684;&#x3002;&#x90A3;&#x4E48;&#x6839;&#x636E;<strong>Hoeffding&#x4E0D;&#x7B49;&#x5F0F;</strong>&#x53EF;&#x77E5;&#xFF0C;<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>H</mi><mo>(</mo><mi>x</mi><mo>)</mo></mrow><annotation encoding="application/x-tex">H(x)</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.75em;"></span><span class="strut bottom" style="height:1em;vertical-align:-0.25em;"></span><span class="base textstyle uncramped"><span class="mord mathit" style="margin-right:0.08125em;">H</span><span class="mopen">(</span><span class="mord mathit">x</span><span class="mclose">)</span></span></span></span> &#x7684;&#x9519;&#x8BEF;&#x7387;&#x4E3A;&#xFF1A;</p>
<p><span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>P</mi><mo>(</mo><mi>H</mi><mo>(</mo><mi>x</mi><mo>)</mo><mo>&#x2260;</mo><mi>f</mi><mo>(</mo><mi>x</mi><mo>)</mo><mo>)</mo><mo>=</mo><msubsup><mo>&#x2211;</mo><mrow><mi>k</mi><mo>=</mo><mn>0</mn></mrow><mrow><mi>T</mi><mi mathvariant="normal">/</mi><mn>2</mn></mrow></msubsup><msubsup><mi>C</mi><mi>T</mi><mi>k</mi></msubsup><mo>(</mo><mn>1</mn><mo>&#x2212;</mo><mi>&#x3F5;</mi><msup><mo>)</mo><mi>k</mi></msup><msup><mi>&#x3F5;</mi><mrow><mi>T</mi><mo>&#x2212;</mo><mi>k</mi></mrow></msup><mo>&#x2264;</mo><mi>e</mi><mi>x</mi><mi>p</mi><mo>(</mo><mo>&#x2212;</mo><mfrac><mrow><mn>1</mn></mrow><mrow><mn>2</mn></mrow></mfrac><mi>T</mi><mo>(</mo><mn>1</mn><mo>&#x2212;</mo><mn>2</mn><mi>&#x3F5;</mi><msup><mo>)</mo><mn>2</mn></msup><mo>)</mo></mrow><annotation encoding="application/x-tex">
P(H(x)\neq f(x))=\sum_{k=0}^{T/2}C_T^k(1-\epsilon)^k\epsilon ^{T-k} \leq exp(-\frac{1}{2}T(1-2\epsilon)^2)
</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:1.0448em;"></span><span class="strut bottom" style="height:1.3898em;vertical-align:-0.345em;"></span><span class="base textstyle uncramped"><span class="mord mathit" style="margin-right:0.13889em;">P</span><span class="mopen">(</span><span class="mord mathit" style="margin-right:0.08125em;">H</span><span class="mopen">(</span><span class="mord mathit">x</span><span class="mclose">)</span><span class="mrel">&#x2260;</span><span class="mord mathit" style="margin-right:0.10764em;">f</span><span class="mopen">(</span><span class="mord mathit">x</span><span class="mclose">)</span><span class="mclose">)</span><span class="mrel">=</span><span class="mop"><span class="mop op-symbol small-op" style="top:-0.0000050000000000050004em;">&#x2211;</span><span class="msupsub"><span class="vlist"><span style="top:0.30130799999999996em;margin-left:0em;margin-right:0.05em;"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">&#x200B;</span></span><span class="reset-textstyle scriptstyle cramped mtight"><span class="mord scriptstyle cramped mtight"><span class="mord mathit mtight" style="margin-right:0.03148em;">k</span><span class="mrel mtight">=</span><span class="mord mathrm mtight">0</span></span></span></span><span style="top:-0.5197999999999999em;margin-right:0.05em;"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">&#x200B;</span></span><span class="reset-textstyle scriptstyle uncramped mtight"><span class="mord scriptstyle uncramped mtight"><span class="mord mathit mtight" style="margin-right:0.13889em;">T</span><span class="mord mathrm mtight">/</span><span class="mord mathrm mtight">2</span></span></span></span><span class="baseline-fix"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">&#x200B;</span></span>&#x200B;</span></span></span></span><span class="mord"><span class="mord mathit" style="margin-right:0.07153em;">C</span><span class="msupsub"><span class="vlist"><span style="top:0.275331em;margin-left:-0.07153em;margin-right:0.05em;"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">&#x200B;</span></span><span class="reset-textstyle scriptstyle cramped mtight"><span class="mord mathit mtight" style="margin-right:0.13889em;">T</span></span></span><span style="top:-0.363em;margin-right:0.05em;"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">&#x200B;</span></span><span class="reset-textstyle scriptstyle uncramped mtight"><span class="mord mathit mtight" style="margin-right:0.03148em;">k</span></span></span><span class="baseline-fix"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">&#x200B;</span></span>&#x200B;</span></span></span></span><span class="mopen">(</span><span class="mord mathrm">1</span><span class="mbin">&#x2212;</span><span class="mord mathit">&#x3F5;</span><span class="mclose"><span class="mclose">)</span><span class="msupsub"><span class="vlist"><span style="top:-0.363em;margin-right:0.05em;"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">&#x200B;</span></span><span class="reset-textstyle scriptstyle uncramped mtight"><span class="mord mathit mtight" style="margin-right:0.03148em;">k</span></span></span><span class="baseline-fix"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">&#x200B;</span></span>&#x200B;</span></span></span></span><span class="mord"><span class="mord mathit">&#x3F5;</span><span class="msupsub"><span class="vlist"><span style="top:-0.363em;margin-right:0.05em;"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">&#x200B;</span></span><span class="reset-textstyle scriptstyle uncramped mtight"><span class="mord scriptstyle uncramped mtight"><span class="mord mathit mtight" style="margin-right:0.13889em;">T</span><span class="mbin mtight">&#x2212;</span><span class="mord mathit mtight" style="margin-right:0.03148em;">k</span></span></span></span><span class="baseline-fix"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">&#x200B;</span></span>&#x200B;</span></span></span></span><span class="mrel">&#x2264;</span><span class="mord mathit">e</span><span class="mord mathit">x</span><span class="mord mathit">p</span><span class="mopen">(</span><span class="mord">&#x2212;</span><span class="mord reset-textstyle textstyle uncramped"><span class="mopen sizing reset-size5 size5 reset-textstyle textstyle uncramped nulldelimiter"></span><span class="mfrac"><span class="vlist"><span style="top:0.345em;"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">&#x200B;</span></span><span class="reset-textstyle scriptstyle cramped mtight"><span class="mord scriptstyle cramped mtight"><span class="mord mathrm mtight">2</span></span></span></span><span style="top:-0.22999999999999998em;"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">&#x200B;</span></span><span class="reset-textstyle textstyle uncramped frac-line"></span></span><span style="top:-0.394em;"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">&#x200B;</span></span><span class="reset-textstyle scriptstyle uncramped mtight"><span class="mord scriptstyle uncramped mtight"><span class="mord mathrm mtight">1</span></span></span></span><span class="baseline-fix"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">&#x200B;</span></span>&#x200B;</span></span></span><span class="mclose sizing reset-size5 size5 reset-textstyle textstyle uncramped nulldelimiter"></span></span><span class="mord mathit" style="margin-right:0.13889em;">T</span><span class="mopen">(</span><span class="mord mathrm">1</span><span class="mbin">&#x2212;</span><span class="mord mathrm">2</span><span class="mord mathit">&#x3F5;</span><span class="mclose"><span class="mclose">)</span><span class="msupsub"><span class="vlist"><span style="top:-0.363em;margin-right:0.05em;"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">&#x200B;</span></span><span class="reset-textstyle scriptstyle uncramped mtight"><span class="mord mathrm mtight">2</span></span></span><span class="baseline-fix"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">&#x200B;</span></span>&#x200B;</span></span></span></span><span class="mclose">)</span></span></span></span></p>
<p>&#x6839;&#x636E;&#x4E0A;&#x5F0F;&#x53EF;&#x77E5;&#xFF0C;&#x5982;&#x679C; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mn>5</mn></mrow><annotation encoding="application/x-tex">5</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.64444em;"></span><span class="strut bottom" style="height:0.64444em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord mathrm">5</span></span></span></span> &#x4E2A;&#x6751;&#x6C11;&#xFF0C;&#x6BCF;&#x4E2A;&#x6751;&#x6C11;&#x7684;&#x9519;&#x8BEF;&#x7387;&#x4E3A; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mn>0</mn><mi mathvariant="normal">.</mi><mn>3</mn><mn>3</mn></mrow><annotation encoding="application/x-tex">0.33</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.64444em;"></span><span class="strut bottom" style="height:0.64444em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord mathrm">0</span><span class="mord mathrm">.</span><span class="mord mathrm">3</span><span class="mord mathrm">3</span></span></span></span> &#xFF0C;&#x90A3;&#x4E48;&#x6295;&#x7968;&#x7684;&#x9519;&#x8BEF;&#x7387;&#x4E3A; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mn>0</mn><mi mathvariant="normal">.</mi><mn>7</mn><mn>4</mn><mn>9</mn></mrow><annotation encoding="application/x-tex">0.749</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.64444em;"></span><span class="strut bottom" style="height:0.64444em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord mathrm">0</span><span class="mord mathrm">.</span><span class="mord mathrm">7</span><span class="mord mathrm">4</span><span class="mord mathrm">9</span></span></span></span> &#xFF1B;&#x5982;&#x679C; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mn>2</mn><mn>0</mn></mrow><annotation encoding="application/x-tex">20</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.64444em;"></span><span class="strut bottom" style="height:0.64444em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord mathrm">2</span><span class="mord mathrm">0</span></span></span></span> &#x4E2A;&#x6751;&#x6C11;&#xFF0C;&#x6BCF;&#x4E2A;&#x6751;&#x6C11;&#x7684;&#x9519;&#x8BEF;&#x7387;&#x4E3A; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mn>0</mn><mi mathvariant="normal">.</mi><mn>3</mn><mn>3</mn></mrow><annotation encoding="application/x-tex">0.33</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.64444em;"></span><span class="strut bottom" style="height:0.64444em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord mathrm">0</span><span class="mord mathrm">.</span><span class="mord mathrm">3</span><span class="mord mathrm">3</span></span></span></span> &#xFF0C;&#x90A3;&#x4E48;&#x6295;&#x7968;&#x7684;&#x9519;&#x8BEF;&#x7387;&#x4E3A; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mn>0</mn><mi mathvariant="normal">.</mi><mn>3</mn><mn>1</mn><mn>5</mn></mrow><annotation encoding="application/x-tex">0.315</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.64444em;"></span><span class="strut bottom" style="height:0.64444em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord mathrm">0</span><span class="mord mathrm">.</span><span class="mord mathrm">3</span><span class="mord mathrm">1</span><span class="mord mathrm">5</span></span></span></span> &#xFF1B;&#x5982;&#x679C; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mn>5</mn><mn>0</mn></mrow><annotation encoding="application/x-tex">50</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.64444em;"></span><span class="strut bottom" style="height:0.64444em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord mathrm">5</span><span class="mord mathrm">0</span></span></span></span> &#x4E2A;&#x6751;&#x6C11;&#xFF0C;&#x6BCF;&#x4E2A;&#x6751;&#x6C11;&#x7684;&#x9519;&#x8BEF;&#x7387;&#x4E3A; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mn>0</mn><mi mathvariant="normal">.</mi><mn>3</mn><mn>3</mn></mrow><annotation encoding="application/x-tex">0.33</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.64444em;"></span><span class="strut bottom" style="height:0.64444em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord mathrm">0</span><span class="mord mathrm">.</span><span class="mord mathrm">3</span><span class="mord mathrm">3</span></span></span></span> &#xFF0C;&#x90A3;&#x4E48;&#x6295;&#x7968;&#x7684;&#x9519;&#x8BEF;&#x7387;&#x4E3A; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mn>0</mn><mi mathvariant="normal">.</mi><mn>0</mn><mn>5</mn><mn>6</mn></mrow><annotation encoding="application/x-tex">0.056</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.64444em;"></span><span class="strut bottom" style="height:0.64444em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord mathrm">0</span><span class="mord mathrm">.</span><span class="mord mathrm">0</span><span class="mord mathrm">5</span><span class="mord mathrm">6</span></span></span></span> &#xFF1B;&#x5982;&#x679C; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mn>1</mn><mn>0</mn><mn>0</mn></mrow><annotation encoding="application/x-tex">100</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.64444em;"></span><span class="strut bottom" style="height:0.64444em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord mathrm">1</span><span class="mord mathrm">0</span><span class="mord mathrm">0</span></span></span></span> &#x4E2A;&#x6751;&#x6C11;&#xFF0C;&#x6BCF;&#x4E2A;&#x6751;&#x6C11;&#x7684;&#x9519;&#x8BEF;&#x7387;&#x4E3A; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mn>0</mn><mi mathvariant="normal">.</mi><mn>3</mn><mn>3</mn></mrow><annotation encoding="application/x-tex">0.33</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.64444em;"></span><span class="strut bottom" style="height:0.64444em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord mathrm">0</span><span class="mord mathrm">.</span><span class="mord mathrm">3</span><span class="mord mathrm">3</span></span></span></span> &#xFF0C;&#x90A3;&#x4E48;&#x6295;&#x7968;&#x7684;&#x9519;&#x8BEF;&#x7387;&#x4E3A; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mn>0</mn><mi mathvariant="normal">.</mi><mn>0</mn><mn>0</mn><mn>3</mn></mrow><annotation encoding="application/x-tex">0.003</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.64444em;"></span><span class="strut bottom" style="height:0.64444em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord mathrm">0</span><span class="mord mathrm">.</span><span class="mord mathrm">0</span><span class="mord mathrm">0</span><span class="mord mathrm">3</span></span></span></span> &#x3002;<strong>&#x4ECE;&#x7ED3;&#x679C;&#x53EF;&#x4EE5;&#x770B;&#x51FA;&#xFF0C;&#x6751;&#x6C11;&#x7684;&#x6570;&#x91CF;&#x8D8A;&#x5927;&#xFF0C;&#x90A3;&#x4E48;&#x6295;&#x7968;&#x540E;&#x72AF;&#x9519;&#x7684;&#x9519;&#x8BEF;&#x7387;&#x5C31;&#x8D8A;&#x5C0F;&#x3002;</strong>&#x8FD9;&#x4E5F;&#x662F;<strong>Bagging</strong>&#x6027;&#x80FD;&#x5F3A;&#x7684;&#x539F;&#x56E0;&#x4E4B;&#x4E00;&#x3002;</p>
<h3 id="bagging&#x65B9;&#x6CD5;&#x5982;&#x4F55;&#x8BAD;&#x7EC3;">Bagging&#x65B9;&#x6CD5;&#x5982;&#x4F55;&#x8BAD;&#x7EC3;</h3>
<p><strong>Bagging</strong> &#x5728;&#x8BAD;&#x7EC3;&#x65F6;&#x7684;&#x7279;&#x70B9;&#x5C31;&#x662F;<strong>&#x968F;&#x673A;&#x6709;&#x653E;&#x56DE;&#x91C7;&#x6837;</strong>&#x548C;<strong>&#x5E76;&#x884C;</strong>&#x3002;</p>
<p><strong>&#x968F;&#x673A;&#x6709;&#x653E;&#x56DE;&#x91C7;&#x6837;&#xFF1A;</strong> &#x5047;&#x8BBE;&#x8BAD;&#x7EC3;&#x6570;&#x636E;&#x96C6;&#x6709; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>m</mi></mrow><annotation encoding="application/x-tex">m</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.43056em;"></span><span class="strut bottom" style="height:0.43056em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord mathit">m</span></span></span></span> &#x6761;&#x6837;&#x672C;&#x6570;&#x636E;&#xFF0C;&#x6BCF;&#x6B21;&#x4ECE;&#x8FD9; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>m</mi></mrow><annotation encoding="application/x-tex">m</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.43056em;"></span><span class="strut bottom" style="height:0.43056em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord mathit">m</span></span></span></span> &#x6761;&#x6570;&#x636E;&#x4E2D;&#x968F;&#x673A;&#x53D6;&#x4E00;&#x6761;&#x6570;&#x636E;&#x653E;&#x5165;&#x91C7;&#x6837;&#x96C6;&#xFF0C;&#x7136;&#x540E;&#x5C06;&#x5176;&#x8FD4;&#x56DE;&#xFF0C;&#x8BA9;&#x4E0B;&#x4E00;&#x6B21;&#x91C7;&#x6837;&#x6709;&#x673A;&#x4F1A;&#x4ECD;&#x7136;&#x80FD;&#x88AB;&#x91C7;&#x6837;&#x3002;&#x7136;&#x540E;&#x91CD;&#x590D; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>m</mi></mrow><annotation encoding="application/x-tex">m</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.43056em;"></span><span class="strut bottom" style="height:0.43056em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord mathit">m</span></span></span></span> &#x6B21;&#xFF0C;&#x5C31;&#x80FD;&#x5F97;&#x5230;&#x62E5;&#x6709; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>m</mi></mrow><annotation encoding="application/x-tex">m</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.43056em;"></span><span class="strut bottom" style="height:0.43056em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord mathit">m</span></span></span></span> &#x6761;&#x6570;&#x636E;&#x7684;&#x91C7;&#x6837;&#x96C6;&#xFF0C;&#x8BE5;&#x91C7;&#x6837;&#x96C6;&#x4F5C;&#x4E3A; <strong>Bagging</strong> &#x7684;&#x4F17;&#x591A;&#x5206;&#x7C7B;&#x5668;&#x4E2D;&#x7684;&#x4E00;&#x4E2A;&#x4F5C;&#x4E3A;&#x8BAD;&#x7EC3;&#x6570;&#x636E;&#x96C6;&#x3002;&#x5047;&#x8BBE;&#x6709; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>T</mi></mrow><annotation encoding="application/x-tex">T</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.68333em;"></span><span class="strut bottom" style="height:0.68333em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord mathit" style="margin-right:0.13889em;">T</span></span></span></span> &#x4E2A;&#x5206;&#x7C7B;&#x5668;&#xFF08;&#x968F;&#x4FBF;&#x4EC0;&#x4E48;&#x5206;&#x7C7B;&#x5668;&#xFF09;&#xFF0C;&#x90A3;&#x4E48;&#x5C31;&#x91CD;&#x590D; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>T</mi></mrow><annotation encoding="application/x-tex">T</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.68333em;"></span><span class="strut bottom" style="height:0.68333em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord mathit" style="margin-right:0.13889em;">T</span></span></span></span> &#x6B64;&#x968F;&#x673A;&#x6709;&#x653E;&#x56DE;&#x91C7;&#x6837;&#xFF0C;&#x6784;&#x5EFA;&#x51FA; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>T</mi></mrow><annotation encoding="application/x-tex">T</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.68333em;"></span><span class="strut bottom" style="height:0.68333em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord mathit" style="margin-right:0.13889em;">T</span></span></span></span> &#x4E2A;&#x91C7;&#x6837;&#x96C6;&#x5206;&#x522B;&#x4F5C;&#x4E3A; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>T</mi></mrow><annotation encoding="application/x-tex">T</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.68333em;"></span><span class="strut bottom" style="height:0.68333em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord mathit" style="margin-right:0.13889em;">T</span></span></span></span> &#x4E2A;&#x5206;&#x7C7B;&#x5668;&#x7684;&#x8BAD;&#x7EC3;&#x6570;&#x636E;&#x96C6;&#x3002;</p>
<p><strong>&#x5E76;&#x884C;&#xFF1A;</strong> &#x5047;&#x8BBE;&#x6709; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mn>1</mn><mn>0</mn></mrow><annotation encoding="application/x-tex">10</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.64444em;"></span><span class="strut bottom" style="height:0.64444em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord mathrm">1</span><span class="mord mathrm">0</span></span></span></span> &#x4E2A;&#x5206;&#x7C7B;&#x5668;&#xFF0C;&#x5728;<strong>Boosting</strong>&#x4E2D;&#xFF0C;<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mn>1</mn></mrow><annotation encoding="application/x-tex">1</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.64444em;"></span><span class="strut bottom" style="height:0.64444em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord mathrm">1</span></span></span></span> &#x53F7;&#x5206;&#x7C7B;&#x5668;&#x8BAD;&#x7EC3;&#x5B8C;&#x6210;&#x4E4B;&#x540E;&#x624D;&#x80FD;&#x5F00;&#x59CB;<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mn>2</mn></mrow><annotation encoding="application/x-tex">2</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.64444em;"></span><span class="strut bottom" style="height:0.64444em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord mathrm">2</span></span></span></span> &#x53F7;&#x5206;&#x7C7B;&#x5668;&#x7684;&#x8BAD;&#x7EC3;&#xFF0C;&#x800C;&#x5728;<strong>Bagging</strong>&#x4E2D;&#xFF0C;&#x5206;&#x7C7B;&#x5668;&#x53EF;&#x4EE5;&#x540C;&#x65F6;&#x8FDB;&#x884C;&#x8BAD;&#x7EC3;&#xFF0C;&#x5F53;&#x6240;&#x6709;&#x5206;&#x7C7B;&#x5668;&#x8BAD;&#x7EC3;&#x5B8C;&#x6210;&#x4E4B;&#x540E;&#xFF0C;&#x6574;&#x4E2A;<strong>Bagging</strong>&#x7684;&#x8BAD;&#x7EC3;&#x8FC7;&#x7A0B;&#x5C31;&#x7ED3;&#x675F;&#x4E86;&#x3002;</p>
<p><strong>Bagging</strong>&#x8BAD;&#x7EC3;&#x8FC7;&#x7A0B;&#x5982;&#x4E0B;&#x56FE;&#x6240;&#x793A;&#xFF1A;</p>
<p><img src="img/27.jpg" alt=""></p>
<h3 id="bagging&#x65B9;&#x6CD5;&#x5982;&#x4F55;&#x9884;&#x6D4B;">Bagging&#x65B9;&#x6CD5;&#x5982;&#x4F55;&#x9884;&#x6D4B;</h3>
<p><strong>Bagging</strong>&#x5728;&#x9884;&#x6D4B;&#x65F6;&#x975E;&#x5E38;&#x7B80;&#x5355;&#xFF0C;&#x5C31;&#x662F;<strong>&#x6295;&#x7968;</strong>&#xFF01;&#x6BD4;&#x5982;&#x73B0;&#x5728;&#x6709; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mn>5</mn></mrow><annotation encoding="application/x-tex">5</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.64444em;"></span><span class="strut bottom" style="height:0.64444em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord mathrm">5</span></span></span></span> &#x4E2A;&#x5206;&#x7C7B;&#x5668;&#xFF0C;&#x6709; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mn>3</mn></mrow><annotation encoding="application/x-tex">3</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.64444em;"></span><span class="strut bottom" style="height:0.64444em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord mathrm">3</span></span></span></span> &#x4E2A;&#x5206;&#x7C7B;&#x5668;&#x8BA4;&#x4E3A;&#x5F53;&#x524D;&#x6837;&#x672C;&#x5C5E;&#x4E8E; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>A</mi></mrow><annotation encoding="application/x-tex">A</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.68333em;"></span><span class="strut bottom" style="height:0.68333em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord mathit">A</span></span></span></span> &#x7C7B;&#xFF0C;<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mn>1</mn></mrow><annotation encoding="application/x-tex">1</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.64444em;"></span><span class="strut bottom" style="height:0.64444em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord mathrm">1</span></span></span></span> &#x4E2A;&#x5206;&#x7C7B;&#x5668;&#x8BA4;&#x4E3A;&#x5C5E;&#x4E8E; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>B</mi></mrow><annotation encoding="application/x-tex">B</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.68333em;"></span><span class="strut bottom" style="height:0.68333em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord mathit" style="margin-right:0.05017em;">B</span></span></span></span> &#x7C7B;&#xFF0C;<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mn>1</mn></mrow><annotation encoding="application/x-tex">1</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.64444em;"></span><span class="strut bottom" style="height:0.64444em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord mathrm">1</span></span></span></span> &#x4E2A;&#x5206;&#x7C7B;&#x5668;&#x8BA4;&#x4E3A;&#x5C5E;&#x4E8E; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>C</mi></mrow><annotation encoding="application/x-tex">C</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.68333em;"></span><span class="strut bottom" style="height:0.68333em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord mathit" style="margin-right:0.07153em;">C</span></span></span></span> &#x7C7B;&#xFF0C;&#x90A3;&#x4E48;<strong>Bagging</strong>&#x7684;&#x7ED3;&#x679C;&#x4F1A;&#x662F; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>A</mi></mrow><annotation encoding="application/x-tex">A</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.68333em;"></span><span class="strut bottom" style="height:0.68333em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord mathit">A</span></span></span></span> &#x7C7B;&#xFF08;&#x56E0;&#x4E3A; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>A</mi></mrow><annotation encoding="application/x-tex">A</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.68333em;"></span><span class="strut bottom" style="height:0.68333em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord mathit">A</span></span></span></span> &#x7C7B;&#x7684;&#x7968;&#x6570;&#x6700;&#x9AD8;&#xFF09;&#x3002;</p>
<p><strong>Bagging</strong>&#x9884;&#x6D4B;&#x8FC7;&#x7A0B;&#x5982;&#x4E0B;&#x56FE;&#x6240;&#x793A;:</p>
<p><img src="img/28.jpg" alt=""></p>
<h2 id="&#x968F;&#x673A;&#x68EE;&#x6797;">&#x968F;&#x673A;&#x68EE;&#x6797;</h2>
<p><strong>&#x968F;&#x673A;&#x68EE;&#x6797;</strong>&#x662F;<strong>Bagging</strong>&#x7684;&#x4E00;&#x79CD;&#x6269;&#x5C55;&#x53D8;&#x4F53;&#xFF0C;<strong>&#x968F;&#x673A;&#x68EE;&#x6797;</strong>&#x7684;&#x8BAD;&#x7EC3;&#x8FC7;&#x7A0B;&#x76F8;&#x5BF9;&#x4E0E;<strong>Bagging</strong>&#x7684;&#x8BAD;&#x7EC3;&#x8FC7;&#x7A0B;&#x7684;&#x6539;&#x53D8;&#x6709;&#xFF1A;</p>
<ul>
<li>&#x57FA;&#x5B66;&#x4E60;&#x5668;&#xFF1A;<strong>Bagging</strong>&#x7684;&#x57FA;&#x5B66;&#x4E60;&#x5668;&#x53EF;&#x4EE5;&#x662F;&#x4EFB;&#x610F;&#x5B66;&#x4E60;&#x5668;&#xFF0C;&#x800C;&#x968F;&#x673A;&#x68EE;&#x6797;&#x5219;&#x662F;&#x4EE5;&#x51B3;&#x7B56;&#x6811;&#x4F5C;&#x4E3A;&#x57FA;&#x5B66;&#x4E60;&#x5668;&#x3002;</li>
<li>&#x968F;&#x673A;&#x5C5E;&#x6027;&#x9009;&#x62E9;&#xFF1A;&#x5047;&#x8BBE;&#x539F;&#x59CB;&#x8BAD;&#x7EC3;&#x6570;&#x636E;&#x96C6;&#x6709; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mn>1</mn><mn>0</mn></mrow><annotation encoding="application/x-tex">10</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.64444em;"></span><span class="strut bottom" style="height:0.64444em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord mathrm">1</span><span class="mord mathrm">0</span></span></span></span> &#x4E2A;&#x7279;&#x5F81;&#xFF0C;&#x4ECE;&#x8FD9; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mn>1</mn><mn>0</mn></mrow><annotation encoding="application/x-tex">10</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.64444em;"></span><span class="strut bottom" style="height:0.64444em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord mathrm">1</span><span class="mord mathrm">0</span></span></span></span> &#x4E2A;&#x7279;&#x5F81;&#x4E2D;&#x968F;&#x673A;&#x9009;&#x53D6; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>k</mi></mrow><annotation encoding="application/x-tex">k</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.69444em;"></span><span class="strut bottom" style="height:0.69444em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord mathit" style="margin-right:0.03148em;">k</span></span></span></span> &#x4E2A;&#x7279;&#x5F81;&#x6784;&#x6210;&#x8BAD;&#x7EC3;&#x6570;&#x636E;&#x5B50;&#x96C6;&#xFF0C;&#x7136;&#x540E;&#x5C06;&#x8FD9;&#x4E2A;&#x5B50;&#x96C6;&#x4F5C;&#x4E3A;&#x8BAD;&#x7EC3;&#x96C6;&#x6254;&#x7ED9;&#x51B3;&#x7B56;&#x6811;&#x53BB;&#x8BAD;&#x7EC3;&#x3002;&#x5176;&#x4E2D; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>k</mi></mrow><annotation encoding="application/x-tex">k</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.69444em;"></span><span class="strut bottom" style="height:0.69444em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord mathit" style="margin-right:0.03148em;">k</span></span></span></span> &#x7684;&#x53D6;&#x503C;&#x4E00;&#x822C;&#x4E3A; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>l</mi><mi>o</mi><mi>g</mi><mn>2</mn></mrow><annotation encoding="application/x-tex">log2</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.69444em;"></span><span class="strut bottom" style="height:0.8888799999999999em;vertical-align:-0.19444em;"></span><span class="base textstyle uncramped"><span class="mord mathit" style="margin-right:0.01968em;">l</span><span class="mord mathit">o</span><span class="mord mathit" style="margin-right:0.03588em;">g</span><span class="mord mathrm">2</span></span></span></span> (&#x7279;&#x5F81;&#x6570;&#x91CF;)&#x3002;</li>
</ul>
<p>&#x8FD9;&#x6837;&#x7684;&#x6539;&#x52A8;&#x901A;&#x5E38;&#x4F1A;&#x4F7F;&#x5F97;&#x968F;&#x673A;&#x68EE;&#x6797;&#x5177;&#x6709;&#x66F4;&#x52A0;&#x5F3A;&#x7684;&#x6CDB;&#x5316;&#x6027;&#xFF0C;&#x56E0;&#x4E3A;&#x6BCF;&#x4E00;&#x68F5;&#x51B3;&#x7B56;&#x6811;&#x7684;&#x8BAD;&#x7EC3;&#x6570;&#x636E;&#x96C6;&#x662F;&#x968F;&#x673A;&#x7684;&#xFF0C;&#x800C;&#x4E14;&#x8BAD;&#x7EC3;&#x6570;&#x636E;&#x96C6;&#x4E2D;&#x7684;&#x7279;&#x5F81;&#x4E5F;&#x662F;&#x968F;&#x673A;&#x62BD;&#x53D6;&#x7684;&#x3002;&#x5982;&#x679C;&#x6BCF;&#x4E00;&#x68F5;&#x51B3;&#x7B56;&#x6811;&#x6A21;&#x578B;&#x7684;&#x5DEE;&#x5F02;&#x6BD4;&#x8F83;&#x5927;&#xFF0C;&#x90A3;&#x4E48;&#x5C31;&#x5F88;&#x5BB9;&#x6613;&#x80FD;&#x591F;&#x89E3;&#x51B3;&#x51B3;&#x7B56;&#x6811;&#x5BB9;&#x6613;&#x8FC7;&#x62DF;&#x5408;&#x7684;&#x95EE;&#x9898;&#x3002;</p>
</section>
</div>
<div class="search-results">
<div class="has-results">
<h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
<ul class="search-results-list"></ul>
</div>
<div class="no-results">
<h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
</div>
</div>
</div>
</div>
</div>
</div>
<a href="decision_tree.html" class="navigation navigation-prev " aria-label="Previous page: 最接近人类思维的算法-决策树">
<i class="fa fa-angle-left"></i>
</a>
<a href="kMeans.html" class="navigation navigation-next " aria-label="Next page: 物以类聚人以群分-kMeans">
<i class="fa fa-angle-right"></i>
</a>
</div>
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"群众的力量是伟大的-随机森林","level":"1.3.5","depth":2,"next":{"title":"物以类聚人以群分-kMeans","level":"1.3.6","depth":2,"path":"kMeans.md","ref":"kMeans.md","articles":[]},"previous":{"title":"最接近人类思维的算法-决策树","level":"1.3.4","depth":2,"path":"decision_tree.md","ref":"decision_tree.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["katex"],"pluginsConfig":{"katex":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"random_forest.md","mtime":"2019-07-04T06:50:16.353Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-07-06T07:31:21.537Z"},"basePath":".","book":{"language":""}});
});
</script>
</div>
<script src="gitbook/gitbook.js"></script>
<script src="gitbook/theme.js"></script>
<script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
<script src="gitbook/gitbook-plugin-search/search.js"></script>
<script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
<script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
<script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
<script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
</body>
</html>