started to add material on gradient boosting
This commit is contained in:
@@ -85,8 +85,7 @@ Automatically generated HTML file from DocOnce source
|
||||
('Final regressor code', 2, None, '___sec28'),
|
||||
('Pros and cons of trees, pros', 2, None, '___sec29'),
|
||||
('Disadvantages', 2, None, '___sec30'),
|
||||
('From a Single Tree to Many Trees, that is meet the Jungle of '
|
||||
'Methods',
|
||||
('From a Single Tree to Many Trees, Meet the Jungle of Methods',
|
||||
2,
|
||||
None,
|
||||
'___sec31'),
|
||||
@@ -101,8 +100,14 @@ Automatically generated HTML file from DocOnce source
|
||||
('Now Bagging', 2, None, '___sec37'),
|
||||
('Random forests', 2, None, '___sec38'),
|
||||
('Random Forest Algorithm', 2, None, '___sec39'),
|
||||
('A simple scikit-learn example', 2, None, '___sec40'),
|
||||
('Then random forests', 2, None, '___sec41'),
|
||||
('Random Forests Compared with other Methods on the Cancer Data',
|
||||
2,
|
||||
None,
|
||||
'___sec40'),
|
||||
('Compare Bagging on Trees with Random Forests',
|
||||
2,
|
||||
None,
|
||||
'___sec41'),
|
||||
('Feature Importance', 2, None, '___sec42'),
|
||||
("Boosting, a Bird'e Eye", 2, None, '___sec43'),
|
||||
('Adaptive boosting: AdaBoost, Basic Algorithm',
|
||||
@@ -187,7 +192,7 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs029.html#___sec28" style="font-size: 80%;">Final regressor code</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs030.html#___sec29" style="font-size: 80%;">Pros and cons of trees, pros</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs031.html#___sec30" style="font-size: 80%;">Disadvantages</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, that is meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, Meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs033.html#___sec32" style="font-size: 80%;">Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs034.html#___sec33" style="font-size: 80%;">More bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs035.html#___sec34" style="font-size: 80%;">Simple Voting Example, head or tail</a></li>
|
||||
@@ -196,8 +201,8 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs038.html#___sec37" style="font-size: 80%;">Now Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs039.html#___sec38" style="font-size: 80%;">Random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs040.html#___sec39" style="font-size: 80%;">Random Forest Algorithm</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">A simple scikit-learn example</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Then random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">Random Forests Compared with other Methods on the Cancer Data</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Compare Bagging on Trees with Random Forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs043.html#___sec42" style="font-size: 80%;">Feature Importance</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs044.html#___sec43" style="font-size: 80%;">Boosting, a Bird'e Eye</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs045.html#___sec44" style="font-size: 80%;">Adaptive boosting: AdaBoost, Basic Algorithm</a></li>
|
||||
@@ -242,7 +247,7 @@ MathJax.Hub.Config({
|
||||
<center>[2] <b>Department of Physics and Astronomy and National Superconducting Cyclotron Laboratory, Michigan State University</b></center>
|
||||
<br>
|
||||
<p>
|
||||
<center><h4>Nov 4, 2019</h4></center> <!-- date -->
|
||||
<center><h4>Nov 5, 2019</h4></center> <!-- date -->
|
||||
<br>
|
||||
<p>
|
||||
|
||||
|
||||
@@ -85,8 +85,7 @@ Automatically generated HTML file from DocOnce source
|
||||
('Final regressor code', 2, None, '___sec28'),
|
||||
('Pros and cons of trees, pros', 2, None, '___sec29'),
|
||||
('Disadvantages', 2, None, '___sec30'),
|
||||
('From a Single Tree to Many Trees, that is meet the Jungle of '
|
||||
'Methods',
|
||||
('From a Single Tree to Many Trees, Meet the Jungle of Methods',
|
||||
2,
|
||||
None,
|
||||
'___sec31'),
|
||||
@@ -101,8 +100,14 @@ Automatically generated HTML file from DocOnce source
|
||||
('Now Bagging', 2, None, '___sec37'),
|
||||
('Random forests', 2, None, '___sec38'),
|
||||
('Random Forest Algorithm', 2, None, '___sec39'),
|
||||
('A simple scikit-learn example', 2, None, '___sec40'),
|
||||
('Then random forests', 2, None, '___sec41'),
|
||||
('Random Forests Compared with other Methods on the Cancer Data',
|
||||
2,
|
||||
None,
|
||||
'___sec40'),
|
||||
('Compare Bagging on Trees with Random Forests',
|
||||
2,
|
||||
None,
|
||||
'___sec41'),
|
||||
('Feature Importance', 2, None, '___sec42'),
|
||||
("Boosting, a Bird'e Eye", 2, None, '___sec43'),
|
||||
('Adaptive boosting: AdaBoost, Basic Algorithm',
|
||||
@@ -187,7 +192,7 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs029.html#___sec28" style="font-size: 80%;">Final regressor code</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs030.html#___sec29" style="font-size: 80%;">Pros and cons of trees, pros</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs031.html#___sec30" style="font-size: 80%;">Disadvantages</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, that is meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, Meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs033.html#___sec32" style="font-size: 80%;">Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs034.html#___sec33" style="font-size: 80%;">More bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs035.html#___sec34" style="font-size: 80%;">Simple Voting Example, head or tail</a></li>
|
||||
@@ -196,8 +201,8 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs038.html#___sec37" style="font-size: 80%;">Now Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs039.html#___sec38" style="font-size: 80%;">Random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs040.html#___sec39" style="font-size: 80%;">Random Forest Algorithm</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">A simple scikit-learn example</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Then random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">Random Forests Compared with other Methods on the Cancer Data</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Compare Bagging on Trees with Random Forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs043.html#___sec42" style="font-size: 80%;">Feature Importance</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs044.html#___sec43" style="font-size: 80%;">Boosting, a Bird'e Eye</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs045.html#___sec44" style="font-size: 80%;">Adaptive boosting: AdaBoost, Basic Algorithm</a></li>
|
||||
|
||||
@@ -85,8 +85,7 @@ Automatically generated HTML file from DocOnce source
|
||||
('Final regressor code', 2, None, '___sec28'),
|
||||
('Pros and cons of trees, pros', 2, None, '___sec29'),
|
||||
('Disadvantages', 2, None, '___sec30'),
|
||||
('From a Single Tree to Many Trees, that is meet the Jungle of '
|
||||
'Methods',
|
||||
('From a Single Tree to Many Trees, Meet the Jungle of Methods',
|
||||
2,
|
||||
None,
|
||||
'___sec31'),
|
||||
@@ -101,8 +100,14 @@ Automatically generated HTML file from DocOnce source
|
||||
('Now Bagging', 2, None, '___sec37'),
|
||||
('Random forests', 2, None, '___sec38'),
|
||||
('Random Forest Algorithm', 2, None, '___sec39'),
|
||||
('A simple scikit-learn example', 2, None, '___sec40'),
|
||||
('Then random forests', 2, None, '___sec41'),
|
||||
('Random Forests Compared with other Methods on the Cancer Data',
|
||||
2,
|
||||
None,
|
||||
'___sec40'),
|
||||
('Compare Bagging on Trees with Random Forests',
|
||||
2,
|
||||
None,
|
||||
'___sec41'),
|
||||
('Feature Importance', 2, None, '___sec42'),
|
||||
("Boosting, a Bird'e Eye", 2, None, '___sec43'),
|
||||
('Adaptive boosting: AdaBoost, Basic Algorithm',
|
||||
@@ -187,7 +192,7 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs029.html#___sec28" style="font-size: 80%;">Final regressor code</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs030.html#___sec29" style="font-size: 80%;">Pros and cons of trees, pros</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs031.html#___sec30" style="font-size: 80%;">Disadvantages</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, that is meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, Meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs033.html#___sec32" style="font-size: 80%;">Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs034.html#___sec33" style="font-size: 80%;">More bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs035.html#___sec34" style="font-size: 80%;">Simple Voting Example, head or tail</a></li>
|
||||
@@ -196,8 +201,8 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs038.html#___sec37" style="font-size: 80%;">Now Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs039.html#___sec38" style="font-size: 80%;">Random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs040.html#___sec39" style="font-size: 80%;">Random Forest Algorithm</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">A simple scikit-learn example</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Then random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">Random Forests Compared with other Methods on the Cancer Data</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Compare Bagging on Trees with Random Forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs043.html#___sec42" style="font-size: 80%;">Feature Importance</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs044.html#___sec43" style="font-size: 80%;">Boosting, a Bird'e Eye</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs045.html#___sec44" style="font-size: 80%;">Adaptive boosting: AdaBoost, Basic Algorithm</a></li>
|
||||
|
||||
@@ -85,8 +85,7 @@ Automatically generated HTML file from DocOnce source
|
||||
('Final regressor code', 2, None, '___sec28'),
|
||||
('Pros and cons of trees, pros', 2, None, '___sec29'),
|
||||
('Disadvantages', 2, None, '___sec30'),
|
||||
('From a Single Tree to Many Trees, that is meet the Jungle of '
|
||||
'Methods',
|
||||
('From a Single Tree to Many Trees, Meet the Jungle of Methods',
|
||||
2,
|
||||
None,
|
||||
'___sec31'),
|
||||
@@ -101,8 +100,14 @@ Automatically generated HTML file from DocOnce source
|
||||
('Now Bagging', 2, None, '___sec37'),
|
||||
('Random forests', 2, None, '___sec38'),
|
||||
('Random Forest Algorithm', 2, None, '___sec39'),
|
||||
('A simple scikit-learn example', 2, None, '___sec40'),
|
||||
('Then random forests', 2, None, '___sec41'),
|
||||
('Random Forests Compared with other Methods on the Cancer Data',
|
||||
2,
|
||||
None,
|
||||
'___sec40'),
|
||||
('Compare Bagging on Trees with Random Forests',
|
||||
2,
|
||||
None,
|
||||
'___sec41'),
|
||||
('Feature Importance', 2, None, '___sec42'),
|
||||
("Boosting, a Bird'e Eye", 2, None, '___sec43'),
|
||||
('Adaptive boosting: AdaBoost, Basic Algorithm',
|
||||
@@ -187,7 +192,7 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs029.html#___sec28" style="font-size: 80%;">Final regressor code</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs030.html#___sec29" style="font-size: 80%;">Pros and cons of trees, pros</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs031.html#___sec30" style="font-size: 80%;">Disadvantages</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, that is meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, Meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs033.html#___sec32" style="font-size: 80%;">Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs034.html#___sec33" style="font-size: 80%;">More bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs035.html#___sec34" style="font-size: 80%;">Simple Voting Example, head or tail</a></li>
|
||||
@@ -196,8 +201,8 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs038.html#___sec37" style="font-size: 80%;">Now Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs039.html#___sec38" style="font-size: 80%;">Random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs040.html#___sec39" style="font-size: 80%;">Random Forest Algorithm</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">A simple scikit-learn example</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Then random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">Random Forests Compared with other Methods on the Cancer Data</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Compare Bagging on Trees with Random Forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs043.html#___sec42" style="font-size: 80%;">Feature Importance</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs044.html#___sec43" style="font-size: 80%;">Boosting, a Bird'e Eye</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs045.html#___sec44" style="font-size: 80%;">Adaptive boosting: AdaBoost, Basic Algorithm</a></li>
|
||||
|
||||
@@ -85,8 +85,7 @@ Automatically generated HTML file from DocOnce source
|
||||
('Final regressor code', 2, None, '___sec28'),
|
||||
('Pros and cons of trees, pros', 2, None, '___sec29'),
|
||||
('Disadvantages', 2, None, '___sec30'),
|
||||
('From a Single Tree to Many Trees, that is meet the Jungle of '
|
||||
'Methods',
|
||||
('From a Single Tree to Many Trees, Meet the Jungle of Methods',
|
||||
2,
|
||||
None,
|
||||
'___sec31'),
|
||||
@@ -101,8 +100,14 @@ Automatically generated HTML file from DocOnce source
|
||||
('Now Bagging', 2, None, '___sec37'),
|
||||
('Random forests', 2, None, '___sec38'),
|
||||
('Random Forest Algorithm', 2, None, '___sec39'),
|
||||
('A simple scikit-learn example', 2, None, '___sec40'),
|
||||
('Then random forests', 2, None, '___sec41'),
|
||||
('Random Forests Compared with other Methods on the Cancer Data',
|
||||
2,
|
||||
None,
|
||||
'___sec40'),
|
||||
('Compare Bagging on Trees with Random Forests',
|
||||
2,
|
||||
None,
|
||||
'___sec41'),
|
||||
('Feature Importance', 2, None, '___sec42'),
|
||||
("Boosting, a Bird'e Eye", 2, None, '___sec43'),
|
||||
('Adaptive boosting: AdaBoost, Basic Algorithm',
|
||||
@@ -187,7 +192,7 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs029.html#___sec28" style="font-size: 80%;">Final regressor code</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs030.html#___sec29" style="font-size: 80%;">Pros and cons of trees, pros</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs031.html#___sec30" style="font-size: 80%;">Disadvantages</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, that is meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, Meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs033.html#___sec32" style="font-size: 80%;">Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs034.html#___sec33" style="font-size: 80%;">More bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs035.html#___sec34" style="font-size: 80%;">Simple Voting Example, head or tail</a></li>
|
||||
@@ -196,8 +201,8 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs038.html#___sec37" style="font-size: 80%;">Now Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs039.html#___sec38" style="font-size: 80%;">Random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs040.html#___sec39" style="font-size: 80%;">Random Forest Algorithm</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">A simple scikit-learn example</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Then random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">Random Forests Compared with other Methods on the Cancer Data</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Compare Bagging on Trees with Random Forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs043.html#___sec42" style="font-size: 80%;">Feature Importance</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs044.html#___sec43" style="font-size: 80%;">Boosting, a Bird'e Eye</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs045.html#___sec44" style="font-size: 80%;">Adaptive boosting: AdaBoost, Basic Algorithm</a></li>
|
||||
|
||||
@@ -85,8 +85,7 @@ Automatically generated HTML file from DocOnce source
|
||||
('Final regressor code', 2, None, '___sec28'),
|
||||
('Pros and cons of trees, pros', 2, None, '___sec29'),
|
||||
('Disadvantages', 2, None, '___sec30'),
|
||||
('From a Single Tree to Many Trees, that is meet the Jungle of '
|
||||
'Methods',
|
||||
('From a Single Tree to Many Trees, Meet the Jungle of Methods',
|
||||
2,
|
||||
None,
|
||||
'___sec31'),
|
||||
@@ -101,8 +100,14 @@ Automatically generated HTML file from DocOnce source
|
||||
('Now Bagging', 2, None, '___sec37'),
|
||||
('Random forests', 2, None, '___sec38'),
|
||||
('Random Forest Algorithm', 2, None, '___sec39'),
|
||||
('A simple scikit-learn example', 2, None, '___sec40'),
|
||||
('Then random forests', 2, None, '___sec41'),
|
||||
('Random Forests Compared with other Methods on the Cancer Data',
|
||||
2,
|
||||
None,
|
||||
'___sec40'),
|
||||
('Compare Bagging on Trees with Random Forests',
|
||||
2,
|
||||
None,
|
||||
'___sec41'),
|
||||
('Feature Importance', 2, None, '___sec42'),
|
||||
("Boosting, a Bird'e Eye", 2, None, '___sec43'),
|
||||
('Adaptive boosting: AdaBoost, Basic Algorithm',
|
||||
@@ -187,7 +192,7 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs029.html#___sec28" style="font-size: 80%;">Final regressor code</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs030.html#___sec29" style="font-size: 80%;">Pros and cons of trees, pros</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs031.html#___sec30" style="font-size: 80%;">Disadvantages</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, that is meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, Meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs033.html#___sec32" style="font-size: 80%;">Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs034.html#___sec33" style="font-size: 80%;">More bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs035.html#___sec34" style="font-size: 80%;">Simple Voting Example, head or tail</a></li>
|
||||
@@ -196,8 +201,8 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs038.html#___sec37" style="font-size: 80%;">Now Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs039.html#___sec38" style="font-size: 80%;">Random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs040.html#___sec39" style="font-size: 80%;">Random Forest Algorithm</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">A simple scikit-learn example</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Then random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">Random Forests Compared with other Methods on the Cancer Data</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Compare Bagging on Trees with Random Forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs043.html#___sec42" style="font-size: 80%;">Feature Importance</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs044.html#___sec43" style="font-size: 80%;">Boosting, a Bird'e Eye</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs045.html#___sec44" style="font-size: 80%;">Adaptive boosting: AdaBoost, Basic Algorithm</a></li>
|
||||
|
||||
@@ -85,8 +85,7 @@ Automatically generated HTML file from DocOnce source
|
||||
('Final regressor code', 2, None, '___sec28'),
|
||||
('Pros and cons of trees, pros', 2, None, '___sec29'),
|
||||
('Disadvantages', 2, None, '___sec30'),
|
||||
('From a Single Tree to Many Trees, that is meet the Jungle of '
|
||||
'Methods',
|
||||
('From a Single Tree to Many Trees, Meet the Jungle of Methods',
|
||||
2,
|
||||
None,
|
||||
'___sec31'),
|
||||
@@ -101,8 +100,14 @@ Automatically generated HTML file from DocOnce source
|
||||
('Now Bagging', 2, None, '___sec37'),
|
||||
('Random forests', 2, None, '___sec38'),
|
||||
('Random Forest Algorithm', 2, None, '___sec39'),
|
||||
('A simple scikit-learn example', 2, None, '___sec40'),
|
||||
('Then random forests', 2, None, '___sec41'),
|
||||
('Random Forests Compared with other Methods on the Cancer Data',
|
||||
2,
|
||||
None,
|
||||
'___sec40'),
|
||||
('Compare Bagging on Trees with Random Forests',
|
||||
2,
|
||||
None,
|
||||
'___sec41'),
|
||||
('Feature Importance', 2, None, '___sec42'),
|
||||
("Boosting, a Bird'e Eye", 2, None, '___sec43'),
|
||||
('Adaptive boosting: AdaBoost, Basic Algorithm',
|
||||
@@ -187,7 +192,7 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs029.html#___sec28" style="font-size: 80%;">Final regressor code</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs030.html#___sec29" style="font-size: 80%;">Pros and cons of trees, pros</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs031.html#___sec30" style="font-size: 80%;">Disadvantages</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, that is meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, Meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs033.html#___sec32" style="font-size: 80%;">Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs034.html#___sec33" style="font-size: 80%;">More bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs035.html#___sec34" style="font-size: 80%;">Simple Voting Example, head or tail</a></li>
|
||||
@@ -196,8 +201,8 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs038.html#___sec37" style="font-size: 80%;">Now Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs039.html#___sec38" style="font-size: 80%;">Random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs040.html#___sec39" style="font-size: 80%;">Random Forest Algorithm</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">A simple scikit-learn example</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Then random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">Random Forests Compared with other Methods on the Cancer Data</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Compare Bagging on Trees with Random Forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs043.html#___sec42" style="font-size: 80%;">Feature Importance</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs044.html#___sec43" style="font-size: 80%;">Boosting, a Bird'e Eye</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs045.html#___sec44" style="font-size: 80%;">Adaptive boosting: AdaBoost, Basic Algorithm</a></li>
|
||||
|
||||
@@ -85,8 +85,7 @@ Automatically generated HTML file from DocOnce source
|
||||
('Final regressor code', 2, None, '___sec28'),
|
||||
('Pros and cons of trees, pros', 2, None, '___sec29'),
|
||||
('Disadvantages', 2, None, '___sec30'),
|
||||
('From a Single Tree to Many Trees, that is meet the Jungle of '
|
||||
'Methods',
|
||||
('From a Single Tree to Many Trees, Meet the Jungle of Methods',
|
||||
2,
|
||||
None,
|
||||
'___sec31'),
|
||||
@@ -101,8 +100,14 @@ Automatically generated HTML file from DocOnce source
|
||||
('Now Bagging', 2, None, '___sec37'),
|
||||
('Random forests', 2, None, '___sec38'),
|
||||
('Random Forest Algorithm', 2, None, '___sec39'),
|
||||
('A simple scikit-learn example', 2, None, '___sec40'),
|
||||
('Then random forests', 2, None, '___sec41'),
|
||||
('Random Forests Compared with other Methods on the Cancer Data',
|
||||
2,
|
||||
None,
|
||||
'___sec40'),
|
||||
('Compare Bagging on Trees with Random Forests',
|
||||
2,
|
||||
None,
|
||||
'___sec41'),
|
||||
('Feature Importance', 2, None, '___sec42'),
|
||||
("Boosting, a Bird'e Eye", 2, None, '___sec43'),
|
||||
('Adaptive boosting: AdaBoost, Basic Algorithm',
|
||||
@@ -187,7 +192,7 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs029.html#___sec28" style="font-size: 80%;">Final regressor code</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs030.html#___sec29" style="font-size: 80%;">Pros and cons of trees, pros</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs031.html#___sec30" style="font-size: 80%;">Disadvantages</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, that is meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, Meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs033.html#___sec32" style="font-size: 80%;">Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs034.html#___sec33" style="font-size: 80%;">More bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs035.html#___sec34" style="font-size: 80%;">Simple Voting Example, head or tail</a></li>
|
||||
@@ -196,8 +201,8 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs038.html#___sec37" style="font-size: 80%;">Now Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs039.html#___sec38" style="font-size: 80%;">Random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs040.html#___sec39" style="font-size: 80%;">Random Forest Algorithm</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">A simple scikit-learn example</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Then random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">Random Forests Compared with other Methods on the Cancer Data</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Compare Bagging on Trees with Random Forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs043.html#___sec42" style="font-size: 80%;">Feature Importance</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs044.html#___sec43" style="font-size: 80%;">Boosting, a Bird'e Eye</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs045.html#___sec44" style="font-size: 80%;">Adaptive boosting: AdaBoost, Basic Algorithm</a></li>
|
||||
|
||||
@@ -85,8 +85,7 @@ Automatically generated HTML file from DocOnce source
|
||||
('Final regressor code', 2, None, '___sec28'),
|
||||
('Pros and cons of trees, pros', 2, None, '___sec29'),
|
||||
('Disadvantages', 2, None, '___sec30'),
|
||||
('From a Single Tree to Many Trees, that is meet the Jungle of '
|
||||
'Methods',
|
||||
('From a Single Tree to Many Trees, Meet the Jungle of Methods',
|
||||
2,
|
||||
None,
|
||||
'___sec31'),
|
||||
@@ -101,8 +100,14 @@ Automatically generated HTML file from DocOnce source
|
||||
('Now Bagging', 2, None, '___sec37'),
|
||||
('Random forests', 2, None, '___sec38'),
|
||||
('Random Forest Algorithm', 2, None, '___sec39'),
|
||||
('A simple scikit-learn example', 2, None, '___sec40'),
|
||||
('Then random forests', 2, None, '___sec41'),
|
||||
('Random Forests Compared with other Methods on the Cancer Data',
|
||||
2,
|
||||
None,
|
||||
'___sec40'),
|
||||
('Compare Bagging on Trees with Random Forests',
|
||||
2,
|
||||
None,
|
||||
'___sec41'),
|
||||
('Feature Importance', 2, None, '___sec42'),
|
||||
("Boosting, a Bird'e Eye", 2, None, '___sec43'),
|
||||
('Adaptive boosting: AdaBoost, Basic Algorithm',
|
||||
@@ -187,7 +192,7 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs029.html#___sec28" style="font-size: 80%;">Final regressor code</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs030.html#___sec29" style="font-size: 80%;">Pros and cons of trees, pros</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs031.html#___sec30" style="font-size: 80%;">Disadvantages</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, that is meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, Meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs033.html#___sec32" style="font-size: 80%;">Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs034.html#___sec33" style="font-size: 80%;">More bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs035.html#___sec34" style="font-size: 80%;">Simple Voting Example, head or tail</a></li>
|
||||
@@ -196,8 +201,8 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs038.html#___sec37" style="font-size: 80%;">Now Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs039.html#___sec38" style="font-size: 80%;">Random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs040.html#___sec39" style="font-size: 80%;">Random Forest Algorithm</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">A simple scikit-learn example</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Then random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">Random Forests Compared with other Methods on the Cancer Data</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Compare Bagging on Trees with Random Forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs043.html#___sec42" style="font-size: 80%;">Feature Importance</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs044.html#___sec43" style="font-size: 80%;">Boosting, a Bird'e Eye</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs045.html#___sec44" style="font-size: 80%;">Adaptive boosting: AdaBoost, Basic Algorithm</a></li>
|
||||
|
||||
@@ -85,8 +85,7 @@ Automatically generated HTML file from DocOnce source
|
||||
('Final regressor code', 2, None, '___sec28'),
|
||||
('Pros and cons of trees, pros', 2, None, '___sec29'),
|
||||
('Disadvantages', 2, None, '___sec30'),
|
||||
('From a Single Tree to Many Trees, that is meet the Jungle of '
|
||||
'Methods',
|
||||
('From a Single Tree to Many Trees, Meet the Jungle of Methods',
|
||||
2,
|
||||
None,
|
||||
'___sec31'),
|
||||
@@ -101,8 +100,14 @@ Automatically generated HTML file from DocOnce source
|
||||
('Now Bagging', 2, None, '___sec37'),
|
||||
('Random forests', 2, None, '___sec38'),
|
||||
('Random Forest Algorithm', 2, None, '___sec39'),
|
||||
('A simple scikit-learn example', 2, None, '___sec40'),
|
||||
('Then random forests', 2, None, '___sec41'),
|
||||
('Random Forests Compared with other Methods on the Cancer Data',
|
||||
2,
|
||||
None,
|
||||
'___sec40'),
|
||||
('Compare Bagging on Trees with Random Forests',
|
||||
2,
|
||||
None,
|
||||
'___sec41'),
|
||||
('Feature Importance', 2, None, '___sec42'),
|
||||
("Boosting, a Bird'e Eye", 2, None, '___sec43'),
|
||||
('Adaptive boosting: AdaBoost, Basic Algorithm',
|
||||
@@ -187,7 +192,7 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs029.html#___sec28" style="font-size: 80%;">Final regressor code</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs030.html#___sec29" style="font-size: 80%;">Pros and cons of trees, pros</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs031.html#___sec30" style="font-size: 80%;">Disadvantages</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, that is meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, Meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs033.html#___sec32" style="font-size: 80%;">Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs034.html#___sec33" style="font-size: 80%;">More bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs035.html#___sec34" style="font-size: 80%;">Simple Voting Example, head or tail</a></li>
|
||||
@@ -196,8 +201,8 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs038.html#___sec37" style="font-size: 80%;">Now Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs039.html#___sec38" style="font-size: 80%;">Random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs040.html#___sec39" style="font-size: 80%;">Random Forest Algorithm</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">A simple scikit-learn example</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Then random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">Random Forests Compared with other Methods on the Cancer Data</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Compare Bagging on Trees with Random Forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs043.html#___sec42" style="font-size: 80%;">Feature Importance</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs044.html#___sec43" style="font-size: 80%;">Boosting, a Bird'e Eye</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs045.html#___sec44" style="font-size: 80%;">Adaptive boosting: AdaBoost, Basic Algorithm</a></li>
|
||||
|
||||
@@ -85,8 +85,7 @@ Automatically generated HTML file from DocOnce source
|
||||
('Final regressor code', 2, None, '___sec28'),
|
||||
('Pros and cons of trees, pros', 2, None, '___sec29'),
|
||||
('Disadvantages', 2, None, '___sec30'),
|
||||
('From a Single Tree to Many Trees, that is meet the Jungle of '
|
||||
'Methods',
|
||||
('From a Single Tree to Many Trees, Meet the Jungle of Methods',
|
||||
2,
|
||||
None,
|
||||
'___sec31'),
|
||||
@@ -101,8 +100,14 @@ Automatically generated HTML file from DocOnce source
|
||||
('Now Bagging', 2, None, '___sec37'),
|
||||
('Random forests', 2, None, '___sec38'),
|
||||
('Random Forest Algorithm', 2, None, '___sec39'),
|
||||
('A simple scikit-learn example', 2, None, '___sec40'),
|
||||
('Then random forests', 2, None, '___sec41'),
|
||||
('Random Forests Compared with other Methods on the Cancer Data',
|
||||
2,
|
||||
None,
|
||||
'___sec40'),
|
||||
('Compare Bagging on Trees with Random Forests',
|
||||
2,
|
||||
None,
|
||||
'___sec41'),
|
||||
('Feature Importance', 2, None, '___sec42'),
|
||||
("Boosting, a Bird'e Eye", 2, None, '___sec43'),
|
||||
('Adaptive boosting: AdaBoost, Basic Algorithm',
|
||||
@@ -187,7 +192,7 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs029.html#___sec28" style="font-size: 80%;">Final regressor code</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs030.html#___sec29" style="font-size: 80%;">Pros and cons of trees, pros</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs031.html#___sec30" style="font-size: 80%;">Disadvantages</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, that is meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, Meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs033.html#___sec32" style="font-size: 80%;">Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs034.html#___sec33" style="font-size: 80%;">More bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs035.html#___sec34" style="font-size: 80%;">Simple Voting Example, head or tail</a></li>
|
||||
@@ -196,8 +201,8 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs038.html#___sec37" style="font-size: 80%;">Now Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs039.html#___sec38" style="font-size: 80%;">Random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs040.html#___sec39" style="font-size: 80%;">Random Forest Algorithm</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">A simple scikit-learn example</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Then random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">Random Forests Compared with other Methods on the Cancer Data</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Compare Bagging on Trees with Random Forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs043.html#___sec42" style="font-size: 80%;">Feature Importance</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs044.html#___sec43" style="font-size: 80%;">Boosting, a Bird'e Eye</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs045.html#___sec44" style="font-size: 80%;">Adaptive boosting: AdaBoost, Basic Algorithm</a></li>
|
||||
|
||||
@@ -85,8 +85,7 @@ Automatically generated HTML file from DocOnce source
|
||||
('Final regressor code', 2, None, '___sec28'),
|
||||
('Pros and cons of trees, pros', 2, None, '___sec29'),
|
||||
('Disadvantages', 2, None, '___sec30'),
|
||||
('From a Single Tree to Many Trees, that is meet the Jungle of '
|
||||
'Methods',
|
||||
('From a Single Tree to Many Trees, Meet the Jungle of Methods',
|
||||
2,
|
||||
None,
|
||||
'___sec31'),
|
||||
@@ -101,8 +100,14 @@ Automatically generated HTML file from DocOnce source
|
||||
('Now Bagging', 2, None, '___sec37'),
|
||||
('Random forests', 2, None, '___sec38'),
|
||||
('Random Forest Algorithm', 2, None, '___sec39'),
|
||||
('A simple scikit-learn example', 2, None, '___sec40'),
|
||||
('Then random forests', 2, None, '___sec41'),
|
||||
('Random Forests Compared with other Methods on the Cancer Data',
|
||||
2,
|
||||
None,
|
||||
'___sec40'),
|
||||
('Compare Bagging on Trees with Random Forests',
|
||||
2,
|
||||
None,
|
||||
'___sec41'),
|
||||
('Feature Importance', 2, None, '___sec42'),
|
||||
("Boosting, a Bird'e Eye", 2, None, '___sec43'),
|
||||
('Adaptive boosting: AdaBoost, Basic Algorithm',
|
||||
@@ -187,7 +192,7 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs029.html#___sec28" style="font-size: 80%;">Final regressor code</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs030.html#___sec29" style="font-size: 80%;">Pros and cons of trees, pros</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs031.html#___sec30" style="font-size: 80%;">Disadvantages</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, that is meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, Meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs033.html#___sec32" style="font-size: 80%;">Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs034.html#___sec33" style="font-size: 80%;">More bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs035.html#___sec34" style="font-size: 80%;">Simple Voting Example, head or tail</a></li>
|
||||
@@ -196,8 +201,8 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs038.html#___sec37" style="font-size: 80%;">Now Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs039.html#___sec38" style="font-size: 80%;">Random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs040.html#___sec39" style="font-size: 80%;">Random Forest Algorithm</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">A simple scikit-learn example</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Then random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">Random Forests Compared with other Methods on the Cancer Data</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Compare Bagging on Trees with Random Forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs043.html#___sec42" style="font-size: 80%;">Feature Importance</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs044.html#___sec43" style="font-size: 80%;">Boosting, a Bird'e Eye</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs045.html#___sec44" style="font-size: 80%;">Adaptive boosting: AdaBoost, Basic Algorithm</a></li>
|
||||
|
||||
@@ -85,8 +85,7 @@ Automatically generated HTML file from DocOnce source
|
||||
('Final regressor code', 2, None, '___sec28'),
|
||||
('Pros and cons of trees, pros', 2, None, '___sec29'),
|
||||
('Disadvantages', 2, None, '___sec30'),
|
||||
('From a Single Tree to Many Trees, that is meet the Jungle of '
|
||||
'Methods',
|
||||
('From a Single Tree to Many Trees, Meet the Jungle of Methods',
|
||||
2,
|
||||
None,
|
||||
'___sec31'),
|
||||
@@ -101,8 +100,14 @@ Automatically generated HTML file from DocOnce source
|
||||
('Now Bagging', 2, None, '___sec37'),
|
||||
('Random forests', 2, None, '___sec38'),
|
||||
('Random Forest Algorithm', 2, None, '___sec39'),
|
||||
('A simple scikit-learn example', 2, None, '___sec40'),
|
||||
('Then random forests', 2, None, '___sec41'),
|
||||
('Random Forests Compared with other Methods on the Cancer Data',
|
||||
2,
|
||||
None,
|
||||
'___sec40'),
|
||||
('Compare Bagging on Trees with Random Forests',
|
||||
2,
|
||||
None,
|
||||
'___sec41'),
|
||||
('Feature Importance', 2, None, '___sec42'),
|
||||
("Boosting, a Bird'e Eye", 2, None, '___sec43'),
|
||||
('Adaptive boosting: AdaBoost, Basic Algorithm',
|
||||
@@ -187,7 +192,7 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs029.html#___sec28" style="font-size: 80%;">Final regressor code</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs030.html#___sec29" style="font-size: 80%;">Pros and cons of trees, pros</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs031.html#___sec30" style="font-size: 80%;">Disadvantages</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, that is meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, Meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs033.html#___sec32" style="font-size: 80%;">Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs034.html#___sec33" style="font-size: 80%;">More bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs035.html#___sec34" style="font-size: 80%;">Simple Voting Example, head or tail</a></li>
|
||||
@@ -196,8 +201,8 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs038.html#___sec37" style="font-size: 80%;">Now Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs039.html#___sec38" style="font-size: 80%;">Random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs040.html#___sec39" style="font-size: 80%;">Random Forest Algorithm</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">A simple scikit-learn example</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Then random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">Random Forests Compared with other Methods on the Cancer Data</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Compare Bagging on Trees with Random Forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs043.html#___sec42" style="font-size: 80%;">Feature Importance</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs044.html#___sec43" style="font-size: 80%;">Boosting, a Bird'e Eye</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs045.html#___sec44" style="font-size: 80%;">Adaptive boosting: AdaBoost, Basic Algorithm</a></li>
|
||||
|
||||
@@ -85,8 +85,7 @@ Automatically generated HTML file from DocOnce source
|
||||
('Final regressor code', 2, None, '___sec28'),
|
||||
('Pros and cons of trees, pros', 2, None, '___sec29'),
|
||||
('Disadvantages', 2, None, '___sec30'),
|
||||
('From a Single Tree to Many Trees, that is meet the Jungle of '
|
||||
'Methods',
|
||||
('From a Single Tree to Many Trees, Meet the Jungle of Methods',
|
||||
2,
|
||||
None,
|
||||
'___sec31'),
|
||||
@@ -101,8 +100,14 @@ Automatically generated HTML file from DocOnce source
|
||||
('Now Bagging', 2, None, '___sec37'),
|
||||
('Random forests', 2, None, '___sec38'),
|
||||
('Random Forest Algorithm', 2, None, '___sec39'),
|
||||
('A simple scikit-learn example', 2, None, '___sec40'),
|
||||
('Then random forests', 2, None, '___sec41'),
|
||||
('Random Forests Compared with other Methods on the Cancer Data',
|
||||
2,
|
||||
None,
|
||||
'___sec40'),
|
||||
('Compare Bagging on Trees with Random Forests',
|
||||
2,
|
||||
None,
|
||||
'___sec41'),
|
||||
('Feature Importance', 2, None, '___sec42'),
|
||||
("Boosting, a Bird'e Eye", 2, None, '___sec43'),
|
||||
('Adaptive boosting: AdaBoost, Basic Algorithm',
|
||||
@@ -187,7 +192,7 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs029.html#___sec28" style="font-size: 80%;">Final regressor code</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs030.html#___sec29" style="font-size: 80%;">Pros and cons of trees, pros</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs031.html#___sec30" style="font-size: 80%;">Disadvantages</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, that is meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, Meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs033.html#___sec32" style="font-size: 80%;">Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs034.html#___sec33" style="font-size: 80%;">More bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs035.html#___sec34" style="font-size: 80%;">Simple Voting Example, head or tail</a></li>
|
||||
@@ -196,8 +201,8 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs038.html#___sec37" style="font-size: 80%;">Now Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs039.html#___sec38" style="font-size: 80%;">Random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs040.html#___sec39" style="font-size: 80%;">Random Forest Algorithm</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">A simple scikit-learn example</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Then random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">Random Forests Compared with other Methods on the Cancer Data</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Compare Bagging on Trees with Random Forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs043.html#___sec42" style="font-size: 80%;">Feature Importance</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs044.html#___sec43" style="font-size: 80%;">Boosting, a Bird'e Eye</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs045.html#___sec44" style="font-size: 80%;">Adaptive boosting: AdaBoost, Basic Algorithm</a></li>
|
||||
|
||||
@@ -85,8 +85,7 @@ Automatically generated HTML file from DocOnce source
|
||||
('Final regressor code', 2, None, '___sec28'),
|
||||
('Pros and cons of trees, pros', 2, None, '___sec29'),
|
||||
('Disadvantages', 2, None, '___sec30'),
|
||||
('From a Single Tree to Many Trees, that is meet the Jungle of '
|
||||
'Methods',
|
||||
('From a Single Tree to Many Trees, Meet the Jungle of Methods',
|
||||
2,
|
||||
None,
|
||||
'___sec31'),
|
||||
@@ -101,8 +100,14 @@ Automatically generated HTML file from DocOnce source
|
||||
('Now Bagging', 2, None, '___sec37'),
|
||||
('Random forests', 2, None, '___sec38'),
|
||||
('Random Forest Algorithm', 2, None, '___sec39'),
|
||||
('A simple scikit-learn example', 2, None, '___sec40'),
|
||||
('Then random forests', 2, None, '___sec41'),
|
||||
('Random Forests Compared with other Methods on the Cancer Data',
|
||||
2,
|
||||
None,
|
||||
'___sec40'),
|
||||
('Compare Bagging on Trees with Random Forests',
|
||||
2,
|
||||
None,
|
||||
'___sec41'),
|
||||
('Feature Importance', 2, None, '___sec42'),
|
||||
("Boosting, a Bird'e Eye", 2, None, '___sec43'),
|
||||
('Adaptive boosting: AdaBoost, Basic Algorithm',
|
||||
@@ -187,7 +192,7 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs029.html#___sec28" style="font-size: 80%;">Final regressor code</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs030.html#___sec29" style="font-size: 80%;">Pros and cons of trees, pros</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs031.html#___sec30" style="font-size: 80%;">Disadvantages</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, that is meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, Meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs033.html#___sec32" style="font-size: 80%;">Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs034.html#___sec33" style="font-size: 80%;">More bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs035.html#___sec34" style="font-size: 80%;">Simple Voting Example, head or tail</a></li>
|
||||
@@ -196,8 +201,8 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs038.html#___sec37" style="font-size: 80%;">Now Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs039.html#___sec38" style="font-size: 80%;">Random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs040.html#___sec39" style="font-size: 80%;">Random Forest Algorithm</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">A simple scikit-learn example</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Then random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">Random Forests Compared with other Methods on the Cancer Data</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Compare Bagging on Trees with Random Forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs043.html#___sec42" style="font-size: 80%;">Feature Importance</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs044.html#___sec43" style="font-size: 80%;">Boosting, a Bird'e Eye</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs045.html#___sec44" style="font-size: 80%;">Adaptive boosting: AdaBoost, Basic Algorithm</a></li>
|
||||
|
||||
@@ -85,8 +85,7 @@ Automatically generated HTML file from DocOnce source
|
||||
('Final regressor code', 2, None, '___sec28'),
|
||||
('Pros and cons of trees, pros', 2, None, '___sec29'),
|
||||
('Disadvantages', 2, None, '___sec30'),
|
||||
('From a Single Tree to Many Trees, that is meet the Jungle of '
|
||||
'Methods',
|
||||
('From a Single Tree to Many Trees, Meet the Jungle of Methods',
|
||||
2,
|
||||
None,
|
||||
'___sec31'),
|
||||
@@ -101,8 +100,14 @@ Automatically generated HTML file from DocOnce source
|
||||
('Now Bagging', 2, None, '___sec37'),
|
||||
('Random forests', 2, None, '___sec38'),
|
||||
('Random Forest Algorithm', 2, None, '___sec39'),
|
||||
('A simple scikit-learn example', 2, None, '___sec40'),
|
||||
('Then random forests', 2, None, '___sec41'),
|
||||
('Random Forests Compared with other Methods on the Cancer Data',
|
||||
2,
|
||||
None,
|
||||
'___sec40'),
|
||||
('Compare Bagging on Trees with Random Forests',
|
||||
2,
|
||||
None,
|
||||
'___sec41'),
|
||||
('Feature Importance', 2, None, '___sec42'),
|
||||
("Boosting, a Bird'e Eye", 2, None, '___sec43'),
|
||||
('Adaptive boosting: AdaBoost, Basic Algorithm',
|
||||
@@ -187,7 +192,7 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs029.html#___sec28" style="font-size: 80%;">Final regressor code</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs030.html#___sec29" style="font-size: 80%;">Pros and cons of trees, pros</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs031.html#___sec30" style="font-size: 80%;">Disadvantages</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, that is meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, Meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs033.html#___sec32" style="font-size: 80%;">Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs034.html#___sec33" style="font-size: 80%;">More bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs035.html#___sec34" style="font-size: 80%;">Simple Voting Example, head or tail</a></li>
|
||||
@@ -196,8 +201,8 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs038.html#___sec37" style="font-size: 80%;">Now Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs039.html#___sec38" style="font-size: 80%;">Random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs040.html#___sec39" style="font-size: 80%;">Random Forest Algorithm</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">A simple scikit-learn example</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Then random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">Random Forests Compared with other Methods on the Cancer Data</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Compare Bagging on Trees with Random Forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs043.html#___sec42" style="font-size: 80%;">Feature Importance</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs044.html#___sec43" style="font-size: 80%;">Boosting, a Bird'e Eye</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs045.html#___sec44" style="font-size: 80%;">Adaptive boosting: AdaBoost, Basic Algorithm</a></li>
|
||||
|
||||
@@ -85,8 +85,7 @@ Automatically generated HTML file from DocOnce source
|
||||
('Final regressor code', 2, None, '___sec28'),
|
||||
('Pros and cons of trees, pros', 2, None, '___sec29'),
|
||||
('Disadvantages', 2, None, '___sec30'),
|
||||
('From a Single Tree to Many Trees, that is meet the Jungle of '
|
||||
'Methods',
|
||||
('From a Single Tree to Many Trees, Meet the Jungle of Methods',
|
||||
2,
|
||||
None,
|
||||
'___sec31'),
|
||||
@@ -101,8 +100,14 @@ Automatically generated HTML file from DocOnce source
|
||||
('Now Bagging', 2, None, '___sec37'),
|
||||
('Random forests', 2, None, '___sec38'),
|
||||
('Random Forest Algorithm', 2, None, '___sec39'),
|
||||
('A simple scikit-learn example', 2, None, '___sec40'),
|
||||
('Then random forests', 2, None, '___sec41'),
|
||||
('Random Forests Compared with other Methods on the Cancer Data',
|
||||
2,
|
||||
None,
|
||||
'___sec40'),
|
||||
('Compare Bagging on Trees with Random Forests',
|
||||
2,
|
||||
None,
|
||||
'___sec41'),
|
||||
('Feature Importance', 2, None, '___sec42'),
|
||||
("Boosting, a Bird'e Eye", 2, None, '___sec43'),
|
||||
('Adaptive boosting: AdaBoost, Basic Algorithm',
|
||||
@@ -187,7 +192,7 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs029.html#___sec28" style="font-size: 80%;">Final regressor code</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs030.html#___sec29" style="font-size: 80%;">Pros and cons of trees, pros</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs031.html#___sec30" style="font-size: 80%;">Disadvantages</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, that is meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, Meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs033.html#___sec32" style="font-size: 80%;">Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs034.html#___sec33" style="font-size: 80%;">More bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs035.html#___sec34" style="font-size: 80%;">Simple Voting Example, head or tail</a></li>
|
||||
@@ -196,8 +201,8 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs038.html#___sec37" style="font-size: 80%;">Now Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs039.html#___sec38" style="font-size: 80%;">Random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs040.html#___sec39" style="font-size: 80%;">Random Forest Algorithm</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">A simple scikit-learn example</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Then random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">Random Forests Compared with other Methods on the Cancer Data</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Compare Bagging on Trees with Random Forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs043.html#___sec42" style="font-size: 80%;">Feature Importance</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs044.html#___sec43" style="font-size: 80%;">Boosting, a Bird'e Eye</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs045.html#___sec44" style="font-size: 80%;">Adaptive boosting: AdaBoost, Basic Algorithm</a></li>
|
||||
|
||||
@@ -85,8 +85,7 @@ Automatically generated HTML file from DocOnce source
|
||||
('Final regressor code', 2, None, '___sec28'),
|
||||
('Pros and cons of trees, pros', 2, None, '___sec29'),
|
||||
('Disadvantages', 2, None, '___sec30'),
|
||||
('From a Single Tree to Many Trees, that is meet the Jungle of '
|
||||
'Methods',
|
||||
('From a Single Tree to Many Trees, Meet the Jungle of Methods',
|
||||
2,
|
||||
None,
|
||||
'___sec31'),
|
||||
@@ -101,8 +100,14 @@ Automatically generated HTML file from DocOnce source
|
||||
('Now Bagging', 2, None, '___sec37'),
|
||||
('Random forests', 2, None, '___sec38'),
|
||||
('Random Forest Algorithm', 2, None, '___sec39'),
|
||||
('A simple scikit-learn example', 2, None, '___sec40'),
|
||||
('Then random forests', 2, None, '___sec41'),
|
||||
('Random Forests Compared with other Methods on the Cancer Data',
|
||||
2,
|
||||
None,
|
||||
'___sec40'),
|
||||
('Compare Bagging on Trees with Random Forests',
|
||||
2,
|
||||
None,
|
||||
'___sec41'),
|
||||
('Feature Importance', 2, None, '___sec42'),
|
||||
("Boosting, a Bird'e Eye", 2, None, '___sec43'),
|
||||
('Adaptive boosting: AdaBoost, Basic Algorithm',
|
||||
@@ -187,7 +192,7 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs029.html#___sec28" style="font-size: 80%;">Final regressor code</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs030.html#___sec29" style="font-size: 80%;">Pros and cons of trees, pros</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs031.html#___sec30" style="font-size: 80%;">Disadvantages</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, that is meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, Meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs033.html#___sec32" style="font-size: 80%;">Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs034.html#___sec33" style="font-size: 80%;">More bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs035.html#___sec34" style="font-size: 80%;">Simple Voting Example, head or tail</a></li>
|
||||
@@ -196,8 +201,8 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs038.html#___sec37" style="font-size: 80%;">Now Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs039.html#___sec38" style="font-size: 80%;">Random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs040.html#___sec39" style="font-size: 80%;">Random Forest Algorithm</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">A simple scikit-learn example</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Then random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">Random Forests Compared with other Methods on the Cancer Data</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Compare Bagging on Trees with Random Forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs043.html#___sec42" style="font-size: 80%;">Feature Importance</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs044.html#___sec43" style="font-size: 80%;">Boosting, a Bird'e Eye</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs045.html#___sec44" style="font-size: 80%;">Adaptive boosting: AdaBoost, Basic Algorithm</a></li>
|
||||
|
||||
@@ -85,8 +85,7 @@ Automatically generated HTML file from DocOnce source
|
||||
('Final regressor code', 2, None, '___sec28'),
|
||||
('Pros and cons of trees, pros', 2, None, '___sec29'),
|
||||
('Disadvantages', 2, None, '___sec30'),
|
||||
('From a Single Tree to Many Trees, that is meet the Jungle of '
|
||||
'Methods',
|
||||
('From a Single Tree to Many Trees, Meet the Jungle of Methods',
|
||||
2,
|
||||
None,
|
||||
'___sec31'),
|
||||
@@ -101,8 +100,14 @@ Automatically generated HTML file from DocOnce source
|
||||
('Now Bagging', 2, None, '___sec37'),
|
||||
('Random forests', 2, None, '___sec38'),
|
||||
('Random Forest Algorithm', 2, None, '___sec39'),
|
||||
('A simple scikit-learn example', 2, None, '___sec40'),
|
||||
('Then random forests', 2, None, '___sec41'),
|
||||
('Random Forests Compared with other Methods on the Cancer Data',
|
||||
2,
|
||||
None,
|
||||
'___sec40'),
|
||||
('Compare Bagging on Trees with Random Forests',
|
||||
2,
|
||||
None,
|
||||
'___sec41'),
|
||||
('Feature Importance', 2, None, '___sec42'),
|
||||
("Boosting, a Bird'e Eye", 2, None, '___sec43'),
|
||||
('Adaptive boosting: AdaBoost, Basic Algorithm',
|
||||
@@ -187,7 +192,7 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs029.html#___sec28" style="font-size: 80%;">Final regressor code</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs030.html#___sec29" style="font-size: 80%;">Pros and cons of trees, pros</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs031.html#___sec30" style="font-size: 80%;">Disadvantages</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, that is meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, Meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs033.html#___sec32" style="font-size: 80%;">Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs034.html#___sec33" style="font-size: 80%;">More bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs035.html#___sec34" style="font-size: 80%;">Simple Voting Example, head or tail</a></li>
|
||||
@@ -196,8 +201,8 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs038.html#___sec37" style="font-size: 80%;">Now Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs039.html#___sec38" style="font-size: 80%;">Random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs040.html#___sec39" style="font-size: 80%;">Random Forest Algorithm</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">A simple scikit-learn example</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Then random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">Random Forests Compared with other Methods on the Cancer Data</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Compare Bagging on Trees with Random Forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs043.html#___sec42" style="font-size: 80%;">Feature Importance</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs044.html#___sec43" style="font-size: 80%;">Boosting, a Bird'e Eye</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs045.html#___sec44" style="font-size: 80%;">Adaptive boosting: AdaBoost, Basic Algorithm</a></li>
|
||||
|
||||
@@ -85,8 +85,7 @@ Automatically generated HTML file from DocOnce source
|
||||
('Final regressor code', 2, None, '___sec28'),
|
||||
('Pros and cons of trees, pros', 2, None, '___sec29'),
|
||||
('Disadvantages', 2, None, '___sec30'),
|
||||
('From a Single Tree to Many Trees, that is meet the Jungle of '
|
||||
'Methods',
|
||||
('From a Single Tree to Many Trees, Meet the Jungle of Methods',
|
||||
2,
|
||||
None,
|
||||
'___sec31'),
|
||||
@@ -101,8 +100,14 @@ Automatically generated HTML file from DocOnce source
|
||||
('Now Bagging', 2, None, '___sec37'),
|
||||
('Random forests', 2, None, '___sec38'),
|
||||
('Random Forest Algorithm', 2, None, '___sec39'),
|
||||
('A simple scikit-learn example', 2, None, '___sec40'),
|
||||
('Then random forests', 2, None, '___sec41'),
|
||||
('Random Forests Compared with other Methods on the Cancer Data',
|
||||
2,
|
||||
None,
|
||||
'___sec40'),
|
||||
('Compare Bagging on Trees with Random Forests',
|
||||
2,
|
||||
None,
|
||||
'___sec41'),
|
||||
('Feature Importance', 2, None, '___sec42'),
|
||||
("Boosting, a Bird'e Eye", 2, None, '___sec43'),
|
||||
('Adaptive boosting: AdaBoost, Basic Algorithm',
|
||||
@@ -187,7 +192,7 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs029.html#___sec28" style="font-size: 80%;">Final regressor code</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs030.html#___sec29" style="font-size: 80%;">Pros and cons of trees, pros</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs031.html#___sec30" style="font-size: 80%;">Disadvantages</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, that is meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, Meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs033.html#___sec32" style="font-size: 80%;">Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs034.html#___sec33" style="font-size: 80%;">More bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs035.html#___sec34" style="font-size: 80%;">Simple Voting Example, head or tail</a></li>
|
||||
@@ -196,8 +201,8 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs038.html#___sec37" style="font-size: 80%;">Now Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs039.html#___sec38" style="font-size: 80%;">Random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs040.html#___sec39" style="font-size: 80%;">Random Forest Algorithm</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">A simple scikit-learn example</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Then random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">Random Forests Compared with other Methods on the Cancer Data</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Compare Bagging on Trees with Random Forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs043.html#___sec42" style="font-size: 80%;">Feature Importance</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs044.html#___sec43" style="font-size: 80%;">Boosting, a Bird'e Eye</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs045.html#___sec44" style="font-size: 80%;">Adaptive boosting: AdaBoost, Basic Algorithm</a></li>
|
||||
|
||||
@@ -85,8 +85,7 @@ Automatically generated HTML file from DocOnce source
|
||||
('Final regressor code', 2, None, '___sec28'),
|
||||
('Pros and cons of trees, pros', 2, None, '___sec29'),
|
||||
('Disadvantages', 2, None, '___sec30'),
|
||||
('From a Single Tree to Many Trees, that is meet the Jungle of '
|
||||
'Methods',
|
||||
('From a Single Tree to Many Trees, Meet the Jungle of Methods',
|
||||
2,
|
||||
None,
|
||||
'___sec31'),
|
||||
@@ -101,8 +100,14 @@ Automatically generated HTML file from DocOnce source
|
||||
('Now Bagging', 2, None, '___sec37'),
|
||||
('Random forests', 2, None, '___sec38'),
|
||||
('Random Forest Algorithm', 2, None, '___sec39'),
|
||||
('A simple scikit-learn example', 2, None, '___sec40'),
|
||||
('Then random forests', 2, None, '___sec41'),
|
||||
('Random Forests Compared with other Methods on the Cancer Data',
|
||||
2,
|
||||
None,
|
||||
'___sec40'),
|
||||
('Compare Bagging on Trees with Random Forests',
|
||||
2,
|
||||
None,
|
||||
'___sec41'),
|
||||
('Feature Importance', 2, None, '___sec42'),
|
||||
("Boosting, a Bird'e Eye", 2, None, '___sec43'),
|
||||
('Adaptive boosting: AdaBoost, Basic Algorithm',
|
||||
@@ -187,7 +192,7 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs029.html#___sec28" style="font-size: 80%;">Final regressor code</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs030.html#___sec29" style="font-size: 80%;">Pros and cons of trees, pros</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs031.html#___sec30" style="font-size: 80%;">Disadvantages</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, that is meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, Meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs033.html#___sec32" style="font-size: 80%;">Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs034.html#___sec33" style="font-size: 80%;">More bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs035.html#___sec34" style="font-size: 80%;">Simple Voting Example, head or tail</a></li>
|
||||
@@ -196,8 +201,8 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs038.html#___sec37" style="font-size: 80%;">Now Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs039.html#___sec38" style="font-size: 80%;">Random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs040.html#___sec39" style="font-size: 80%;">Random Forest Algorithm</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">A simple scikit-learn example</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Then random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">Random Forests Compared with other Methods on the Cancer Data</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Compare Bagging on Trees with Random Forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs043.html#___sec42" style="font-size: 80%;">Feature Importance</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs044.html#___sec43" style="font-size: 80%;">Boosting, a Bird'e Eye</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs045.html#___sec44" style="font-size: 80%;">Adaptive boosting: AdaBoost, Basic Algorithm</a></li>
|
||||
|
||||
@@ -85,8 +85,7 @@ Automatically generated HTML file from DocOnce source
|
||||
('Final regressor code', 2, None, '___sec28'),
|
||||
('Pros and cons of trees, pros', 2, None, '___sec29'),
|
||||
('Disadvantages', 2, None, '___sec30'),
|
||||
('From a Single Tree to Many Trees, that is meet the Jungle of '
|
||||
'Methods',
|
||||
('From a Single Tree to Many Trees, Meet the Jungle of Methods',
|
||||
2,
|
||||
None,
|
||||
'___sec31'),
|
||||
@@ -101,8 +100,14 @@ Automatically generated HTML file from DocOnce source
|
||||
('Now Bagging', 2, None, '___sec37'),
|
||||
('Random forests', 2, None, '___sec38'),
|
||||
('Random Forest Algorithm', 2, None, '___sec39'),
|
||||
('A simple scikit-learn example', 2, None, '___sec40'),
|
||||
('Then random forests', 2, None, '___sec41'),
|
||||
('Random Forests Compared with other Methods on the Cancer Data',
|
||||
2,
|
||||
None,
|
||||
'___sec40'),
|
||||
('Compare Bagging on Trees with Random Forests',
|
||||
2,
|
||||
None,
|
||||
'___sec41'),
|
||||
('Feature Importance', 2, None, '___sec42'),
|
||||
("Boosting, a Bird'e Eye", 2, None, '___sec43'),
|
||||
('Adaptive boosting: AdaBoost, Basic Algorithm',
|
||||
@@ -187,7 +192,7 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs029.html#___sec28" style="font-size: 80%;">Final regressor code</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs030.html#___sec29" style="font-size: 80%;">Pros and cons of trees, pros</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs031.html#___sec30" style="font-size: 80%;">Disadvantages</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, that is meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, Meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs033.html#___sec32" style="font-size: 80%;">Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs034.html#___sec33" style="font-size: 80%;">More bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs035.html#___sec34" style="font-size: 80%;">Simple Voting Example, head or tail</a></li>
|
||||
@@ -196,8 +201,8 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs038.html#___sec37" style="font-size: 80%;">Now Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs039.html#___sec38" style="font-size: 80%;">Random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs040.html#___sec39" style="font-size: 80%;">Random Forest Algorithm</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">A simple scikit-learn example</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Then random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">Random Forests Compared with other Methods on the Cancer Data</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Compare Bagging on Trees with Random Forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs043.html#___sec42" style="font-size: 80%;">Feature Importance</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs044.html#___sec43" style="font-size: 80%;">Boosting, a Bird'e Eye</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs045.html#___sec44" style="font-size: 80%;">Adaptive boosting: AdaBoost, Basic Algorithm</a></li>
|
||||
|
||||
@@ -85,8 +85,7 @@ Automatically generated HTML file from DocOnce source
|
||||
('Final regressor code', 2, None, '___sec28'),
|
||||
('Pros and cons of trees, pros', 2, None, '___sec29'),
|
||||
('Disadvantages', 2, None, '___sec30'),
|
||||
('From a Single Tree to Many Trees, that is meet the Jungle of '
|
||||
'Methods',
|
||||
('From a Single Tree to Many Trees, Meet the Jungle of Methods',
|
||||
2,
|
||||
None,
|
||||
'___sec31'),
|
||||
@@ -101,8 +100,14 @@ Automatically generated HTML file from DocOnce source
|
||||
('Now Bagging', 2, None, '___sec37'),
|
||||
('Random forests', 2, None, '___sec38'),
|
||||
('Random Forest Algorithm', 2, None, '___sec39'),
|
||||
('A simple scikit-learn example', 2, None, '___sec40'),
|
||||
('Then random forests', 2, None, '___sec41'),
|
||||
('Random Forests Compared with other Methods on the Cancer Data',
|
||||
2,
|
||||
None,
|
||||
'___sec40'),
|
||||
('Compare Bagging on Trees with Random Forests',
|
||||
2,
|
||||
None,
|
||||
'___sec41'),
|
||||
('Feature Importance', 2, None, '___sec42'),
|
||||
("Boosting, a Bird'e Eye", 2, None, '___sec43'),
|
||||
('Adaptive boosting: AdaBoost, Basic Algorithm',
|
||||
@@ -187,7 +192,7 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs029.html#___sec28" style="font-size: 80%;">Final regressor code</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs030.html#___sec29" style="font-size: 80%;">Pros and cons of trees, pros</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs031.html#___sec30" style="font-size: 80%;">Disadvantages</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, that is meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, Meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs033.html#___sec32" style="font-size: 80%;">Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs034.html#___sec33" style="font-size: 80%;">More bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs035.html#___sec34" style="font-size: 80%;">Simple Voting Example, head or tail</a></li>
|
||||
@@ -196,8 +201,8 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs038.html#___sec37" style="font-size: 80%;">Now Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs039.html#___sec38" style="font-size: 80%;">Random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs040.html#___sec39" style="font-size: 80%;">Random Forest Algorithm</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">A simple scikit-learn example</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Then random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">Random Forests Compared with other Methods on the Cancer Data</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Compare Bagging on Trees with Random Forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs043.html#___sec42" style="font-size: 80%;">Feature Importance</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs044.html#___sec43" style="font-size: 80%;">Boosting, a Bird'e Eye</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs045.html#___sec44" style="font-size: 80%;">Adaptive boosting: AdaBoost, Basic Algorithm</a></li>
|
||||
|
||||
@@ -85,8 +85,7 @@ Automatically generated HTML file from DocOnce source
|
||||
('Final regressor code', 2, None, '___sec28'),
|
||||
('Pros and cons of trees, pros', 2, None, '___sec29'),
|
||||
('Disadvantages', 2, None, '___sec30'),
|
||||
('From a Single Tree to Many Trees, that is meet the Jungle of '
|
||||
'Methods',
|
||||
('From a Single Tree to Many Trees, Meet the Jungle of Methods',
|
||||
2,
|
||||
None,
|
||||
'___sec31'),
|
||||
@@ -101,8 +100,14 @@ Automatically generated HTML file from DocOnce source
|
||||
('Now Bagging', 2, None, '___sec37'),
|
||||
('Random forests', 2, None, '___sec38'),
|
||||
('Random Forest Algorithm', 2, None, '___sec39'),
|
||||
('A simple scikit-learn example', 2, None, '___sec40'),
|
||||
('Then random forests', 2, None, '___sec41'),
|
||||
('Random Forests Compared with other Methods on the Cancer Data',
|
||||
2,
|
||||
None,
|
||||
'___sec40'),
|
||||
('Compare Bagging on Trees with Random Forests',
|
||||
2,
|
||||
None,
|
||||
'___sec41'),
|
||||
('Feature Importance', 2, None, '___sec42'),
|
||||
("Boosting, a Bird'e Eye", 2, None, '___sec43'),
|
||||
('Adaptive boosting: AdaBoost, Basic Algorithm',
|
||||
@@ -187,7 +192,7 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs029.html#___sec28" style="font-size: 80%;">Final regressor code</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs030.html#___sec29" style="font-size: 80%;">Pros and cons of trees, pros</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs031.html#___sec30" style="font-size: 80%;">Disadvantages</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, that is meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, Meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs033.html#___sec32" style="font-size: 80%;">Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs034.html#___sec33" style="font-size: 80%;">More bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs035.html#___sec34" style="font-size: 80%;">Simple Voting Example, head or tail</a></li>
|
||||
@@ -196,8 +201,8 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs038.html#___sec37" style="font-size: 80%;">Now Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs039.html#___sec38" style="font-size: 80%;">Random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs040.html#___sec39" style="font-size: 80%;">Random Forest Algorithm</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">A simple scikit-learn example</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Then random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">Random Forests Compared with other Methods on the Cancer Data</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Compare Bagging on Trees with Random Forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs043.html#___sec42" style="font-size: 80%;">Feature Importance</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs044.html#___sec43" style="font-size: 80%;">Boosting, a Bird'e Eye</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs045.html#___sec44" style="font-size: 80%;">Adaptive boosting: AdaBoost, Basic Algorithm</a></li>
|
||||
|
||||
@@ -85,8 +85,7 @@ Automatically generated HTML file from DocOnce source
|
||||
('Final regressor code', 2, None, '___sec28'),
|
||||
('Pros and cons of trees, pros', 2, None, '___sec29'),
|
||||
('Disadvantages', 2, None, '___sec30'),
|
||||
('From a Single Tree to Many Trees, that is meet the Jungle of '
|
||||
'Methods',
|
||||
('From a Single Tree to Many Trees, Meet the Jungle of Methods',
|
||||
2,
|
||||
None,
|
||||
'___sec31'),
|
||||
@@ -101,8 +100,14 @@ Automatically generated HTML file from DocOnce source
|
||||
('Now Bagging', 2, None, '___sec37'),
|
||||
('Random forests', 2, None, '___sec38'),
|
||||
('Random Forest Algorithm', 2, None, '___sec39'),
|
||||
('A simple scikit-learn example', 2, None, '___sec40'),
|
||||
('Then random forests', 2, None, '___sec41'),
|
||||
('Random Forests Compared with other Methods on the Cancer Data',
|
||||
2,
|
||||
None,
|
||||
'___sec40'),
|
||||
('Compare Bagging on Trees with Random Forests',
|
||||
2,
|
||||
None,
|
||||
'___sec41'),
|
||||
('Feature Importance', 2, None, '___sec42'),
|
||||
("Boosting, a Bird'e Eye", 2, None, '___sec43'),
|
||||
('Adaptive boosting: AdaBoost, Basic Algorithm',
|
||||
@@ -187,7 +192,7 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs029.html#___sec28" style="font-size: 80%;">Final regressor code</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs030.html#___sec29" style="font-size: 80%;">Pros and cons of trees, pros</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs031.html#___sec30" style="font-size: 80%;">Disadvantages</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, that is meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, Meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs033.html#___sec32" style="font-size: 80%;">Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs034.html#___sec33" style="font-size: 80%;">More bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs035.html#___sec34" style="font-size: 80%;">Simple Voting Example, head or tail</a></li>
|
||||
@@ -196,8 +201,8 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs038.html#___sec37" style="font-size: 80%;">Now Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs039.html#___sec38" style="font-size: 80%;">Random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs040.html#___sec39" style="font-size: 80%;">Random Forest Algorithm</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">A simple scikit-learn example</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Then random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">Random Forests Compared with other Methods on the Cancer Data</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Compare Bagging on Trees with Random Forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs043.html#___sec42" style="font-size: 80%;">Feature Importance</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs044.html#___sec43" style="font-size: 80%;">Boosting, a Bird'e Eye</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs045.html#___sec44" style="font-size: 80%;">Adaptive boosting: AdaBoost, Basic Algorithm</a></li>
|
||||
|
||||
@@ -85,8 +85,7 @@ Automatically generated HTML file from DocOnce source
|
||||
('Final regressor code', 2, None, '___sec28'),
|
||||
('Pros and cons of trees, pros', 2, None, '___sec29'),
|
||||
('Disadvantages', 2, None, '___sec30'),
|
||||
('From a Single Tree to Many Trees, that is meet the Jungle of '
|
||||
'Methods',
|
||||
('From a Single Tree to Many Trees, Meet the Jungle of Methods',
|
||||
2,
|
||||
None,
|
||||
'___sec31'),
|
||||
@@ -101,8 +100,14 @@ Automatically generated HTML file from DocOnce source
|
||||
('Now Bagging', 2, None, '___sec37'),
|
||||
('Random forests', 2, None, '___sec38'),
|
||||
('Random Forest Algorithm', 2, None, '___sec39'),
|
||||
('A simple scikit-learn example', 2, None, '___sec40'),
|
||||
('Then random forests', 2, None, '___sec41'),
|
||||
('Random Forests Compared with other Methods on the Cancer Data',
|
||||
2,
|
||||
None,
|
||||
'___sec40'),
|
||||
('Compare Bagging on Trees with Random Forests',
|
||||
2,
|
||||
None,
|
||||
'___sec41'),
|
||||
('Feature Importance', 2, None, '___sec42'),
|
||||
("Boosting, a Bird'e Eye", 2, None, '___sec43'),
|
||||
('Adaptive boosting: AdaBoost, Basic Algorithm',
|
||||
@@ -187,7 +192,7 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs029.html#___sec28" style="font-size: 80%;">Final regressor code</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs030.html#___sec29" style="font-size: 80%;">Pros and cons of trees, pros</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs031.html#___sec30" style="font-size: 80%;">Disadvantages</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, that is meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, Meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs033.html#___sec32" style="font-size: 80%;">Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs034.html#___sec33" style="font-size: 80%;">More bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs035.html#___sec34" style="font-size: 80%;">Simple Voting Example, head or tail</a></li>
|
||||
@@ -196,8 +201,8 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs038.html#___sec37" style="font-size: 80%;">Now Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs039.html#___sec38" style="font-size: 80%;">Random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs040.html#___sec39" style="font-size: 80%;">Random Forest Algorithm</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">A simple scikit-learn example</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Then random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">Random Forests Compared with other Methods on the Cancer Data</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Compare Bagging on Trees with Random Forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs043.html#___sec42" style="font-size: 80%;">Feature Importance</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs044.html#___sec43" style="font-size: 80%;">Boosting, a Bird'e Eye</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs045.html#___sec44" style="font-size: 80%;">Adaptive boosting: AdaBoost, Basic Algorithm</a></li>
|
||||
|
||||
@@ -85,8 +85,7 @@ Automatically generated HTML file from DocOnce source
|
||||
('Final regressor code', 2, None, '___sec28'),
|
||||
('Pros and cons of trees, pros', 2, None, '___sec29'),
|
||||
('Disadvantages', 2, None, '___sec30'),
|
||||
('From a Single Tree to Many Trees, that is meet the Jungle of '
|
||||
'Methods',
|
||||
('From a Single Tree to Many Trees, Meet the Jungle of Methods',
|
||||
2,
|
||||
None,
|
||||
'___sec31'),
|
||||
@@ -101,8 +100,14 @@ Automatically generated HTML file from DocOnce source
|
||||
('Now Bagging', 2, None, '___sec37'),
|
||||
('Random forests', 2, None, '___sec38'),
|
||||
('Random Forest Algorithm', 2, None, '___sec39'),
|
||||
('A simple scikit-learn example', 2, None, '___sec40'),
|
||||
('Then random forests', 2, None, '___sec41'),
|
||||
('Random Forests Compared with other Methods on the Cancer Data',
|
||||
2,
|
||||
None,
|
||||
'___sec40'),
|
||||
('Compare Bagging on Trees with Random Forests',
|
||||
2,
|
||||
None,
|
||||
'___sec41'),
|
||||
('Feature Importance', 2, None, '___sec42'),
|
||||
("Boosting, a Bird'e Eye", 2, None, '___sec43'),
|
||||
('Adaptive boosting: AdaBoost, Basic Algorithm',
|
||||
@@ -187,7 +192,7 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs029.html#___sec28" style="font-size: 80%;">Final regressor code</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs030.html#___sec29" style="font-size: 80%;">Pros and cons of trees, pros</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs031.html#___sec30" style="font-size: 80%;">Disadvantages</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, that is meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, Meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs033.html#___sec32" style="font-size: 80%;">Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs034.html#___sec33" style="font-size: 80%;">More bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs035.html#___sec34" style="font-size: 80%;">Simple Voting Example, head or tail</a></li>
|
||||
@@ -196,8 +201,8 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs038.html#___sec37" style="font-size: 80%;">Now Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs039.html#___sec38" style="font-size: 80%;">Random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs040.html#___sec39" style="font-size: 80%;">Random Forest Algorithm</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">A simple scikit-learn example</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Then random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">Random Forests Compared with other Methods on the Cancer Data</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Compare Bagging on Trees with Random Forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs043.html#___sec42" style="font-size: 80%;">Feature Importance</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs044.html#___sec43" style="font-size: 80%;">Boosting, a Bird'e Eye</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs045.html#___sec44" style="font-size: 80%;">Adaptive boosting: AdaBoost, Basic Algorithm</a></li>
|
||||
|
||||
@@ -85,8 +85,7 @@ Automatically generated HTML file from DocOnce source
|
||||
('Final regressor code', 2, None, '___sec28'),
|
||||
('Pros and cons of trees, pros', 2, None, '___sec29'),
|
||||
('Disadvantages', 2, None, '___sec30'),
|
||||
('From a Single Tree to Many Trees, that is meet the Jungle of '
|
||||
'Methods',
|
||||
('From a Single Tree to Many Trees, Meet the Jungle of Methods',
|
||||
2,
|
||||
None,
|
||||
'___sec31'),
|
||||
@@ -101,8 +100,14 @@ Automatically generated HTML file from DocOnce source
|
||||
('Now Bagging', 2, None, '___sec37'),
|
||||
('Random forests', 2, None, '___sec38'),
|
||||
('Random Forest Algorithm', 2, None, '___sec39'),
|
||||
('A simple scikit-learn example', 2, None, '___sec40'),
|
||||
('Then random forests', 2, None, '___sec41'),
|
||||
('Random Forests Compared with other Methods on the Cancer Data',
|
||||
2,
|
||||
None,
|
||||
'___sec40'),
|
||||
('Compare Bagging on Trees with Random Forests',
|
||||
2,
|
||||
None,
|
||||
'___sec41'),
|
||||
('Feature Importance', 2, None, '___sec42'),
|
||||
("Boosting, a Bird'e Eye", 2, None, '___sec43'),
|
||||
('Adaptive boosting: AdaBoost, Basic Algorithm',
|
||||
@@ -187,7 +192,7 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs029.html#___sec28" style="font-size: 80%;">Final regressor code</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs030.html#___sec29" style="font-size: 80%;">Pros and cons of trees, pros</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs031.html#___sec30" style="font-size: 80%;">Disadvantages</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, that is meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, Meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs033.html#___sec32" style="font-size: 80%;">Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs034.html#___sec33" style="font-size: 80%;">More bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs035.html#___sec34" style="font-size: 80%;">Simple Voting Example, head or tail</a></li>
|
||||
@@ -196,8 +201,8 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs038.html#___sec37" style="font-size: 80%;">Now Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs039.html#___sec38" style="font-size: 80%;">Random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs040.html#___sec39" style="font-size: 80%;">Random Forest Algorithm</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">A simple scikit-learn example</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Then random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">Random Forests Compared with other Methods on the Cancer Data</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Compare Bagging on Trees with Random Forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs043.html#___sec42" style="font-size: 80%;">Feature Importance</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs044.html#___sec43" style="font-size: 80%;">Boosting, a Bird'e Eye</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs045.html#___sec44" style="font-size: 80%;">Adaptive boosting: AdaBoost, Basic Algorithm</a></li>
|
||||
|
||||
@@ -85,8 +85,7 @@ Automatically generated HTML file from DocOnce source
|
||||
('Final regressor code', 2, None, '___sec28'),
|
||||
('Pros and cons of trees, pros', 2, None, '___sec29'),
|
||||
('Disadvantages', 2, None, '___sec30'),
|
||||
('From a Single Tree to Many Trees, that is meet the Jungle of '
|
||||
'Methods',
|
||||
('From a Single Tree to Many Trees, Meet the Jungle of Methods',
|
||||
2,
|
||||
None,
|
||||
'___sec31'),
|
||||
@@ -101,8 +100,14 @@ Automatically generated HTML file from DocOnce source
|
||||
('Now Bagging', 2, None, '___sec37'),
|
||||
('Random forests', 2, None, '___sec38'),
|
||||
('Random Forest Algorithm', 2, None, '___sec39'),
|
||||
('A simple scikit-learn example', 2, None, '___sec40'),
|
||||
('Then random forests', 2, None, '___sec41'),
|
||||
('Random Forests Compared with other Methods on the Cancer Data',
|
||||
2,
|
||||
None,
|
||||
'___sec40'),
|
||||
('Compare Bagging on Trees with Random Forests',
|
||||
2,
|
||||
None,
|
||||
'___sec41'),
|
||||
('Feature Importance', 2, None, '___sec42'),
|
||||
("Boosting, a Bird'e Eye", 2, None, '___sec43'),
|
||||
('Adaptive boosting: AdaBoost, Basic Algorithm',
|
||||
@@ -187,7 +192,7 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs029.html#___sec28" style="font-size: 80%;">Final regressor code</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs030.html#___sec29" style="font-size: 80%;">Pros and cons of trees, pros</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs031.html#___sec30" style="font-size: 80%;">Disadvantages</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, that is meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, Meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs033.html#___sec32" style="font-size: 80%;">Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs034.html#___sec33" style="font-size: 80%;">More bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs035.html#___sec34" style="font-size: 80%;">Simple Voting Example, head or tail</a></li>
|
||||
@@ -196,8 +201,8 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs038.html#___sec37" style="font-size: 80%;">Now Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs039.html#___sec38" style="font-size: 80%;">Random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs040.html#___sec39" style="font-size: 80%;">Random Forest Algorithm</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">A simple scikit-learn example</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Then random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">Random Forests Compared with other Methods on the Cancer Data</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Compare Bagging on Trees with Random Forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs043.html#___sec42" style="font-size: 80%;">Feature Importance</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs044.html#___sec43" style="font-size: 80%;">Boosting, a Bird'e Eye</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs045.html#___sec44" style="font-size: 80%;">Adaptive boosting: AdaBoost, Basic Algorithm</a></li>
|
||||
|
||||
@@ -85,8 +85,7 @@ Automatically generated HTML file from DocOnce source
|
||||
('Final regressor code', 2, None, '___sec28'),
|
||||
('Pros and cons of trees, pros', 2, None, '___sec29'),
|
||||
('Disadvantages', 2, None, '___sec30'),
|
||||
('From a Single Tree to Many Trees, that is meet the Jungle of '
|
||||
'Methods',
|
||||
('From a Single Tree to Many Trees, Meet the Jungle of Methods',
|
||||
2,
|
||||
None,
|
||||
'___sec31'),
|
||||
@@ -101,8 +100,14 @@ Automatically generated HTML file from DocOnce source
|
||||
('Now Bagging', 2, None, '___sec37'),
|
||||
('Random forests', 2, None, '___sec38'),
|
||||
('Random Forest Algorithm', 2, None, '___sec39'),
|
||||
('A simple scikit-learn example', 2, None, '___sec40'),
|
||||
('Then random forests', 2, None, '___sec41'),
|
||||
('Random Forests Compared with other Methods on the Cancer Data',
|
||||
2,
|
||||
None,
|
||||
'___sec40'),
|
||||
('Compare Bagging on Trees with Random Forests',
|
||||
2,
|
||||
None,
|
||||
'___sec41'),
|
||||
('Feature Importance', 2, None, '___sec42'),
|
||||
("Boosting, a Bird'e Eye", 2, None, '___sec43'),
|
||||
('Adaptive boosting: AdaBoost, Basic Algorithm',
|
||||
@@ -187,7 +192,7 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="#___sec28" style="font-size: 80%;">Final regressor code</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs030.html#___sec29" style="font-size: 80%;">Pros and cons of trees, pros</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs031.html#___sec30" style="font-size: 80%;">Disadvantages</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, that is meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, Meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs033.html#___sec32" style="font-size: 80%;">Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs034.html#___sec33" style="font-size: 80%;">More bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs035.html#___sec34" style="font-size: 80%;">Simple Voting Example, head or tail</a></li>
|
||||
@@ -196,8 +201,8 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs038.html#___sec37" style="font-size: 80%;">Now Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs039.html#___sec38" style="font-size: 80%;">Random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs040.html#___sec39" style="font-size: 80%;">Random Forest Algorithm</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">A simple scikit-learn example</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Then random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">Random Forests Compared with other Methods on the Cancer Data</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Compare Bagging on Trees with Random Forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs043.html#___sec42" style="font-size: 80%;">Feature Importance</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs044.html#___sec43" style="font-size: 80%;">Boosting, a Bird'e Eye</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs045.html#___sec44" style="font-size: 80%;">Adaptive boosting: AdaBoost, Basic Algorithm</a></li>
|
||||
|
||||
@@ -85,8 +85,7 @@ Automatically generated HTML file from DocOnce source
|
||||
('Final regressor code', 2, None, '___sec28'),
|
||||
('Pros and cons of trees, pros', 2, None, '___sec29'),
|
||||
('Disadvantages', 2, None, '___sec30'),
|
||||
('From a Single Tree to Many Trees, that is meet the Jungle of '
|
||||
'Methods',
|
||||
('From a Single Tree to Many Trees, Meet the Jungle of Methods',
|
||||
2,
|
||||
None,
|
||||
'___sec31'),
|
||||
@@ -101,8 +100,14 @@ Automatically generated HTML file from DocOnce source
|
||||
('Now Bagging', 2, None, '___sec37'),
|
||||
('Random forests', 2, None, '___sec38'),
|
||||
('Random Forest Algorithm', 2, None, '___sec39'),
|
||||
('A simple scikit-learn example', 2, None, '___sec40'),
|
||||
('Then random forests', 2, None, '___sec41'),
|
||||
('Random Forests Compared with other Methods on the Cancer Data',
|
||||
2,
|
||||
None,
|
||||
'___sec40'),
|
||||
('Compare Bagging on Trees with Random Forests',
|
||||
2,
|
||||
None,
|
||||
'___sec41'),
|
||||
('Feature Importance', 2, None, '___sec42'),
|
||||
("Boosting, a Bird'e Eye", 2, None, '___sec43'),
|
||||
('Adaptive boosting: AdaBoost, Basic Algorithm',
|
||||
@@ -187,7 +192,7 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs029.html#___sec28" style="font-size: 80%;">Final regressor code</a></li>
|
||||
<!-- navigation toc: --> <li><a href="#___sec29" style="font-size: 80%;">Pros and cons of trees, pros</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs031.html#___sec30" style="font-size: 80%;">Disadvantages</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, that is meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, Meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs033.html#___sec32" style="font-size: 80%;">Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs034.html#___sec33" style="font-size: 80%;">More bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs035.html#___sec34" style="font-size: 80%;">Simple Voting Example, head or tail</a></li>
|
||||
@@ -196,8 +201,8 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs038.html#___sec37" style="font-size: 80%;">Now Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs039.html#___sec38" style="font-size: 80%;">Random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs040.html#___sec39" style="font-size: 80%;">Random Forest Algorithm</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">A simple scikit-learn example</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Then random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">Random Forests Compared with other Methods on the Cancer Data</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Compare Bagging on Trees with Random Forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs043.html#___sec42" style="font-size: 80%;">Feature Importance</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs044.html#___sec43" style="font-size: 80%;">Boosting, a Bird'e Eye</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs045.html#___sec44" style="font-size: 80%;">Adaptive boosting: AdaBoost, Basic Algorithm</a></li>
|
||||
|
||||
@@ -85,8 +85,7 @@ Automatically generated HTML file from DocOnce source
|
||||
('Final regressor code', 2, None, '___sec28'),
|
||||
('Pros and cons of trees, pros', 2, None, '___sec29'),
|
||||
('Disadvantages', 2, None, '___sec30'),
|
||||
('From a Single Tree to Many Trees, that is meet the Jungle of '
|
||||
'Methods',
|
||||
('From a Single Tree to Many Trees, Meet the Jungle of Methods',
|
||||
2,
|
||||
None,
|
||||
'___sec31'),
|
||||
@@ -101,8 +100,14 @@ Automatically generated HTML file from DocOnce source
|
||||
('Now Bagging', 2, None, '___sec37'),
|
||||
('Random forests', 2, None, '___sec38'),
|
||||
('Random Forest Algorithm', 2, None, '___sec39'),
|
||||
('A simple scikit-learn example', 2, None, '___sec40'),
|
||||
('Then random forests', 2, None, '___sec41'),
|
||||
('Random Forests Compared with other Methods on the Cancer Data',
|
||||
2,
|
||||
None,
|
||||
'___sec40'),
|
||||
('Compare Bagging on Trees with Random Forests',
|
||||
2,
|
||||
None,
|
||||
'___sec41'),
|
||||
('Feature Importance', 2, None, '___sec42'),
|
||||
("Boosting, a Bird'e Eye", 2, None, '___sec43'),
|
||||
('Adaptive boosting: AdaBoost, Basic Algorithm',
|
||||
@@ -187,7 +192,7 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs029.html#___sec28" style="font-size: 80%;">Final regressor code</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs030.html#___sec29" style="font-size: 80%;">Pros and cons of trees, pros</a></li>
|
||||
<!-- navigation toc: --> <li><a href="#___sec30" style="font-size: 80%;">Disadvantages</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, that is meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, Meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs033.html#___sec32" style="font-size: 80%;">Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs034.html#___sec33" style="font-size: 80%;">More bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs035.html#___sec34" style="font-size: 80%;">Simple Voting Example, head or tail</a></li>
|
||||
@@ -196,8 +201,8 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs038.html#___sec37" style="font-size: 80%;">Now Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs039.html#___sec38" style="font-size: 80%;">Random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs040.html#___sec39" style="font-size: 80%;">Random Forest Algorithm</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">A simple scikit-learn example</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Then random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">Random Forests Compared with other Methods on the Cancer Data</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Compare Bagging on Trees with Random Forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs043.html#___sec42" style="font-size: 80%;">Feature Importance</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs044.html#___sec43" style="font-size: 80%;">Boosting, a Bird'e Eye</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs045.html#___sec44" style="font-size: 80%;">Adaptive boosting: AdaBoost, Basic Algorithm</a></li>
|
||||
|
||||
@@ -85,8 +85,7 @@ Automatically generated HTML file from DocOnce source
|
||||
('Final regressor code', 2, None, '___sec28'),
|
||||
('Pros and cons of trees, pros', 2, None, '___sec29'),
|
||||
('Disadvantages', 2, None, '___sec30'),
|
||||
('From a Single Tree to Many Trees, that is meet the Jungle of '
|
||||
'Methods',
|
||||
('From a Single Tree to Many Trees, Meet the Jungle of Methods',
|
||||
2,
|
||||
None,
|
||||
'___sec31'),
|
||||
@@ -101,8 +100,14 @@ Automatically generated HTML file from DocOnce source
|
||||
('Now Bagging', 2, None, '___sec37'),
|
||||
('Random forests', 2, None, '___sec38'),
|
||||
('Random Forest Algorithm', 2, None, '___sec39'),
|
||||
('A simple scikit-learn example', 2, None, '___sec40'),
|
||||
('Then random forests', 2, None, '___sec41'),
|
||||
('Random Forests Compared with other Methods on the Cancer Data',
|
||||
2,
|
||||
None,
|
||||
'___sec40'),
|
||||
('Compare Bagging on Trees with Random Forests',
|
||||
2,
|
||||
None,
|
||||
'___sec41'),
|
||||
('Feature Importance', 2, None, '___sec42'),
|
||||
("Boosting, a Bird'e Eye", 2, None, '___sec43'),
|
||||
('Adaptive boosting: AdaBoost, Basic Algorithm',
|
||||
@@ -187,7 +192,7 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs029.html#___sec28" style="font-size: 80%;">Final regressor code</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs030.html#___sec29" style="font-size: 80%;">Pros and cons of trees, pros</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs031.html#___sec30" style="font-size: 80%;">Disadvantages</a></li>
|
||||
<!-- navigation toc: --> <li><a href="#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, that is meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, Meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs033.html#___sec32" style="font-size: 80%;">Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs034.html#___sec33" style="font-size: 80%;">More bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs035.html#___sec34" style="font-size: 80%;">Simple Voting Example, head or tail</a></li>
|
||||
@@ -196,8 +201,8 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs038.html#___sec37" style="font-size: 80%;">Now Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs039.html#___sec38" style="font-size: 80%;">Random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs040.html#___sec39" style="font-size: 80%;">Random Forest Algorithm</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">A simple scikit-learn example</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Then random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">Random Forests Compared with other Methods on the Cancer Data</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Compare Bagging on Trees with Random Forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs043.html#___sec42" style="font-size: 80%;">Feature Importance</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs044.html#___sec43" style="font-size: 80%;">Boosting, a Bird'e Eye</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs045.html#___sec44" style="font-size: 80%;">Adaptive boosting: AdaBoost, Basic Algorithm</a></li>
|
||||
@@ -223,7 +228,7 @@ MathJax.Hub.Config({
|
||||
<a name="part0032"></a>
|
||||
<!-- !split -->
|
||||
|
||||
<h2 id="___sec31" class="anchor">From a Single Tree to Many Trees, that is meet the Jungle of Methods </h2>
|
||||
<h2 id="___sec31" class="anchor">From a Single Tree to Many Trees, Meet the Jungle of Methods </h2>
|
||||
|
||||
<p>
|
||||
As stated above and seen in many of the examples discussed here about
|
||||
@@ -236,7 +241,7 @@ This leads us to a set of different methods that can combine different
|
||||
machine learning algorithms or just use one of them to construct forests and jungles of trees, homogeneous ones or heterogenous ones. These methods are recognized by different names which we will try to explain here. These are
|
||||
|
||||
<ol>
|
||||
<li> Votign classifiers</li>
|
||||
<li> Voting classifiers</li>
|
||||
<li> Bagging and Pasting</li>
|
||||
<li> Random forests</li>
|
||||
<li> Boosting methods</li>
|
||||
|
||||
@@ -85,8 +85,7 @@ Automatically generated HTML file from DocOnce source
|
||||
('Final regressor code', 2, None, '___sec28'),
|
||||
('Pros and cons of trees, pros', 2, None, '___sec29'),
|
||||
('Disadvantages', 2, None, '___sec30'),
|
||||
('From a Single Tree to Many Trees, that is meet the Jungle of '
|
||||
'Methods',
|
||||
('From a Single Tree to Many Trees, Meet the Jungle of Methods',
|
||||
2,
|
||||
None,
|
||||
'___sec31'),
|
||||
@@ -101,8 +100,14 @@ Automatically generated HTML file from DocOnce source
|
||||
('Now Bagging', 2, None, '___sec37'),
|
||||
('Random forests', 2, None, '___sec38'),
|
||||
('Random Forest Algorithm', 2, None, '___sec39'),
|
||||
('A simple scikit-learn example', 2, None, '___sec40'),
|
||||
('Then random forests', 2, None, '___sec41'),
|
||||
('Random Forests Compared with other Methods on the Cancer Data',
|
||||
2,
|
||||
None,
|
||||
'___sec40'),
|
||||
('Compare Bagging on Trees with Random Forests',
|
||||
2,
|
||||
None,
|
||||
'___sec41'),
|
||||
('Feature Importance', 2, None, '___sec42'),
|
||||
("Boosting, a Bird'e Eye", 2, None, '___sec43'),
|
||||
('Adaptive boosting: AdaBoost, Basic Algorithm',
|
||||
@@ -187,7 +192,7 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs029.html#___sec28" style="font-size: 80%;">Final regressor code</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs030.html#___sec29" style="font-size: 80%;">Pros and cons of trees, pros</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs031.html#___sec30" style="font-size: 80%;">Disadvantages</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, that is meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, Meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="#___sec32" style="font-size: 80%;">Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs034.html#___sec33" style="font-size: 80%;">More bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs035.html#___sec34" style="font-size: 80%;">Simple Voting Example, head or tail</a></li>
|
||||
@@ -196,8 +201,8 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs038.html#___sec37" style="font-size: 80%;">Now Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs039.html#___sec38" style="font-size: 80%;">Random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs040.html#___sec39" style="font-size: 80%;">Random Forest Algorithm</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">A simple scikit-learn example</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Then random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">Random Forests Compared with other Methods on the Cancer Data</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Compare Bagging on Trees with Random Forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs043.html#___sec42" style="font-size: 80%;">Feature Importance</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs044.html#___sec43" style="font-size: 80%;">Boosting, a Bird'e Eye</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs045.html#___sec44" style="font-size: 80%;">Adaptive boosting: AdaBoost, Basic Algorithm</a></li>
|
||||
|
||||
@@ -85,8 +85,7 @@ Automatically generated HTML file from DocOnce source
|
||||
('Final regressor code', 2, None, '___sec28'),
|
||||
('Pros and cons of trees, pros', 2, None, '___sec29'),
|
||||
('Disadvantages', 2, None, '___sec30'),
|
||||
('From a Single Tree to Many Trees, that is meet the Jungle of '
|
||||
'Methods',
|
||||
('From a Single Tree to Many Trees, Meet the Jungle of Methods',
|
||||
2,
|
||||
None,
|
||||
'___sec31'),
|
||||
@@ -101,8 +100,14 @@ Automatically generated HTML file from DocOnce source
|
||||
('Now Bagging', 2, None, '___sec37'),
|
||||
('Random forests', 2, None, '___sec38'),
|
||||
('Random Forest Algorithm', 2, None, '___sec39'),
|
||||
('A simple scikit-learn example', 2, None, '___sec40'),
|
||||
('Then random forests', 2, None, '___sec41'),
|
||||
('Random Forests Compared with other Methods on the Cancer Data',
|
||||
2,
|
||||
None,
|
||||
'___sec40'),
|
||||
('Compare Bagging on Trees with Random Forests',
|
||||
2,
|
||||
None,
|
||||
'___sec41'),
|
||||
('Feature Importance', 2, None, '___sec42'),
|
||||
("Boosting, a Bird'e Eye", 2, None, '___sec43'),
|
||||
('Adaptive boosting: AdaBoost, Basic Algorithm',
|
||||
@@ -187,7 +192,7 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs029.html#___sec28" style="font-size: 80%;">Final regressor code</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs030.html#___sec29" style="font-size: 80%;">Pros and cons of trees, pros</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs031.html#___sec30" style="font-size: 80%;">Disadvantages</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, that is meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, Meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs033.html#___sec32" style="font-size: 80%;">Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="#___sec33" style="font-size: 80%;">More bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs035.html#___sec34" style="font-size: 80%;">Simple Voting Example, head or tail</a></li>
|
||||
@@ -196,8 +201,8 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs038.html#___sec37" style="font-size: 80%;">Now Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs039.html#___sec38" style="font-size: 80%;">Random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs040.html#___sec39" style="font-size: 80%;">Random Forest Algorithm</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">A simple scikit-learn example</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Then random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">Random Forests Compared with other Methods on the Cancer Data</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Compare Bagging on Trees with Random Forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs043.html#___sec42" style="font-size: 80%;">Feature Importance</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs044.html#___sec43" style="font-size: 80%;">Boosting, a Bird'e Eye</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs045.html#___sec44" style="font-size: 80%;">Adaptive boosting: AdaBoost, Basic Algorithm</a></li>
|
||||
|
||||
@@ -85,8 +85,7 @@ Automatically generated HTML file from DocOnce source
|
||||
('Final regressor code', 2, None, '___sec28'),
|
||||
('Pros and cons of trees, pros', 2, None, '___sec29'),
|
||||
('Disadvantages', 2, None, '___sec30'),
|
||||
('From a Single Tree to Many Trees, that is meet the Jungle of '
|
||||
'Methods',
|
||||
('From a Single Tree to Many Trees, Meet the Jungle of Methods',
|
||||
2,
|
||||
None,
|
||||
'___sec31'),
|
||||
@@ -101,8 +100,14 @@ Automatically generated HTML file from DocOnce source
|
||||
('Now Bagging', 2, None, '___sec37'),
|
||||
('Random forests', 2, None, '___sec38'),
|
||||
('Random Forest Algorithm', 2, None, '___sec39'),
|
||||
('A simple scikit-learn example', 2, None, '___sec40'),
|
||||
('Then random forests', 2, None, '___sec41'),
|
||||
('Random Forests Compared with other Methods on the Cancer Data',
|
||||
2,
|
||||
None,
|
||||
'___sec40'),
|
||||
('Compare Bagging on Trees with Random Forests',
|
||||
2,
|
||||
None,
|
||||
'___sec41'),
|
||||
('Feature Importance', 2, None, '___sec42'),
|
||||
("Boosting, a Bird'e Eye", 2, None, '___sec43'),
|
||||
('Adaptive boosting: AdaBoost, Basic Algorithm',
|
||||
@@ -187,7 +192,7 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs029.html#___sec28" style="font-size: 80%;">Final regressor code</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs030.html#___sec29" style="font-size: 80%;">Pros and cons of trees, pros</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs031.html#___sec30" style="font-size: 80%;">Disadvantages</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, that is meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, Meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs033.html#___sec32" style="font-size: 80%;">Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs034.html#___sec33" style="font-size: 80%;">More bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="#___sec34" style="font-size: 80%;">Simple Voting Example, head or tail</a></li>
|
||||
@@ -196,8 +201,8 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs038.html#___sec37" style="font-size: 80%;">Now Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs039.html#___sec38" style="font-size: 80%;">Random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs040.html#___sec39" style="font-size: 80%;">Random Forest Algorithm</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">A simple scikit-learn example</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Then random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">Random Forests Compared with other Methods on the Cancer Data</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Compare Bagging on Trees with Random Forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs043.html#___sec42" style="font-size: 80%;">Feature Importance</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs044.html#___sec43" style="font-size: 80%;">Boosting, a Bird'e Eye</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs045.html#___sec44" style="font-size: 80%;">Adaptive boosting: AdaBoost, Basic Algorithm</a></li>
|
||||
|
||||
@@ -85,8 +85,7 @@ Automatically generated HTML file from DocOnce source
|
||||
('Final regressor code', 2, None, '___sec28'),
|
||||
('Pros and cons of trees, pros', 2, None, '___sec29'),
|
||||
('Disadvantages', 2, None, '___sec30'),
|
||||
('From a Single Tree to Many Trees, that is meet the Jungle of '
|
||||
'Methods',
|
||||
('From a Single Tree to Many Trees, Meet the Jungle of Methods',
|
||||
2,
|
||||
None,
|
||||
'___sec31'),
|
||||
@@ -101,8 +100,14 @@ Automatically generated HTML file from DocOnce source
|
||||
('Now Bagging', 2, None, '___sec37'),
|
||||
('Random forests', 2, None, '___sec38'),
|
||||
('Random Forest Algorithm', 2, None, '___sec39'),
|
||||
('A simple scikit-learn example', 2, None, '___sec40'),
|
||||
('Then random forests', 2, None, '___sec41'),
|
||||
('Random Forests Compared with other Methods on the Cancer Data',
|
||||
2,
|
||||
None,
|
||||
'___sec40'),
|
||||
('Compare Bagging on Trees with Random Forests',
|
||||
2,
|
||||
None,
|
||||
'___sec41'),
|
||||
('Feature Importance', 2, None, '___sec42'),
|
||||
("Boosting, a Bird'e Eye", 2, None, '___sec43'),
|
||||
('Adaptive boosting: AdaBoost, Basic Algorithm',
|
||||
@@ -187,7 +192,7 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs029.html#___sec28" style="font-size: 80%;">Final regressor code</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs030.html#___sec29" style="font-size: 80%;">Pros and cons of trees, pros</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs031.html#___sec30" style="font-size: 80%;">Disadvantages</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, that is meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, Meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs033.html#___sec32" style="font-size: 80%;">Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs034.html#___sec33" style="font-size: 80%;">More bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs035.html#___sec34" style="font-size: 80%;">Simple Voting Example, head or tail</a></li>
|
||||
@@ -196,8 +201,8 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs038.html#___sec37" style="font-size: 80%;">Now Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs039.html#___sec38" style="font-size: 80%;">Random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs040.html#___sec39" style="font-size: 80%;">Random Forest Algorithm</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">A simple scikit-learn example</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Then random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">Random Forests Compared with other Methods on the Cancer Data</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Compare Bagging on Trees with Random Forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs043.html#___sec42" style="font-size: 80%;">Feature Importance</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs044.html#___sec43" style="font-size: 80%;">Boosting, a Bird'e Eye</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs045.html#___sec44" style="font-size: 80%;">Adaptive boosting: AdaBoost, Basic Algorithm</a></li>
|
||||
|
||||
@@ -85,8 +85,7 @@ Automatically generated HTML file from DocOnce source
|
||||
('Final regressor code', 2, None, '___sec28'),
|
||||
('Pros and cons of trees, pros', 2, None, '___sec29'),
|
||||
('Disadvantages', 2, None, '___sec30'),
|
||||
('From a Single Tree to Many Trees, that is meet the Jungle of '
|
||||
'Methods',
|
||||
('From a Single Tree to Many Trees, Meet the Jungle of Methods',
|
||||
2,
|
||||
None,
|
||||
'___sec31'),
|
||||
@@ -101,8 +100,14 @@ Automatically generated HTML file from DocOnce source
|
||||
('Now Bagging', 2, None, '___sec37'),
|
||||
('Random forests', 2, None, '___sec38'),
|
||||
('Random Forest Algorithm', 2, None, '___sec39'),
|
||||
('A simple scikit-learn example', 2, None, '___sec40'),
|
||||
('Then random forests', 2, None, '___sec41'),
|
||||
('Random Forests Compared with other Methods on the Cancer Data',
|
||||
2,
|
||||
None,
|
||||
'___sec40'),
|
||||
('Compare Bagging on Trees with Random Forests',
|
||||
2,
|
||||
None,
|
||||
'___sec41'),
|
||||
('Feature Importance', 2, None, '___sec42'),
|
||||
("Boosting, a Bird'e Eye", 2, None, '___sec43'),
|
||||
('Adaptive boosting: AdaBoost, Basic Algorithm',
|
||||
@@ -187,7 +192,7 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs029.html#___sec28" style="font-size: 80%;">Final regressor code</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs030.html#___sec29" style="font-size: 80%;">Pros and cons of trees, pros</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs031.html#___sec30" style="font-size: 80%;">Disadvantages</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, that is meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, Meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs033.html#___sec32" style="font-size: 80%;">Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs034.html#___sec33" style="font-size: 80%;">More bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs035.html#___sec34" style="font-size: 80%;">Simple Voting Example, head or tail</a></li>
|
||||
@@ -196,8 +201,8 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs038.html#___sec37" style="font-size: 80%;">Now Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs039.html#___sec38" style="font-size: 80%;">Random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs040.html#___sec39" style="font-size: 80%;">Random Forest Algorithm</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">A simple scikit-learn example</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Then random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">Random Forests Compared with other Methods on the Cancer Data</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Compare Bagging on Trees with Random Forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs043.html#___sec42" style="font-size: 80%;">Feature Importance</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs044.html#___sec43" style="font-size: 80%;">Boosting, a Bird'e Eye</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs045.html#___sec44" style="font-size: 80%;">Adaptive boosting: AdaBoost, Basic Algorithm</a></li>
|
||||
|
||||
@@ -85,8 +85,7 @@ Automatically generated HTML file from DocOnce source
|
||||
('Final regressor code', 2, None, '___sec28'),
|
||||
('Pros and cons of trees, pros', 2, None, '___sec29'),
|
||||
('Disadvantages', 2, None, '___sec30'),
|
||||
('From a Single Tree to Many Trees, that is meet the Jungle of '
|
||||
'Methods',
|
||||
('From a Single Tree to Many Trees, Meet the Jungle of Methods',
|
||||
2,
|
||||
None,
|
||||
'___sec31'),
|
||||
@@ -101,8 +100,14 @@ Automatically generated HTML file from DocOnce source
|
||||
('Now Bagging', 2, None, '___sec37'),
|
||||
('Random forests', 2, None, '___sec38'),
|
||||
('Random Forest Algorithm', 2, None, '___sec39'),
|
||||
('A simple scikit-learn example', 2, None, '___sec40'),
|
||||
('Then random forests', 2, None, '___sec41'),
|
||||
('Random Forests Compared with other Methods on the Cancer Data',
|
||||
2,
|
||||
None,
|
||||
'___sec40'),
|
||||
('Compare Bagging on Trees with Random Forests',
|
||||
2,
|
||||
None,
|
||||
'___sec41'),
|
||||
('Feature Importance', 2, None, '___sec42'),
|
||||
("Boosting, a Bird'e Eye", 2, None, '___sec43'),
|
||||
('Adaptive boosting: AdaBoost, Basic Algorithm',
|
||||
@@ -187,7 +192,7 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs029.html#___sec28" style="font-size: 80%;">Final regressor code</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs030.html#___sec29" style="font-size: 80%;">Pros and cons of trees, pros</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs031.html#___sec30" style="font-size: 80%;">Disadvantages</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, that is meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, Meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs033.html#___sec32" style="font-size: 80%;">Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs034.html#___sec33" style="font-size: 80%;">More bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs035.html#___sec34" style="font-size: 80%;">Simple Voting Example, head or tail</a></li>
|
||||
@@ -196,8 +201,8 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="#___sec37" style="font-size: 80%;">Now Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs039.html#___sec38" style="font-size: 80%;">Random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs040.html#___sec39" style="font-size: 80%;">Random Forest Algorithm</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">A simple scikit-learn example</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Then random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">Random Forests Compared with other Methods on the Cancer Data</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Compare Bagging on Trees with Random Forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs043.html#___sec42" style="font-size: 80%;">Feature Importance</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs044.html#___sec43" style="font-size: 80%;">Boosting, a Bird'e Eye</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs045.html#___sec44" style="font-size: 80%;">Adaptive boosting: AdaBoost, Basic Algorithm</a></li>
|
||||
|
||||
@@ -85,8 +85,7 @@ Automatically generated HTML file from DocOnce source
|
||||
('Final regressor code', 2, None, '___sec28'),
|
||||
('Pros and cons of trees, pros', 2, None, '___sec29'),
|
||||
('Disadvantages', 2, None, '___sec30'),
|
||||
('From a Single Tree to Many Trees, that is meet the Jungle of '
|
||||
'Methods',
|
||||
('From a Single Tree to Many Trees, Meet the Jungle of Methods',
|
||||
2,
|
||||
None,
|
||||
'___sec31'),
|
||||
@@ -101,8 +100,14 @@ Automatically generated HTML file from DocOnce source
|
||||
('Now Bagging', 2, None, '___sec37'),
|
||||
('Random forests', 2, None, '___sec38'),
|
||||
('Random Forest Algorithm', 2, None, '___sec39'),
|
||||
('A simple scikit-learn example', 2, None, '___sec40'),
|
||||
('Then random forests', 2, None, '___sec41'),
|
||||
('Random Forests Compared with other Methods on the Cancer Data',
|
||||
2,
|
||||
None,
|
||||
'___sec40'),
|
||||
('Compare Bagging on Trees with Random Forests',
|
||||
2,
|
||||
None,
|
||||
'___sec41'),
|
||||
('Feature Importance', 2, None, '___sec42'),
|
||||
("Boosting, a Bird'e Eye", 2, None, '___sec43'),
|
||||
('Adaptive boosting: AdaBoost, Basic Algorithm',
|
||||
@@ -187,7 +192,7 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs029.html#___sec28" style="font-size: 80%;">Final regressor code</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs030.html#___sec29" style="font-size: 80%;">Pros and cons of trees, pros</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs031.html#___sec30" style="font-size: 80%;">Disadvantages</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, that is meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs032.html#___sec31" style="font-size: 80%;">From a Single Tree to Many Trees, Meet the Jungle of Methods</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs033.html#___sec32" style="font-size: 80%;">Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs034.html#___sec33" style="font-size: 80%;">More bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs035.html#___sec34" style="font-size: 80%;">Simple Voting Example, head or tail</a></li>
|
||||
@@ -196,8 +201,8 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs038.html#___sec37" style="font-size: 80%;">Now Bagging</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs039.html#___sec38" style="font-size: 80%;">Random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs040.html#___sec39" style="font-size: 80%;">Random Forest Algorithm</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">A simple scikit-learn example</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Then random forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs041.html#___sec40" style="font-size: 80%;">Random Forests Compared with other Methods on the Cancer Data</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs042.html#___sec41" style="font-size: 80%;">Compare Bagging on Trees with Random Forests</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs043.html#___sec42" style="font-size: 80%;">Feature Importance</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs044.html#___sec43" style="font-size: 80%;">Boosting, a Bird'e Eye</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._DecisionTrees-bs045.html#___sec44" style="font-size: 80%;">Adaptive boosting: AdaBoost, Basic Algorithm</a></li>
|
||||
@@ -242,7 +247,7 @@ MathJax.Hub.Config({
|
||||
<center>[2] <b>Department of Physics and Astronomy and National Superconducting Cyclotron Laboratory, Michigan State University</b></center>
|
||||
<br>
|
||||
<p>
|
||||
<center><h4>Nov 4, 2019</h4></center> <!-- date -->
|
||||
<center><h4>Nov 5, 2019</h4></center> <!-- date -->
|
||||
<br>
|
||||
<p>
|
||||
|
||||
|
||||
@@ -148,7 +148,7 @@ MathJax.Hub.Config({
|
||||
<center>[2] <b>Department of Physics and Astronomy and National Superconducting Cyclotron Laboratory, Michigan State University</b></center>
|
||||
<br>
|
||||
<p> <br>
|
||||
<center><h4>Nov 4, 2019</h4></center> <!-- date -->
|
||||
<center><h4>Nov 5, 2019</h4></center> <!-- date -->
|
||||
<br>
|
||||
<p>
|
||||
|
||||
@@ -1439,7 +1439,7 @@ However, by aggregating many decision trees, using methods like bagging, random
|
||||
|
||||
|
||||
<section>
|
||||
<h2 id="___sec31">From a Single Tree to Many Trees, that is meet the Jungle of Methods </h2>
|
||||
<h2 id="___sec31">From a Single Tree to Many Trees, Meet the Jungle of Methods </h2>
|
||||
|
||||
<p>
|
||||
As stated above and seen in many of the examples discussed here about
|
||||
@@ -1452,7 +1452,7 @@ This leads us to a set of different methods that can combine different
|
||||
machine learning algorithms or just use one of them to construct forests and jungles of trees, homogeneous ones or heterogenous ones. These methods are recognized by different names which we will try to explain here. These are
|
||||
|
||||
<ol>
|
||||
<p><li> Votign classifiers</li>
|
||||
<p><li> Voting classifiers</li>
|
||||
<p><li> Bagging and Pasting</li>
|
||||
<p><li> Random forests</li>
|
||||
<p><li> Boosting methods</li>
|
||||
@@ -1754,30 +1754,111 @@ this setting.
|
||||
<section>
|
||||
<h2 id="___sec39">Random Forest Algorithm </h2>
|
||||
The algorithm described here can be applied to both classification and regression problems.
|
||||
|
||||
<p>
|
||||
We will grow of forest of say \( M \) trees.
|
||||
|
||||
<ol>
|
||||
<p><li> For \( m=1:M \) we</li>
|
||||
|
||||
<ul>
|
||||
|
||||
<p><li> Draw a bootstrap sample of from the training data organized in our \( \boldsymbol{X} \) matrix.</li>
|
||||
|
||||
<p><li> We grow then a random forest tree \( T_m \) based on the bootstrapped data by repeating the steps outlined till we reach the maximum node size is reached</li>
|
||||
|
||||
<ol>
|
||||
|
||||
<p><li> we select \( m \le p \) varibales at random from the \( p \) predictors/features</li>
|
||||
|
||||
<p><li> pick the best split point among the \( m \) features using either the CART algorithm or the ID3 for classification and create a new node</li>
|
||||
|
||||
<p><li> split the node into daughter nodes</li>
|
||||
</ol>
|
||||
<p>
|
||||
</ul>
|
||||
<p><li> Output then the ensemble of trees \( \{T_m\}_1^{M} \) and make predictions for either a regression type of problem or a classification type of problem.</li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
|
||||
<section>
|
||||
<h2 id="___sec40">A simple scikit-learn example </h2>
|
||||
<h2 id="___sec40">Random Forests Compared with other Methods on the Cancer Data </h2>
|
||||
<p>
|
||||
|
||||
<!-- code=python (!bc pycod) typeset with pygments style "perldoc" -->
|
||||
<div class="highlight" style="background: #eeeedd"><pre style="font-size: 80%; line-height: 125%"><span></span><span style="color: #8B008B; font-weight: bold">from</span> <span style="color: #008b45; text-decoration: underline">sklearn.ensemble</span> <span style="color: #8B008B; font-weight: bold">import</span> RandomForestClassifier
|
||||
<div class="highlight" style="background: #eeeedd"><pre style="font-size: 80%; line-height: 125%"><span></span><span style="color: #8B008B; font-weight: bold">import</span> <span style="color: #008b45; text-decoration: underline">matplotlib.pyplot</span> <span style="color: #8B008B; font-weight: bold">as</span> <span style="color: #008b45; text-decoration: underline">plt</span>
|
||||
<span style="color: #8B008B; font-weight: bold">import</span> <span style="color: #008b45; text-decoration: underline">numpy</span> <span style="color: #8B008B; font-weight: bold">as</span> <span style="color: #008b45; text-decoration: underline">np</span>
|
||||
<span style="color: #8B008B; font-weight: bold">from</span> <span style="color: #008b45; text-decoration: underline">sklearn.model_selection</span> <span style="color: #8B008B; font-weight: bold">import</span> train_test_split
|
||||
<span style="color: #8B008B; font-weight: bold">from</span> <span style="color: #008b45; text-decoration: underline">sklearn.datasets</span> <span style="color: #8B008B; font-weight: bold">import</span> load_breast_cancer
|
||||
<span style="color: #8B008B; font-weight: bold">from</span> <span style="color: #008b45; text-decoration: underline">sklearn.svm</span> <span style="color: #8B008B; font-weight: bold">import</span> SVC
|
||||
<span style="color: #8B008B; font-weight: bold">from</span> <span style="color: #008b45; text-decoration: underline">sklearn.linear_model</span> <span style="color: #8B008B; font-weight: bold">import</span> LogisticRegression
|
||||
<span style="color: #8B008B; font-weight: bold">from</span> <span style="color: #008b45; text-decoration: underline">sklearn.tree</span> <span style="color: #8B008B; font-weight: bold">import</span> DecisionTreeClassifier
|
||||
|
||||
<span style="color: #228B22"># Load the data</span>
|
||||
cancer = load_breast_cancer()
|
||||
|
||||
X_train, X_test, y_train, y_test = train_test_split(cancer.data,cancer.target,random_state=<span style="color: #B452CD">0</span>)
|
||||
<span style="color: #8B008B; font-weight: bold">print</span>(X_train.shape)
|
||||
<span style="color: #8B008B; font-weight: bold">print</span>(X_test.shape)
|
||||
<span style="color: #228B22"># Logistic Regression</span>
|
||||
logreg = LogisticRegression(solver=<span style="color: #CD5555">'lbfgs'</span>)
|
||||
logreg.fit(X_train, y_train)
|
||||
<span style="color: #8B008B; font-weight: bold">print</span>(<span style="color: #CD5555">"Test set accuracy with Logistic Regression: {:.2f}"</span>.format(logreg.score(X_test,y_test)))
|
||||
<span style="color: #228B22"># Support vector machine</span>
|
||||
svm = SVC(gamma=<span style="color: #CD5555">'auto'</span>, C=<span style="color: #B452CD">100</span>)
|
||||
svm.fit(X_train, y_train)
|
||||
<span style="color: #8B008B; font-weight: bold">print</span>(<span style="color: #CD5555">"Test set accuracy with SVM: {:.2f}"</span>.format(svm.score(X_test,y_test)))
|
||||
<span style="color: #228B22"># Decision Trees</span>
|
||||
deep_tree_clf = DecisionTreeClassifier(max_depth=<span style="color: #658b00">None</span>)
|
||||
deep_tree_clf.fit(X_train, y_train)
|
||||
<span style="color: #8B008B; font-weight: bold">print</span>(<span style="color: #CD5555">"Test set accuracy with Decision Trees: {:.2f}"</span>.format(deep_tree_clf.score(X_test,y_test)))
|
||||
<span style="color: #228B22">#now scale the data</span>
|
||||
<span style="color: #8B008B; font-weight: bold">from</span> <span style="color: #008b45; text-decoration: underline">sklearn.preprocessing</span> <span style="color: #8B008B; font-weight: bold">import</span> StandardScaler
|
||||
scaler = StandardScaler()
|
||||
scaler.fit(X_train)
|
||||
X_train_scaled = scaler.transform(X_train)
|
||||
X_test_scaled = scaler.transform(X_test)
|
||||
<span style="color: #228B22"># Logistic Regression</span>
|
||||
logreg.fit(X_train_scaled, y_train)
|
||||
<span style="color: #8B008B; font-weight: bold">print</span>(<span style="color: #CD5555">"Test set accuracy Logistic Regression with scaled data: {:.2f}"</span>.format(logreg.score(X_test_scaled,y_test)))
|
||||
<span style="color: #228B22"># Support Vector Machine</span>
|
||||
svm.fit(X_train_scaled, y_train)
|
||||
<span style="color: #8B008B; font-weight: bold">print</span>(<span style="color: #CD5555">"Test set accuracy SVM with scaled data: {:.2f}"</span>.format(logreg.score(X_test_scaled,y_test)))
|
||||
<span style="color: #228B22"># Decision Trees</span>
|
||||
deep_tree_clf.fit(X_train_scaled, y_train)
|
||||
<span style="color: #8B008B; font-weight: bold">print</span>(<span style="color: #CD5555">"Test set accuracy with Decision Trees and scaled data: {:.2f}"</span>.format(deep_tree_clf.score(X_test_scaled,y_test)))
|
||||
|
||||
|
||||
<span style="color: #8B008B; font-weight: bold">from</span> <span style="color: #008b45; text-decoration: underline">sklearn.ensemble</span> <span style="color: #8B008B; font-weight: bold">import</span> RandomForestClassifier
|
||||
<span style="color: #8B008B; font-weight: bold">from</span> <span style="color: #008b45; text-decoration: underline">sklearn.preprocessing</span> <span style="color: #8B008B; font-weight: bold">import</span> LabelEncoder
|
||||
<span style="color: #8B008B; font-weight: bold">from</span> <span style="color: #008b45; text-decoration: underline">sklearn.model_selection</span> <span style="color: #8B008B; font-weight: bold">import</span> cross_validate
|
||||
<span style="color: #228B22"># Data set not specificied</span>
|
||||
X = dataset.XXX
|
||||
Y = dataset.YYY
|
||||
<span style="color: #228B22">#Instantiate the model with 100 trees and entropy as splitting criteria</span>
|
||||
Random_Forest_model = RandomForestClassifier(n_estimators=<span style="color: #B452CD">100</span>,criterion=<span style="color: #CD5555">"entropy"</span>)
|
||||
<span style="color: #228B22">#Instantiate the model with 500 trees and entropy as splitting criteria</span>
|
||||
Random_Forest_model = RandomForestClassifier(n_estimators=<span style="color: #B452CD">500</span>,criterion=<span style="color: #CD5555">"entropy"</span>)
|
||||
Random_Forest_model.fit(X_train_scaled, y_train)
|
||||
<span style="color: #228B22">#Cross validation</span>
|
||||
accuracy = cross_validate(Random_Forest_model,X,Y,cv=<span style="color: #B452CD">10</span>)[<span style="color: #CD5555">'test_score'</span>]
|
||||
accuracy = cross_validate(Random_Forest_model,X_test_scaled,y_test,cv=<span style="color: #B452CD">10</span>)[<span style="color: #CD5555">'test_score'</span>]
|
||||
<span style="color: #8B008B; font-weight: bold">print</span>(accuracy)
|
||||
<span style="color: #8B008B; font-weight: bold">print</span>(<span style="color: #CD5555">"Test set accuracy with Random Forests and scaled data: {:.2f}"</span>.format(Random_Forest_model.score(X_test_scaled,y_test)))
|
||||
|
||||
|
||||
<span style="color: #8B008B; font-weight: bold">import</span> <span style="color: #008b45; text-decoration: underline">scikitplot</span> <span style="color: #8B008B; font-weight: bold">as</span> <span style="color: #008b45; text-decoration: underline">skplt</span>
|
||||
y_pred = Random_Forest_model.predict(X_test_scaled)
|
||||
skplt.metrics.plot_confusion_matrix(y_test, y_pred, normalize=<span style="color: #658b00">True</span>)
|
||||
<span style="color: #228B22">#<matplotlib.axes._subplots.AxesSubplot object at 0x7fe967d64490></span>
|
||||
plt.show()
|
||||
y_probas = Random_Forest_model.predict_proba(X_test_scaled)
|
||||
skplt.metrics.plot_roc(y_test, y_probas)
|
||||
plt.show()
|
||||
skplt.metrics.plot_cumulative_gain(y_test, y_probas)
|
||||
plt.show()
|
||||
</pre></div>
|
||||
</section>
|
||||
|
||||
|
||||
<section>
|
||||
<h2 id="___sec41">Then random forests </h2>
|
||||
<h2 id="___sec41">Compare Bagging on Trees with Random Forests </h2>
|
||||
<p>
|
||||
|
||||
<!-- code=python (!bc pycod) typeset with pygments style "perldoc" -->
|
||||
|
||||
@@ -105,8 +105,7 @@ div { text-align: justify; text-justify: inter-word; }
|
||||
('Final regressor code', 2, None, '___sec28'),
|
||||
('Pros and cons of trees, pros', 2, None, '___sec29'),
|
||||
('Disadvantages', 2, None, '___sec30'),
|
||||
('From a Single Tree to Many Trees, that is meet the Jungle of '
|
||||
'Methods',
|
||||
('From a Single Tree to Many Trees, Meet the Jungle of Methods',
|
||||
2,
|
||||
None,
|
||||
'___sec31'),
|
||||
@@ -121,8 +120,14 @@ div { text-align: justify; text-justify: inter-word; }
|
||||
('Now Bagging', 2, None, '___sec37'),
|
||||
('Random forests', 2, None, '___sec38'),
|
||||
('Random Forest Algorithm', 2, None, '___sec39'),
|
||||
('A simple scikit-learn example', 2, None, '___sec40'),
|
||||
('Then random forests', 2, None, '___sec41'),
|
||||
('Random Forests Compared with other Methods on the Cancer Data',
|
||||
2,
|
||||
None,
|
||||
'___sec40'),
|
||||
('Compare Bagging on Trees with Random Forests',
|
||||
2,
|
||||
None,
|
||||
'___sec41'),
|
||||
('Feature Importance', 2, None, '___sec42'),
|
||||
("Boosting, a Bird'e Eye", 2, None, '___sec43'),
|
||||
('Adaptive boosting: AdaBoost, Basic Algorithm',
|
||||
@@ -180,7 +185,7 @@ MathJax.Hub.Config({
|
||||
<center>[2] <b>Department of Physics and Astronomy and National Superconducting Cyclotron Laboratory, Michigan State University</b></center>
|
||||
<br>
|
||||
<p>
|
||||
<center><h4>Nov 4, 2019</h4></center> <!-- date -->
|
||||
<center><h4>Nov 5, 2019</h4></center> <!-- date -->
|
||||
<br>
|
||||
<p>
|
||||
<!-- !split --><br><br><br><br><br><br><br><br><br><br>
|
||||
@@ -1431,7 +1436,7 @@ However, by aggregating many decision trees, using methods like bagging, random
|
||||
<p>
|
||||
<!-- !split --><br><br><br><br><br><br><br><br><br><br>
|
||||
|
||||
<h2 id="___sec31">From a Single Tree to Many Trees, that is meet the Jungle of Methods </h2>
|
||||
<h2 id="___sec31">From a Single Tree to Many Trees, Meet the Jungle of Methods </h2>
|
||||
|
||||
<p>
|
||||
As stated above and seen in many of the examples discussed here about
|
||||
@@ -1444,7 +1449,7 @@ This leads us to a set of different methods that can combine different
|
||||
machine learning algorithms or just use one of them to construct forests and jungles of trees, homogeneous ones or heterogenous ones. These methods are recognized by different names which we will try to explain here. These are
|
||||
|
||||
<ol>
|
||||
<li> Votign classifiers</li>
|
||||
<li> Voting classifiers</li>
|
||||
<li> Bagging and Pasting</li>
|
||||
<li> Random forests</li>
|
||||
<li> Boosting methods</li>
|
||||
@@ -1741,27 +1746,103 @@ this setting.
|
||||
The algorithm described here can be applied to both classification and regression problems.
|
||||
|
||||
<p>
|
||||
We will grow of forest of say \( M \) trees.
|
||||
|
||||
<ol>
|
||||
<li> For \( m=1:M \) we</li>
|
||||
|
||||
<ul>
|
||||
<li> Draw a bootstrap sample of from the training data organized in our \( \boldsymbol{X} \) matrix.</li>
|
||||
<li> We grow then a random forest tree \( T_m \) based on the bootstrapped data by repeating the steps outlined till we reach the maximum node size is reached</li>
|
||||
|
||||
<ol>
|
||||
<li> we select \( m \le p \) varibales at random from the \( p \) predictors/features</li>
|
||||
<li> pick the best split point among the \( m \) features using either the CART algorithm or the ID3 for classification and create a new node</li>
|
||||
<li> split the node into daughter nodes</li>
|
||||
</ol>
|
||||
|
||||
</ul>
|
||||
|
||||
<li> Output then the ensemble of trees \( \{T_m\}_1^{M} \) and make predictions for either a regression type of problem or a classification type of problem.</li>
|
||||
</ol>
|
||||
|
||||
<!-- !split --><br><br><br><br><br><br><br><br><br><br>
|
||||
|
||||
<h2 id="___sec40">A simple scikit-learn example </h2>
|
||||
<h2 id="___sec40">Random Forests Compared with other Methods on the Cancer Data </h2>
|
||||
<p>
|
||||
|
||||
<!-- code=python (!bc pycod) typeset with pygments style "perldoc" -->
|
||||
<div class="highlight" style="background: #eeeedd"><pre style="line-height: 125%"><span></span><span style="color: #8B008B; font-weight: bold">from</span> <span style="color: #008b45; text-decoration: underline">sklearn.ensemble</span> <span style="color: #8B008B; font-weight: bold">import</span> RandomForestClassifier
|
||||
<div class="highlight" style="background: #eeeedd"><pre style="line-height: 125%"><span></span><span style="color: #8B008B; font-weight: bold">import</span> <span style="color: #008b45; text-decoration: underline">matplotlib.pyplot</span> <span style="color: #8B008B; font-weight: bold">as</span> <span style="color: #008b45; text-decoration: underline">plt</span>
|
||||
<span style="color: #8B008B; font-weight: bold">import</span> <span style="color: #008b45; text-decoration: underline">numpy</span> <span style="color: #8B008B; font-weight: bold">as</span> <span style="color: #008b45; text-decoration: underline">np</span>
|
||||
<span style="color: #8B008B; font-weight: bold">from</span> <span style="color: #008b45; text-decoration: underline">sklearn.model_selection</span> <span style="color: #8B008B; font-weight: bold">import</span> train_test_split
|
||||
<span style="color: #8B008B; font-weight: bold">from</span> <span style="color: #008b45; text-decoration: underline">sklearn.datasets</span> <span style="color: #8B008B; font-weight: bold">import</span> load_breast_cancer
|
||||
<span style="color: #8B008B; font-weight: bold">from</span> <span style="color: #008b45; text-decoration: underline">sklearn.svm</span> <span style="color: #8B008B; font-weight: bold">import</span> SVC
|
||||
<span style="color: #8B008B; font-weight: bold">from</span> <span style="color: #008b45; text-decoration: underline">sklearn.linear_model</span> <span style="color: #8B008B; font-weight: bold">import</span> LogisticRegression
|
||||
<span style="color: #8B008B; font-weight: bold">from</span> <span style="color: #008b45; text-decoration: underline">sklearn.tree</span> <span style="color: #8B008B; font-weight: bold">import</span> DecisionTreeClassifier
|
||||
|
||||
<span style="color: #228B22"># Load the data</span>
|
||||
cancer = load_breast_cancer()
|
||||
|
||||
X_train, X_test, y_train, y_test = train_test_split(cancer.data,cancer.target,random_state=<span style="color: #B452CD">0</span>)
|
||||
<span style="color: #8B008B; font-weight: bold">print</span>(X_train.shape)
|
||||
<span style="color: #8B008B; font-weight: bold">print</span>(X_test.shape)
|
||||
<span style="color: #228B22"># Logistic Regression</span>
|
||||
logreg = LogisticRegression(solver=<span style="color: #CD5555">'lbfgs'</span>)
|
||||
logreg.fit(X_train, y_train)
|
||||
<span style="color: #8B008B; font-weight: bold">print</span>(<span style="color: #CD5555">"Test set accuracy with Logistic Regression: {:.2f}"</span>.format(logreg.score(X_test,y_test)))
|
||||
<span style="color: #228B22"># Support vector machine</span>
|
||||
svm = SVC(gamma=<span style="color: #CD5555">'auto'</span>, C=<span style="color: #B452CD">100</span>)
|
||||
svm.fit(X_train, y_train)
|
||||
<span style="color: #8B008B; font-weight: bold">print</span>(<span style="color: #CD5555">"Test set accuracy with SVM: {:.2f}"</span>.format(svm.score(X_test,y_test)))
|
||||
<span style="color: #228B22"># Decision Trees</span>
|
||||
deep_tree_clf = DecisionTreeClassifier(max_depth=<span style="color: #658b00">None</span>)
|
||||
deep_tree_clf.fit(X_train, y_train)
|
||||
<span style="color: #8B008B; font-weight: bold">print</span>(<span style="color: #CD5555">"Test set accuracy with Decision Trees: {:.2f}"</span>.format(deep_tree_clf.score(X_test,y_test)))
|
||||
<span style="color: #228B22">#now scale the data</span>
|
||||
<span style="color: #8B008B; font-weight: bold">from</span> <span style="color: #008b45; text-decoration: underline">sklearn.preprocessing</span> <span style="color: #8B008B; font-weight: bold">import</span> StandardScaler
|
||||
scaler = StandardScaler()
|
||||
scaler.fit(X_train)
|
||||
X_train_scaled = scaler.transform(X_train)
|
||||
X_test_scaled = scaler.transform(X_test)
|
||||
<span style="color: #228B22"># Logistic Regression</span>
|
||||
logreg.fit(X_train_scaled, y_train)
|
||||
<span style="color: #8B008B; font-weight: bold">print</span>(<span style="color: #CD5555">"Test set accuracy Logistic Regression with scaled data: {:.2f}"</span>.format(logreg.score(X_test_scaled,y_test)))
|
||||
<span style="color: #228B22"># Support Vector Machine</span>
|
||||
svm.fit(X_train_scaled, y_train)
|
||||
<span style="color: #8B008B; font-weight: bold">print</span>(<span style="color: #CD5555">"Test set accuracy SVM with scaled data: {:.2f}"</span>.format(logreg.score(X_test_scaled,y_test)))
|
||||
<span style="color: #228B22"># Decision Trees</span>
|
||||
deep_tree_clf.fit(X_train_scaled, y_train)
|
||||
<span style="color: #8B008B; font-weight: bold">print</span>(<span style="color: #CD5555">"Test set accuracy with Decision Trees and scaled data: {:.2f}"</span>.format(deep_tree_clf.score(X_test_scaled,y_test)))
|
||||
|
||||
|
||||
<span style="color: #8B008B; font-weight: bold">from</span> <span style="color: #008b45; text-decoration: underline">sklearn.ensemble</span> <span style="color: #8B008B; font-weight: bold">import</span> RandomForestClassifier
|
||||
<span style="color: #8B008B; font-weight: bold">from</span> <span style="color: #008b45; text-decoration: underline">sklearn.preprocessing</span> <span style="color: #8B008B; font-weight: bold">import</span> LabelEncoder
|
||||
<span style="color: #8B008B; font-weight: bold">from</span> <span style="color: #008b45; text-decoration: underline">sklearn.model_selection</span> <span style="color: #8B008B; font-weight: bold">import</span> cross_validate
|
||||
<span style="color: #228B22"># Data set not specificied</span>
|
||||
X = dataset.XXX
|
||||
Y = dataset.YYY
|
||||
<span style="color: #228B22">#Instantiate the model with 100 trees and entropy as splitting criteria</span>
|
||||
Random_Forest_model = RandomForestClassifier(n_estimators=<span style="color: #B452CD">100</span>,criterion=<span style="color: #CD5555">"entropy"</span>)
|
||||
<span style="color: #228B22">#Instantiate the model with 500 trees and entropy as splitting criteria</span>
|
||||
Random_Forest_model = RandomForestClassifier(n_estimators=<span style="color: #B452CD">500</span>,criterion=<span style="color: #CD5555">"entropy"</span>)
|
||||
Random_Forest_model.fit(X_train_scaled, y_train)
|
||||
<span style="color: #228B22">#Cross validation</span>
|
||||
accuracy = cross_validate(Random_Forest_model,X,Y,cv=<span style="color: #B452CD">10</span>)[<span style="color: #CD5555">'test_score'</span>]
|
||||
accuracy = cross_validate(Random_Forest_model,X_test_scaled,y_test,cv=<span style="color: #B452CD">10</span>)[<span style="color: #CD5555">'test_score'</span>]
|
||||
<span style="color: #8B008B; font-weight: bold">print</span>(accuracy)
|
||||
<span style="color: #8B008B; font-weight: bold">print</span>(<span style="color: #CD5555">"Test set accuracy with Random Forests and scaled data: {:.2f}"</span>.format(Random_Forest_model.score(X_test_scaled,y_test)))
|
||||
|
||||
|
||||
<span style="color: #8B008B; font-weight: bold">import</span> <span style="color: #008b45; text-decoration: underline">scikitplot</span> <span style="color: #8B008B; font-weight: bold">as</span> <span style="color: #008b45; text-decoration: underline">skplt</span>
|
||||
y_pred = Random_Forest_model.predict(X_test_scaled)
|
||||
skplt.metrics.plot_confusion_matrix(y_test, y_pred, normalize=<span style="color: #658b00">True</span>)
|
||||
<span style="color: #228B22">#<matplotlib.axes._subplots.AxesSubplot object at 0x7fe967d64490></span>
|
||||
plt.show()
|
||||
y_probas = Random_Forest_model.predict_proba(X_test_scaled)
|
||||
skplt.metrics.plot_roc(y_test, y_probas)
|
||||
plt.show()
|
||||
skplt.metrics.plot_cumulative_gain(y_test, y_probas)
|
||||
plt.show()
|
||||
</pre></div>
|
||||
<p>
|
||||
<!-- !split --><br><br><br><br><br><br><br><br><br><br>
|
||||
|
||||
<h2 id="___sec41">Then random forests </h2>
|
||||
<h2 id="___sec41">Compare Bagging on Trees with Random Forests </h2>
|
||||
<p>
|
||||
|
||||
<!-- code=python (!bc pycod) typeset with pygments style "perldoc" -->
|
||||
|
||||
@@ -110,8 +110,7 @@ div { text-align: justify; text-justify: inter-word; }
|
||||
('Final regressor code', 2, None, '___sec28'),
|
||||
('Pros and cons of trees, pros', 2, None, '___sec29'),
|
||||
('Disadvantages', 2, None, '___sec30'),
|
||||
('From a Single Tree to Many Trees, that is meet the Jungle of '
|
||||
'Methods',
|
||||
('From a Single Tree to Many Trees, Meet the Jungle of Methods',
|
||||
2,
|
||||
None,
|
||||
'___sec31'),
|
||||
@@ -126,8 +125,14 @@ div { text-align: justify; text-justify: inter-word; }
|
||||
('Now Bagging', 2, None, '___sec37'),
|
||||
('Random forests', 2, None, '___sec38'),
|
||||
('Random Forest Algorithm', 2, None, '___sec39'),
|
||||
('A simple scikit-learn example', 2, None, '___sec40'),
|
||||
('Then random forests', 2, None, '___sec41'),
|
||||
('Random Forests Compared with other Methods on the Cancer Data',
|
||||
2,
|
||||
None,
|
||||
'___sec40'),
|
||||
('Compare Bagging on Trees with Random Forests',
|
||||
2,
|
||||
None,
|
||||
'___sec41'),
|
||||
('Feature Importance', 2, None, '___sec42'),
|
||||
("Boosting, a Bird'e Eye", 2, None, '___sec43'),
|
||||
('Adaptive boosting: AdaBoost, Basic Algorithm',
|
||||
@@ -185,7 +190,7 @@ MathJax.Hub.Config({
|
||||
<center>[2] <b>Department of Physics and Astronomy and National Superconducting Cyclotron Laboratory, Michigan State University</b></center>
|
||||
<br>
|
||||
<p>
|
||||
<center><h4>Nov 4, 2019</h4></center> <!-- date -->
|
||||
<center><h4>Nov 5, 2019</h4></center> <!-- date -->
|
||||
<br>
|
||||
<p>
|
||||
<!-- !split --><br><br><br><br><br><br><br><br><br><br>
|
||||
@@ -1436,7 +1441,7 @@ However, by aggregating many decision trees, using methods like bagging, random
|
||||
<p>
|
||||
<!-- !split --><br><br><br><br><br><br><br><br><br><br>
|
||||
|
||||
<h2 id="___sec31">From a Single Tree to Many Trees, that is meet the Jungle of Methods </h2>
|
||||
<h2 id="___sec31">From a Single Tree to Many Trees, Meet the Jungle of Methods </h2>
|
||||
|
||||
<p>
|
||||
As stated above and seen in many of the examples discussed here about
|
||||
@@ -1449,7 +1454,7 @@ This leads us to a set of different methods that can combine different
|
||||
machine learning algorithms or just use one of them to construct forests and jungles of trees, homogeneous ones or heterogenous ones. These methods are recognized by different names which we will try to explain here. These are
|
||||
|
||||
<ol>
|
||||
<li> Votign classifiers</li>
|
||||
<li> Voting classifiers</li>
|
||||
<li> Bagging and Pasting</li>
|
||||
<li> Random forests</li>
|
||||
<li> Boosting methods</li>
|
||||
@@ -1746,27 +1751,103 @@ this setting.
|
||||
The algorithm described here can be applied to both classification and regression problems.
|
||||
|
||||
<p>
|
||||
We will grow of forest of say \( M \) trees.
|
||||
|
||||
<ol>
|
||||
<li> For \( m=1:M \) we</li>
|
||||
|
||||
<ul>
|
||||
<li> Draw a bootstrap sample of from the training data organized in our \( \boldsymbol{X} \) matrix.</li>
|
||||
<li> We grow then a random forest tree \( T_m \) based on the bootstrapped data by repeating the steps outlined till we reach the maximum node size is reached</li>
|
||||
|
||||
<ol>
|
||||
<li> we select \( m \le p \) varibales at random from the \( p \) predictors/features</li>
|
||||
<li> pick the best split point among the \( m \) features using either the CART algorithm or the ID3 for classification and create a new node</li>
|
||||
<li> split the node into daughter nodes</li>
|
||||
</ol>
|
||||
|
||||
</ul>
|
||||
|
||||
<li> Output then the ensemble of trees \( \{T_m\}_1^{M} \) and make predictions for either a regression type of problem or a classification type of problem.</li>
|
||||
</ol>
|
||||
|
||||
<!-- !split --><br><br><br><br><br><br><br><br><br><br>
|
||||
|
||||
<h2 id="___sec40">A simple scikit-learn example </h2>
|
||||
<h2 id="___sec40">Random Forests Compared with other Methods on the Cancer Data </h2>
|
||||
<p>
|
||||
|
||||
<!-- code=python (!bc pycod) typeset with pygments style "default" -->
|
||||
<div class="highlight" style="background: #f8f8f8"><pre style="line-height: 125%"><span></span><span style="color: #008000; font-weight: bold">from</span> <span style="color: #0000FF; font-weight: bold">sklearn.ensemble</span> <span style="color: #008000; font-weight: bold">import</span> RandomForestClassifier
|
||||
<div class="highlight" style="background: #f8f8f8"><pre style="line-height: 125%"><span></span><span style="color: #008000; font-weight: bold">import</span> <span style="color: #0000FF; font-weight: bold">matplotlib.pyplot</span> <span style="color: #008000; font-weight: bold">as</span> <span style="color: #0000FF; font-weight: bold">plt</span>
|
||||
<span style="color: #008000; font-weight: bold">import</span> <span style="color: #0000FF; font-weight: bold">numpy</span> <span style="color: #008000; font-weight: bold">as</span> <span style="color: #0000FF; font-weight: bold">np</span>
|
||||
<span style="color: #008000; font-weight: bold">from</span> <span style="color: #0000FF; font-weight: bold">sklearn.model_selection</span> <span style="color: #008000; font-weight: bold">import</span> train_test_split
|
||||
<span style="color: #008000; font-weight: bold">from</span> <span style="color: #0000FF; font-weight: bold">sklearn.datasets</span> <span style="color: #008000; font-weight: bold">import</span> load_breast_cancer
|
||||
<span style="color: #008000; font-weight: bold">from</span> <span style="color: #0000FF; font-weight: bold">sklearn.svm</span> <span style="color: #008000; font-weight: bold">import</span> SVC
|
||||
<span style="color: #008000; font-weight: bold">from</span> <span style="color: #0000FF; font-weight: bold">sklearn.linear_model</span> <span style="color: #008000; font-weight: bold">import</span> LogisticRegression
|
||||
<span style="color: #008000; font-weight: bold">from</span> <span style="color: #0000FF; font-weight: bold">sklearn.tree</span> <span style="color: #008000; font-weight: bold">import</span> DecisionTreeClassifier
|
||||
|
||||
<span style="color: #408080; font-style: italic"># Load the data</span>
|
||||
cancer <span style="color: #666666">=</span> load_breast_cancer()
|
||||
|
||||
X_train, X_test, y_train, y_test <span style="color: #666666">=</span> train_test_split(cancer<span style="color: #666666">.</span>data,cancer<span style="color: #666666">.</span>target,random_state<span style="color: #666666">=0</span>)
|
||||
<span style="color: #008000; font-weight: bold">print</span>(X_train<span style="color: #666666">.</span>shape)
|
||||
<span style="color: #008000; font-weight: bold">print</span>(X_test<span style="color: #666666">.</span>shape)
|
||||
<span style="color: #408080; font-style: italic"># Logistic Regression</span>
|
||||
logreg <span style="color: #666666">=</span> LogisticRegression(solver<span style="color: #666666">=</span><span style="color: #BA2121">'lbfgs'</span>)
|
||||
logreg<span style="color: #666666">.</span>fit(X_train, y_train)
|
||||
<span style="color: #008000; font-weight: bold">print</span>(<span style="color: #BA2121">"Test set accuracy with Logistic Regression: {:.2f}"</span><span style="color: #666666">.</span>format(logreg<span style="color: #666666">.</span>score(X_test,y_test)))
|
||||
<span style="color: #408080; font-style: italic"># Support vector machine</span>
|
||||
svm <span style="color: #666666">=</span> SVC(gamma<span style="color: #666666">=</span><span style="color: #BA2121">'auto'</span>, C<span style="color: #666666">=100</span>)
|
||||
svm<span style="color: #666666">.</span>fit(X_train, y_train)
|
||||
<span style="color: #008000; font-weight: bold">print</span>(<span style="color: #BA2121">"Test set accuracy with SVM: {:.2f}"</span><span style="color: #666666">.</span>format(svm<span style="color: #666666">.</span>score(X_test,y_test)))
|
||||
<span style="color: #408080; font-style: italic"># Decision Trees</span>
|
||||
deep_tree_clf <span style="color: #666666">=</span> DecisionTreeClassifier(max_depth<span style="color: #666666">=</span><span style="color: #008000">None</span>)
|
||||
deep_tree_clf<span style="color: #666666">.</span>fit(X_train, y_train)
|
||||
<span style="color: #008000; font-weight: bold">print</span>(<span style="color: #BA2121">"Test set accuracy with Decision Trees: {:.2f}"</span><span style="color: #666666">.</span>format(deep_tree_clf<span style="color: #666666">.</span>score(X_test,y_test)))
|
||||
<span style="color: #408080; font-style: italic">#now scale the data</span>
|
||||
<span style="color: #008000; font-weight: bold">from</span> <span style="color: #0000FF; font-weight: bold">sklearn.preprocessing</span> <span style="color: #008000; font-weight: bold">import</span> StandardScaler
|
||||
scaler <span style="color: #666666">=</span> StandardScaler()
|
||||
scaler<span style="color: #666666">.</span>fit(X_train)
|
||||
X_train_scaled <span style="color: #666666">=</span> scaler<span style="color: #666666">.</span>transform(X_train)
|
||||
X_test_scaled <span style="color: #666666">=</span> scaler<span style="color: #666666">.</span>transform(X_test)
|
||||
<span style="color: #408080; font-style: italic"># Logistic Regression</span>
|
||||
logreg<span style="color: #666666">.</span>fit(X_train_scaled, y_train)
|
||||
<span style="color: #008000; font-weight: bold">print</span>(<span style="color: #BA2121">"Test set accuracy Logistic Regression with scaled data: {:.2f}"</span><span style="color: #666666">.</span>format(logreg<span style="color: #666666">.</span>score(X_test_scaled,y_test)))
|
||||
<span style="color: #408080; font-style: italic"># Support Vector Machine</span>
|
||||
svm<span style="color: #666666">.</span>fit(X_train_scaled, y_train)
|
||||
<span style="color: #008000; font-weight: bold">print</span>(<span style="color: #BA2121">"Test set accuracy SVM with scaled data: {:.2f}"</span><span style="color: #666666">.</span>format(logreg<span style="color: #666666">.</span>score(X_test_scaled,y_test)))
|
||||
<span style="color: #408080; font-style: italic"># Decision Trees</span>
|
||||
deep_tree_clf<span style="color: #666666">.</span>fit(X_train_scaled, y_train)
|
||||
<span style="color: #008000; font-weight: bold">print</span>(<span style="color: #BA2121">"Test set accuracy with Decision Trees and scaled data: {:.2f}"</span><span style="color: #666666">.</span>format(deep_tree_clf<span style="color: #666666">.</span>score(X_test_scaled,y_test)))
|
||||
|
||||
|
||||
<span style="color: #008000; font-weight: bold">from</span> <span style="color: #0000FF; font-weight: bold">sklearn.ensemble</span> <span style="color: #008000; font-weight: bold">import</span> RandomForestClassifier
|
||||
<span style="color: #008000; font-weight: bold">from</span> <span style="color: #0000FF; font-weight: bold">sklearn.preprocessing</span> <span style="color: #008000; font-weight: bold">import</span> LabelEncoder
|
||||
<span style="color: #008000; font-weight: bold">from</span> <span style="color: #0000FF; font-weight: bold">sklearn.model_selection</span> <span style="color: #008000; font-weight: bold">import</span> cross_validate
|
||||
<span style="color: #408080; font-style: italic"># Data set not specificied</span>
|
||||
X <span style="color: #666666">=</span> dataset<span style="color: #666666">.</span>XXX
|
||||
Y <span style="color: #666666">=</span> dataset<span style="color: #666666">.</span>YYY
|
||||
<span style="color: #408080; font-style: italic">#Instantiate the model with 100 trees and entropy as splitting criteria</span>
|
||||
Random_Forest_model <span style="color: #666666">=</span> RandomForestClassifier(n_estimators<span style="color: #666666">=100</span>,criterion<span style="color: #666666">=</span><span style="color: #BA2121">"entropy"</span>)
|
||||
<span style="color: #408080; font-style: italic">#Instantiate the model with 500 trees and entropy as splitting criteria</span>
|
||||
Random_Forest_model <span style="color: #666666">=</span> RandomForestClassifier(n_estimators<span style="color: #666666">=500</span>,criterion<span style="color: #666666">=</span><span style="color: #BA2121">"entropy"</span>)
|
||||
Random_Forest_model<span style="color: #666666">.</span>fit(X_train_scaled, y_train)
|
||||
<span style="color: #408080; font-style: italic">#Cross validation</span>
|
||||
accuracy <span style="color: #666666">=</span> cross_validate(Random_Forest_model,X,Y,cv<span style="color: #666666">=10</span>)[<span style="color: #BA2121">'test_score'</span>]
|
||||
accuracy <span style="color: #666666">=</span> cross_validate(Random_Forest_model,X_test_scaled,y_test,cv<span style="color: #666666">=10</span>)[<span style="color: #BA2121">'test_score'</span>]
|
||||
<span style="color: #008000; font-weight: bold">print</span>(accuracy)
|
||||
<span style="color: #008000; font-weight: bold">print</span>(<span style="color: #BA2121">"Test set accuracy with Random Forests and scaled data: {:.2f}"</span><span style="color: #666666">.</span>format(Random_Forest_model<span style="color: #666666">.</span>score(X_test_scaled,y_test)))
|
||||
|
||||
|
||||
<span style="color: #008000; font-weight: bold">import</span> <span style="color: #0000FF; font-weight: bold">scikitplot</span> <span style="color: #008000; font-weight: bold">as</span> <span style="color: #0000FF; font-weight: bold">skplt</span>
|
||||
y_pred <span style="color: #666666">=</span> Random_Forest_model<span style="color: #666666">.</span>predict(X_test_scaled)
|
||||
skplt<span style="color: #666666">.</span>metrics<span style="color: #666666">.</span>plot_confusion_matrix(y_test, y_pred, normalize<span style="color: #666666">=</span><span style="color: #008000">True</span>)
|
||||
<span style="color: #408080; font-style: italic">#<matplotlib.axes._subplots.AxesSubplot object at 0x7fe967d64490></span>
|
||||
plt<span style="color: #666666">.</span>show()
|
||||
y_probas <span style="color: #666666">=</span> Random_Forest_model<span style="color: #666666">.</span>predict_proba(X_test_scaled)
|
||||
skplt<span style="color: #666666">.</span>metrics<span style="color: #666666">.</span>plot_roc(y_test, y_probas)
|
||||
plt<span style="color: #666666">.</span>show()
|
||||
skplt<span style="color: #666666">.</span>metrics<span style="color: #666666">.</span>plot_cumulative_gain(y_test, y_probas)
|
||||
plt<span style="color: #666666">.</span>show()
|
||||
</pre></div>
|
||||
<p>
|
||||
<!-- !split --><br><br><br><br><br><br><br><br><br><br>
|
||||
|
||||
<h2 id="___sec41">Then random forests </h2>
|
||||
<h2 id="___sec41">Compare Bagging on Trees with Random Forests </h2>
|
||||
<p>
|
||||
|
||||
<!-- code=python (!bc pycod) typeset with pygments style "default" -->
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
"<!-- Author: --> \n",
|
||||
"**Morten Hjorth-Jensen**, Department of Physics, University of Oslo and Department of Physics and Astronomy and National Superconducting Cyclotron Laboratory, Michigan State University\n",
|
||||
"\n",
|
||||
"Date: **Nov 4, 2019**\n",
|
||||
"Date: **Nov 5, 2019**\n",
|
||||
"\n",
|
||||
"Copyright 1999-2019, Morten Hjorth-Jensen. Released under CC Attribution-NonCommercial 4.0 license\n",
|
||||
"\n",
|
||||
@@ -1397,7 +1397,7 @@
|
||||
"However, by aggregating many decision trees, using methods like bagging, random forests, and boosting, the predictive performance of trees can be substantially improved. \n",
|
||||
"\n",
|
||||
"\n",
|
||||
"## From a Single Tree to Many Trees, that is meet the Jungle of Methods\n",
|
||||
"## From a Single Tree to Many Trees, Meet the Jungle of Methods\n",
|
||||
"\n",
|
||||
"As stated above and seen in many of the examples discussed here about\n",
|
||||
"a single decision tree, we often end up overfitting our training\n",
|
||||
@@ -1406,7 +1406,7 @@
|
||||
"\n",
|
||||
"This leads us to a set of different methods that can combine different\n",
|
||||
"machine learning algorithms or just use one of them to construct forests and jungles of trees, homogeneous ones or heterogenous ones. These methods are recognized by different names which we will try to explain here. These are\n",
|
||||
"1. Votign classifiers\n",
|
||||
"1. Voting classifiers\n",
|
||||
"\n",
|
||||
"2. Bagging and Pasting\n",
|
||||
"\n",
|
||||
@@ -1766,7 +1766,24 @@
|
||||
"## Random Forest Algorithm\n",
|
||||
"The algorithm described here can be applied to both classification and regression problems.\n",
|
||||
"\n",
|
||||
"## A simple scikit-learn example"
|
||||
"We will grow of forest of say $M$ trees.\n",
|
||||
"1. For $m=1:M$ we\n",
|
||||
"\n",
|
||||
" * Draw a bootstrap sample of from the training data organized in our $\\boldsymbol{X}$ matrix.\n",
|
||||
"\n",
|
||||
" * We grow then a random forest tree $T_m$ based on the bootstrapped data by repeating the steps outlined till we reach the maximum node size is reached\n",
|
||||
"\n",
|
||||
"1. we select $m \\le p$ varibales at random from the $p$ predictors/features\n",
|
||||
"\n",
|
||||
"2. pick the best split point among the $m$ features using either the CART algorithm or the ID3 for classification and create a new node\n",
|
||||
"\n",
|
||||
"3. split the node into daughter nodes\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"4. Output then the ensemble of trees $\\{T_m\\}_1^{M}$ and make predictions for either a regression type of problem or a classification type of problem. \n",
|
||||
"\n",
|
||||
"## Random Forests Compared with other Methods on the Cancer Data"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -1777,23 +1794,79 @@
|
||||
},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"import matplotlib.pyplot as plt\n",
|
||||
"import numpy as np\n",
|
||||
"from sklearn.model_selection import train_test_split \n",
|
||||
"from sklearn.datasets import load_breast_cancer\n",
|
||||
"from sklearn.svm import SVC\n",
|
||||
"from sklearn.linear_model import LogisticRegression\n",
|
||||
"from sklearn.tree import DecisionTreeClassifier\n",
|
||||
"\n",
|
||||
"# Load the data\n",
|
||||
"cancer = load_breast_cancer()\n",
|
||||
"\n",
|
||||
"X_train, X_test, y_train, y_test = train_test_split(cancer.data,cancer.target,random_state=0)\n",
|
||||
"print(X_train.shape)\n",
|
||||
"print(X_test.shape)\n",
|
||||
"# Logistic Regression\n",
|
||||
"logreg = LogisticRegression(solver='lbfgs')\n",
|
||||
"logreg.fit(X_train, y_train)\n",
|
||||
"print(\"Test set accuracy with Logistic Regression: {:.2f}\".format(logreg.score(X_test,y_test)))\n",
|
||||
"# Support vector machine\n",
|
||||
"svm = SVC(gamma='auto', C=100)\n",
|
||||
"svm.fit(X_train, y_train)\n",
|
||||
"print(\"Test set accuracy with SVM: {:.2f}\".format(svm.score(X_test,y_test)))\n",
|
||||
"# Decision Trees\n",
|
||||
"deep_tree_clf = DecisionTreeClassifier(max_depth=None)\n",
|
||||
"deep_tree_clf.fit(X_train, y_train)\n",
|
||||
"print(\"Test set accuracy with Decision Trees: {:.2f}\".format(deep_tree_clf.score(X_test,y_test)))\n",
|
||||
"#now scale the data\n",
|
||||
"from sklearn.preprocessing import StandardScaler\n",
|
||||
"scaler = StandardScaler()\n",
|
||||
"scaler.fit(X_train)\n",
|
||||
"X_train_scaled = scaler.transform(X_train)\n",
|
||||
"X_test_scaled = scaler.transform(X_test)\n",
|
||||
"# Logistic Regression\n",
|
||||
"logreg.fit(X_train_scaled, y_train)\n",
|
||||
"print(\"Test set accuracy Logistic Regression with scaled data: {:.2f}\".format(logreg.score(X_test_scaled,y_test)))\n",
|
||||
"# Support Vector Machine\n",
|
||||
"svm.fit(X_train_scaled, y_train)\n",
|
||||
"print(\"Test set accuracy SVM with scaled data: {:.2f}\".format(logreg.score(X_test_scaled,y_test)))\n",
|
||||
"# Decision Trees\n",
|
||||
"deep_tree_clf.fit(X_train_scaled, y_train)\n",
|
||||
"print(\"Test set accuracy with Decision Trees and scaled data: {:.2f}\".format(deep_tree_clf.score(X_test_scaled,y_test)))\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"from sklearn.ensemble import RandomForestClassifier\n",
|
||||
"from sklearn.preprocessing import LabelEncoder\n",
|
||||
"from sklearn.model_selection import cross_validate\n",
|
||||
"# Data set not specificied\n",
|
||||
"X = dataset.XXX\n",
|
||||
"Y = dataset.YYY\n",
|
||||
"#Instantiate the model with 100 trees and entropy as splitting criteria\n",
|
||||
"Random_Forest_model = RandomForestClassifier(n_estimators=100,criterion=\"entropy\")\n",
|
||||
"#Instantiate the model with 500 trees and entropy as splitting criteria\n",
|
||||
"Random_Forest_model = RandomForestClassifier(n_estimators=500,criterion=\"entropy\")\n",
|
||||
"Random_Forest_model.fit(X_train_scaled, y_train)\n",
|
||||
"#Cross validation\n",
|
||||
"accuracy = cross_validate(Random_Forest_model,X,Y,cv=10)['test_score']"
|
||||
"accuracy = cross_validate(Random_Forest_model,X_test_scaled,y_test,cv=10)['test_score']\n",
|
||||
"print(accuracy)\n",
|
||||
"print(\"Test set accuracy with Random Forests and scaled data: {:.2f}\".format(Random_Forest_model.score(X_test_scaled,y_test)))\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"import scikitplot as skplt\n",
|
||||
"y_pred = Random_Forest_model.predict(X_test_scaled)\n",
|
||||
"skplt.metrics.plot_confusion_matrix(y_test, y_pred, normalize=True)\n",
|
||||
"#<matplotlib.axes._subplots.AxesSubplot object at 0x7fe967d64490>\n",
|
||||
"plt.show()\n",
|
||||
"y_probas = Random_Forest_model.predict_proba(X_test_scaled)\n",
|
||||
"skplt.metrics.plot_roc(y_test, y_probas)\n",
|
||||
"plt.show()\n",
|
||||
"skplt.metrics.plot_cumulative_gain(y_test, y_probas)\n",
|
||||
"plt.show()"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"## Then random forests"
|
||||
"## Compare Bagging on Trees with Random Forests"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -1976,7 +2049,6 @@
|
||||
"\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"## Gradient Boosting, Examples"
|
||||
]
|
||||
},
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -1148,7 +1148,7 @@ However, by aggregating many decision trees, using methods like bagging, random
|
||||
|
||||
|
||||
!split
|
||||
===== From a Single Tree to Many Trees, that is meet the Jungle of Methods =====
|
||||
===== From a Single Tree to Many Trees, Meet the Jungle of Methods =====
|
||||
|
||||
As stated above and seen in many of the examples discussed here about
|
||||
a single decision tree, we often end up overfitting our training
|
||||
@@ -1157,7 +1157,7 @@ the variance of a statistical learning method?
|
||||
|
||||
This leads us to a set of different methods that can combine different
|
||||
machine learning algorithms or just use one of them to construct forests and jungles of trees, homogeneous ones or heterogenous ones. These methods are recognized by different names which we will try to explain here. These are
|
||||
o Votign classifiers
|
||||
o Voting classifiers
|
||||
o Bagging and Pasting
|
||||
o Random forests
|
||||
o Boosting methods
|
||||
@@ -1425,24 +1425,91 @@ this setting.
|
||||
===== Random Forest Algorithm =====
|
||||
The algorithm described here can be applied to both classification and regression problems.
|
||||
|
||||
We will grow of forest of say $M$ trees.
|
||||
o For $m=1:M$ we
|
||||
* Draw a bootstrap sample of from the training data organized in our $\bm{X}$ matrix.
|
||||
* We grow then a random forest tree $T_m$ based on the bootstrapped data by repeating the steps outlined till we reach the maximum node size is reached
|
||||
o we select $m \le p$ varibales at random from the $p$ predictors/features
|
||||
o pick the best split point among the $m$ features using either the CART algorithm or the ID3 for classification and create a new node
|
||||
o split the node into daughter nodes
|
||||
o Output then the ensemble of trees $\{T_m\}_1^{M}$ and make predictions for either a regression type of problem or a classification type of problem.
|
||||
|
||||
|
||||
!split
|
||||
===== A simple scikit-learn example =====
|
||||
===== Random Forests Compared with other Methods on the Cancer Data =====
|
||||
!bc pycod
|
||||
import matplotlib.pyplot as plt
|
||||
import numpy as np
|
||||
from sklearn.model_selection import train_test_split
|
||||
from sklearn.datasets import load_breast_cancer
|
||||
from sklearn.svm import SVC
|
||||
from sklearn.linear_model import LogisticRegression
|
||||
from sklearn.tree import DecisionTreeClassifier
|
||||
|
||||
# Load the data
|
||||
cancer = load_breast_cancer()
|
||||
|
||||
X_train, X_test, y_train, y_test = train_test_split(cancer.data,cancer.target,random_state=0)
|
||||
print(X_train.shape)
|
||||
print(X_test.shape)
|
||||
# Logistic Regression
|
||||
logreg = LogisticRegression(solver='lbfgs')
|
||||
logreg.fit(X_train, y_train)
|
||||
print("Test set accuracy with Logistic Regression: {:.2f}".format(logreg.score(X_test,y_test)))
|
||||
# Support vector machine
|
||||
svm = SVC(gamma='auto', C=100)
|
||||
svm.fit(X_train, y_train)
|
||||
print("Test set accuracy with SVM: {:.2f}".format(svm.score(X_test,y_test)))
|
||||
# Decision Trees
|
||||
deep_tree_clf = DecisionTreeClassifier(max_depth=None)
|
||||
deep_tree_clf.fit(X_train, y_train)
|
||||
print("Test set accuracy with Decision Trees: {:.2f}".format(deep_tree_clf.score(X_test,y_test)))
|
||||
#now scale the data
|
||||
from sklearn.preprocessing import StandardScaler
|
||||
scaler = StandardScaler()
|
||||
scaler.fit(X_train)
|
||||
X_train_scaled = scaler.transform(X_train)
|
||||
X_test_scaled = scaler.transform(X_test)
|
||||
# Logistic Regression
|
||||
logreg.fit(X_train_scaled, y_train)
|
||||
print("Test set accuracy Logistic Regression with scaled data: {:.2f}".format(logreg.score(X_test_scaled,y_test)))
|
||||
# Support Vector Machine
|
||||
svm.fit(X_train_scaled, y_train)
|
||||
print("Test set accuracy SVM with scaled data: {:.2f}".format(logreg.score(X_test_scaled,y_test)))
|
||||
# Decision Trees
|
||||
deep_tree_clf.fit(X_train_scaled, y_train)
|
||||
print("Test set accuracy with Decision Trees and scaled data: {:.2f}".format(deep_tree_clf.score(X_test_scaled,y_test)))
|
||||
|
||||
|
||||
from sklearn.ensemble import RandomForestClassifier
|
||||
from sklearn.preprocessing import LabelEncoder
|
||||
from sklearn.model_selection import cross_validate
|
||||
# Data set not specificied
|
||||
X = dataset.XXX
|
||||
Y = dataset.YYY
|
||||
#Instantiate the model with 100 trees and entropy as splitting criteria
|
||||
Random_Forest_model = RandomForestClassifier(n_estimators=100,criterion="entropy")
|
||||
#Instantiate the model with 500 trees and entropy as splitting criteria
|
||||
Random_Forest_model = RandomForestClassifier(n_estimators=500,criterion="entropy")
|
||||
Random_Forest_model.fit(X_train_scaled, y_train)
|
||||
#Cross validation
|
||||
accuracy = cross_validate(Random_Forest_model,X,Y,cv=10)['test_score']
|
||||
accuracy = cross_validate(Random_Forest_model,X_test_scaled,y_test,cv=10)['test_score']
|
||||
print(accuracy)
|
||||
print("Test set accuracy with Random Forests and scaled data: {:.2f}".format(Random_Forest_model.score(X_test_scaled,y_test)))
|
||||
|
||||
|
||||
import scikitplot as skplt
|
||||
y_pred = Random_Forest_model.predict(X_test_scaled)
|
||||
skplt.metrics.plot_confusion_matrix(y_test, y_pred, normalize=True)
|
||||
#<matplotlib.axes._subplots.AxesSubplot object at 0x7fe967d64490>
|
||||
plt.show()
|
||||
y_probas = Random_Forest_model.predict_proba(X_test_scaled)
|
||||
skplt.metrics.plot_roc(y_test, y_probas)
|
||||
plt.show()
|
||||
skplt.metrics.plot_cumulative_gain(y_test, y_probas)
|
||||
plt.show()
|
||||
|
||||
!ec
|
||||
|
||||
|
||||
!split
|
||||
===== Then random forests =====
|
||||
===== Compare Bagging on Trees with Random Forests =====
|
||||
!bc pycod
|
||||
bag_clf = BaggingClassifier(
|
||||
DecisionTreeClassifier(splitter="random", max_leaf_nodes=16, random_state=42),
|
||||
@@ -1578,7 +1645,6 @@ plt.show()
|
||||
|
||||
|
||||
|
||||
|
||||
!split
|
||||
===== Gradient Boosting, Examples =====
|
||||
!bc pycod
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
import matplotlib.pyplot as plt
|
||||
import numpy as np
|
||||
from sklearn.model_selection import train_test_split
|
||||
from sklearn.datasets import load_breast_cancer
|
||||
from sklearn.svm import SVC
|
||||
from sklearn.linear_model import LogisticRegression
|
||||
from sklearn.tree import DecisionTreeClassifier
|
||||
|
||||
# Load the data
|
||||
cancer = load_breast_cancer()
|
||||
|
||||
X_train, X_test, y_train, y_test = train_test_split(cancer.data,cancer.target,random_state=0)
|
||||
print(X_train.shape)
|
||||
print(X_test.shape)
|
||||
# Logistic Regression
|
||||
logreg = LogisticRegression(solver='lbfgs')
|
||||
logreg.fit(X_train, y_train)
|
||||
print("Test set accuracy with Logistic Regression: {:.2f}".format(logreg.score(X_test,y_test)))
|
||||
# Support vector machine
|
||||
svm = SVC(gamma='auto', C=100)
|
||||
svm.fit(X_train, y_train)
|
||||
print("Test set accuracy with SVM: {:.2f}".format(svm.score(X_test,y_test)))
|
||||
# Decision Trees
|
||||
deep_tree_clf = DecisionTreeClassifier(max_depth=None)
|
||||
deep_tree_clf.fit(X_train, y_train)
|
||||
print("Test set accuracy with Decision Trees: {:.2f}".format(deep_tree_clf.score(X_test,y_test)))
|
||||
#now scale the data
|
||||
from sklearn.preprocessing import StandardScaler
|
||||
scaler = StandardScaler()
|
||||
scaler.fit(X_train)
|
||||
X_train_scaled = scaler.transform(X_train)
|
||||
X_test_scaled = scaler.transform(X_test)
|
||||
# Logistic Regression
|
||||
logreg.fit(X_train_scaled, y_train)
|
||||
print("Test set accuracy Logistic Regression with scaled data: {:.2f}".format(logreg.score(X_test_scaled,y_test)))
|
||||
# Support Vector Machine
|
||||
svm.fit(X_train_scaled, y_train)
|
||||
print("Test set accuracy SVM with scaled data: {:.2f}".format(logreg.score(X_test_scaled,y_test)))
|
||||
# Decision Trees
|
||||
deep_tree_clf.fit(X_train_scaled, y_train)
|
||||
print("Test set accuracy with Decision Trees and scaled data: {:.2f}".format(deep_tree_clf.score(X_test_scaled,y_test)))
|
||||
|
||||
|
||||
from sklearn.ensemble import RandomForestClassifier
|
||||
from sklearn.preprocessing import LabelEncoder
|
||||
from sklearn.model_selection import cross_validate
|
||||
# Data set not specificied
|
||||
#Instantiate the model with 100 trees and entropy as splitting criteria
|
||||
Random_Forest_model = RandomForestClassifier(n_estimators=500,criterion="entropy")
|
||||
Random_Forest_model.fit(X_train_scaled, y_train)
|
||||
#Cross validation
|
||||
accuracy = cross_validate(Random_Forest_model,X_test_scaled,y_test,cv=10)['test_score']
|
||||
print(accuracy)
|
||||
print("Test set accuracy with Random Forests and scaled data: {:.2f}".format(Random_Forest_model.score(X_test_scaled,y_test)))
|
||||
|
||||
|
||||
import scikitplot as skplt
|
||||
y_pred = Random_Forest_model.predict(X_test_scaled)
|
||||
skplt.metrics.plot_confusion_matrix(y_test, y_pred, normalize=True)
|
||||
#<matplotlib.axes._subplots.AxesSubplot object at 0x7fe967d64490>
|
||||
plt.show()
|
||||
y_probas = Random_Forest_model.predict_proba(X_test_scaled)
|
||||
skplt.metrics.plot_roc(y_test, y_probas)
|
||||
plt.show()
|
||||
skplt.metrics.plot_cumulative_gain(y_test, y_probas)
|
||||
plt.show()
|
||||
Reference in New Issue
Block a user