From b1fec6453f82e0dab717fb161711a8d33345e570 Mon Sep 17 00:00:00 2001 From: Iacopo Masi Date: Tue, 30 Apr 2024 12:19:06 +0200 Subject: [PATCH] decision trees --- .../09_decision_trees/09_decision_trees.css | 87 + .../09_decision_trees/09_decision_trees.html | 19339 ++++++++++++++++ .../09_decision_trees/09_decision_trees.ipynb | 4249 ++++ .../09_decision_trees/09_decision_trees.pdf | Bin 0 -> 3795758 bytes .../09_decision_trees/figs/bias_variance.png | Bin 0 -> 82479 bytes .../course/09_decision_trees/figs/data_01.png | Bin 0 -> 37534 bytes .../course/09_decision_trees/figs/data_02.png | Bin 0 -> 38812 bytes .../course/09_decision_trees/figs/data_03.png | Bin 0 -> 20452 bytes .../course/09_decision_trees/figs/data_04.png | Bin 0 -> 32148 bytes AA2324/course/09_decision_trees/figs/dice.png | Bin 0 -> 145200 bytes .../09_decision_trees/figs/ensemble.png | Bin 0 -> 108699 bytes .../course/09_decision_trees/figs/ent_a.png | Bin 0 -> 8517 bytes .../course/09_decision_trees/figs/ent_b.png | Bin 0 -> 7685 bytes .../09_decision_trees/figs/impurity_00.png | Bin 0 -> 10992 bytes .../09_decision_trees/figs/impurity_01.png | Bin 0 -> 12490 bytes .../09_decision_trees/figs/impurity_02.png | Bin 0 -> 12542 bytes .../09_decision_trees/figs/impurity_03.png | Bin 0 -> 13919 bytes .../09_decision_trees/figs/impurity_04.png | Bin 0 -> 13919 bytes .../09_decision_trees/figs/impurity_05.png | Bin 0 -> 15900 bytes .../09_decision_trees/figs/impurity_06.png | Bin 0 -> 18874 bytes .../09_decision_trees/figs/impurity_07.png | Bin 0 -> 25744 bytes .../09_decision_trees/figs/impurity_08.png | Bin 0 -> 25744 bytes .../09_decision_trees/figs/impurity_09.png | Bin 0 -> 19038 bytes AA2324/course/09_decision_trees/figs/mdi.png | Bin 0 -> 16413 bytes .../figs/missclass_split.png | Bin 0 -> 24742 bytes .../figs/missclass_split2.png | Bin 0 -> 15314 bytes AA2324/course/09_decision_trees/figs/nn.png | Bin 0 -> 58062 bytes .../09_decision_trees/figs/over_under_fit.png | Bin 0 -> 266187 bytes .../09_decision_trees/figs/split_00.png | Bin 0 -> 33078 bytes .../09_decision_trees/figs/split_01.png | Bin 0 -> 25251 bytes AA2324/course/09_decision_trees/figs/tree.png | Bin 0 -> 25169 bytes .../course/09_decision_trees/figs/tree_02.png | Bin 0 -> 25169 bytes AA2324/course/09_decision_trees/figs/xbox.png | Bin 0 -> 169842 bytes .../course/09_decision_trees/figs/xbox2.png | Bin 0 -> 184858 bytes .../course/09_decision_trees/figs/xbox3.png | Bin 0 -> 271328 bytes .../course/09_decision_trees/figs/xbox4.png | Bin 0 -> 233382 bytes 36 files changed, 23675 insertions(+) create mode 100644 AA2324/course/09_decision_trees/09_decision_trees.css create mode 100644 AA2324/course/09_decision_trees/09_decision_trees.html create mode 100644 AA2324/course/09_decision_trees/09_decision_trees.ipynb create mode 100644 AA2324/course/09_decision_trees/09_decision_trees.pdf create mode 100644 AA2324/course/09_decision_trees/figs/bias_variance.png create mode 100644 AA2324/course/09_decision_trees/figs/data_01.png create mode 100644 AA2324/course/09_decision_trees/figs/data_02.png create mode 100644 AA2324/course/09_decision_trees/figs/data_03.png create mode 100644 AA2324/course/09_decision_trees/figs/data_04.png create mode 100644 AA2324/course/09_decision_trees/figs/dice.png create mode 100644 AA2324/course/09_decision_trees/figs/ensemble.png create mode 100644 AA2324/course/09_decision_trees/figs/ent_a.png create mode 100644 AA2324/course/09_decision_trees/figs/ent_b.png create mode 100644 AA2324/course/09_decision_trees/figs/impurity_00.png create mode 100644 AA2324/course/09_decision_trees/figs/impurity_01.png create mode 100644 AA2324/course/09_decision_trees/figs/impurity_02.png create mode 100644 AA2324/course/09_decision_trees/figs/impurity_03.png create mode 100644 AA2324/course/09_decision_trees/figs/impurity_04.png create mode 100644 AA2324/course/09_decision_trees/figs/impurity_05.png create mode 100644 AA2324/course/09_decision_trees/figs/impurity_06.png create mode 100644 AA2324/course/09_decision_trees/figs/impurity_07.png create mode 100644 AA2324/course/09_decision_trees/figs/impurity_08.png create mode 100644 AA2324/course/09_decision_trees/figs/impurity_09.png create mode 100644 AA2324/course/09_decision_trees/figs/mdi.png create mode 100644 AA2324/course/09_decision_trees/figs/missclass_split.png create mode 100644 AA2324/course/09_decision_trees/figs/missclass_split2.png create mode 100644 AA2324/course/09_decision_trees/figs/nn.png create mode 100644 AA2324/course/09_decision_trees/figs/over_under_fit.png create mode 100644 AA2324/course/09_decision_trees/figs/split_00.png create mode 100644 AA2324/course/09_decision_trees/figs/split_01.png create mode 100644 AA2324/course/09_decision_trees/figs/tree.png create mode 100644 AA2324/course/09_decision_trees/figs/tree_02.png create mode 100644 AA2324/course/09_decision_trees/figs/xbox.png create mode 100644 AA2324/course/09_decision_trees/figs/xbox2.png create mode 100644 AA2324/course/09_decision_trees/figs/xbox3.png create mode 100644 AA2324/course/09_decision_trees/figs/xbox4.png diff --git a/AA2324/course/09_decision_trees/09_decision_trees.css b/AA2324/course/09_decision_trees/09_decision_trees.css new file mode 100644 index 0000000..288b0b9 --- /dev/null +++ b/AA2324/course/09_decision_trees/09_decision_trees.css @@ -0,0 +1,87 @@ +/* when setting overlay, + * (see metadata in notebook) + * + * it's your responsability to put all the pieces where you want + * even in the middle if that was what you wanted + * + */ + +div.myheader { + position: right; + margin-top: 1%; + margin-left: 5%; + font-size: large; +} + +.myheader img { + float: right; + width: 200px; +} + + +div.myfooter { + position: absolute; + background: red; + font-size: 120%; + right: 10%; +} + +div.cell.selected:before, div.cell.selected.jupyter-soft-selected:before{ + + background: #812432; +} + +div.cell.selected, div.cell.selected.jupyter-soft-selected { + border: 0px; +} + + +/* +RISE +*/ +.rise-enabled { + background-color: #ffffff !important; + border-top: 0px #812432 solid; + border-bottom: 0px #812432 solid; +} + +.rise-enabled .chalkboard-button i { + display: block !important; + bottom: 0em !important; + font-size: .8em !important; + color: #727272 !important; +} + +.rise-enabled .reveal .progress span { + background: #812432; +} +.question { + color: #008; +} + +.your_turn { + color: #e08414; + font-size: 150%; + font-weight: bold; +} + +.rendered_html h1 { + color: #812432; +} + +.fa-4x { + font-size: 2em; +} + +.rendered_html h2:first-child { + margin-top: -0.056em; +} + +.rendered_html table, .rendered_html th, .rendered_html tr, .rendered_html td { + font-size: 95%; +} + +.container.slides .celltoolbar, .container.slides .hide-in-slideshow { + display: None ! important; +} + diff --git a/AA2324/course/09_decision_trees/09_decision_trees.html b/AA2324/course/09_decision_trees/09_decision_trees.html new file mode 100644 index 0000000..d652ac9 --- /dev/null +++ b/AA2324/course/09_decision_trees/09_decision_trees.html @@ -0,0 +1,19339 @@ + + + + + +09_decision_trees + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+
+ +
+ + +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+ + + + +
+ + + + +
+
+ +
+
+ +
+ + + + +
+
+ +
+ + + + +
+
+ +
+
+ +
+
+ +
+
+ +
+ + + + +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+ + + + +
+
+ +
+
+ +
+
+ +
+
+ +
+
+