diff --git a/doc/pub/DecisionTrees/html/._DecisionTrees-bs015.html b/doc/pub/DecisionTrees/html/._DecisionTrees-bs015.html index 7eeec121b..62530e8d2 100644 --- a/doc/pub/DecisionTrees/html/._DecisionTrees-bs015.html +++ b/doc/pub/DecisionTrees/html/._DecisionTrees-bs015.html @@ -152,22 +152,6 @@ MathJax.Hub.Config({
- - -
angle = np.pi / 180 * 20
-rotation_matrix = np.array([[np.cos(angle), -np.sin(angle)], [np.sin(angle), np.cos(angle)]])
-Xr = X.dot(rotation_matrix)
-
-tree_clf_r = DecisionTreeClassifier(random_state=42)
-tree_clf_r.fit(Xr, y)
-
-plt.figure(figsize=(8, 3))
-plot_decision_boundary(tree_clf_r, Xr, y, axes=[0.5, 7.5, -1.0, 1], iris=False)
-
-plt.show()
-diff --git a/doc/pub/DecisionTrees/html/._DecisionTrees-bs017.html b/doc/pub/DecisionTrees/html/._DecisionTrees-bs017.html index 013d19423..8a5f766d2 100644 --- a/doc/pub/DecisionTrees/html/._DecisionTrees-bs017.html +++ b/doc/pub/DecisionTrees/html/._DecisionTrees-bs017.html @@ -224,7 +224,6 @@ plt.axis([0.xlabel("$x_1$", fontsize=18) plt.title("min_samples_leaf={}".format(tree_reg2.min_samples_leaf), fontsize=14) -save_fig("tree_regression_regularization_plot") plt.show()
diff --git a/doc/pub/DecisionTrees/html/DecisionTrees-reveal.html b/doc/pub/DecisionTrees/html/DecisionTrees-reveal.html
index 812be45b1..cac499a88 100644
--- a/doc/pub/DecisionTrees/html/DecisionTrees-reveal.html
+++ b/doc/pub/DecisionTrees/html/DecisionTrees-reveal.html
@@ -727,22 +727,6 @@ plt.show()
-
-
-
@@ -867,7 +851,6 @@ plt.axis([0, 1<
plt.xlabel("$x_1$", fontsize=18)
plt.title("min_samples_leaf={}".format(tree_reg2.min_samples_leaf), fontsize=14)
-save_fig("tree_regression_regularization_plot")
plt.show()
Playing around with regions
-
-angle = np.pi / 180 * 20
-rotation_matrix = np.array([[np.cos(angle), -np.sin(angle)], [np.sin(angle), np.cos(angle)]])
-Xr = X.dot(rotation_matrix)
-
-tree_clf_r = DecisionTreeClassifier(random_state=42)
-tree_clf_r.fit(Xr, y)
-
-plt.figure(figsize=(8, 3))
-plot_decision_boundary(tree_clf_r, Xr, y, axes=[0.5, 7.5, -1.0, 1], iris=False)
-
-plt.show()
-
- - -
angle = np.pi / 180 * 20
-rotation_matrix = np.array([[np.cos(angle), -np.sin(angle)], [np.sin(angle), np.cos(angle)]])
-Xr = X.dot(rotation_matrix)
-
-tree_clf_r = DecisionTreeClassifier(random_state=42)
-tree_clf_r.fit(Xr, y)
-
-plt.figure(figsize=(8, 3))
-plot_decision_boundary(tree_clf_r, Xr, y, axes=[0.5, 7.5, -1.0, 1], iris=False)
-
-plt.show()
-
@@ -831,7 +815,6 @@ plt.axis([0, 1<
plt.xlabel("$x_1$", fontsize=18)
plt.title("min_samples_leaf={}".format(tree_reg2.min_samples_leaf), fontsize=14)
-save_fig("tree_regression_regularization_plot")
plt.show()
diff --git a/doc/pub/DecisionTrees/html/DecisionTrees.html b/doc/pub/DecisionTrees/html/DecisionTrees.html
index ea74bec0d..564feebc5 100644
--- a/doc/pub/DecisionTrees/html/DecisionTrees.html
+++ b/doc/pub/DecisionTrees/html/DecisionTrees.html
@@ -698,22 +698,6 @@ plt.show()
-
-
-
@@ -836,7 +820,6 @@ plt.axis([0.xlabel("$x_1$", fontsize=18)
plt.title("min_samples_leaf={}".format(tree_reg2.min_samples_leaf), fontsize=14)
-save_fig("tree_regression_regularization_plot")
plt.show()
diff --git a/doc/pub/DecisionTrees/ipynb/ipynb-DecisionTrees-src.tar.gz b/doc/pub/DecisionTrees/ipynb/ipynb-DecisionTrees-src.tar.gz
index 6d671db47..ef06327d3 100644
Binary files a/doc/pub/DecisionTrees/ipynb/ipynb-DecisionTrees-src.tar.gz and b/doc/pub/DecisionTrees/ipynb/ipynb-DecisionTrees-src.tar.gz differ
diff --git a/doc/pub/DecisionTrees/pdf/DecisionTrees-minted.pdf b/doc/pub/DecisionTrees/pdf/DecisionTrees-minted.pdf
index 183d6d78f..84e20206f 100644
Binary files a/doc/pub/DecisionTrees/pdf/DecisionTrees-minted.pdf and b/doc/pub/DecisionTrees/pdf/DecisionTrees-minted.pdf differ
diff --git a/doc/src/DecisionTrees/DecisionTrees.do.txt b/doc/src/DecisionTrees/DecisionTrees.do.txt
index 3a7bfd064..08781619f 100644
--- a/doc/src/DecisionTrees/DecisionTrees.do.txt
+++ b/doc/src/DecisionTrees/DecisionTrees.do.txt
@@ -509,22 +509,6 @@ plt.show()
!split
===== Playing around with regions =====
-
-!bc pycod
-angle = np.pi / 180 * 20
-rotation_matrix = np.array([[np.cos(angle), -np.sin(angle)], [np.sin(angle), np.cos(angle)]])
-Xr = X.dot(rotation_matrix)
-
-tree_clf_r = DecisionTreeClassifier(random_state=42)
-tree_clf_r.fit(Xr, y)
-
-plt.figure(figsize=(8, 3))
-plot_decision_boundary(tree_clf_r, Xr, y, axes=[0.5, 7.5, -1.0, 1], iris=False)
-
-plt.show()
-!ec
-
-
!bc pycod
np.random.seed(6)
Xs = np.random.rand(100, 2) - 0.5
@@ -637,7 +621,6 @@ plt.axis([0, 1, -0.2, 1.1])
plt.xlabel("$x_1$", fontsize=18)
plt.title("min_samples_leaf={}".format(tree_reg2.min_samples_leaf), fontsize=14)
-save_fig("tree_regression_regularization_plot")
plt.show()
!ec
Playing around with regions
-
-angle = np.pi / 180 * 20
-rotation_matrix = np.array([[np.cos(angle), -np.sin(angle)], [np.sin(angle), np.cos(angle)]])
-Xr = X.dot(rotation_matrix)
-
-tree_clf_r = DecisionTreeClassifier(random_state=42)
-tree_clf_r.fit(Xr, y)
-
-plt.figure(figsize=(8, 3))
-plot_decision_boundary(tree_clf_r, Xr, y, axes=[0.5, 7.5, -1.0, 1], iris=False)
-
-plt.show()
-