Skip to content

Commit f646add

Browse files
committed
Pushing the docs for revision for branch: master, commit 637cebbdf5648660ec385c314be138888f8feca5
1 parent 22a9455 commit f646add

File tree

861 files changed

+2837
-2859
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

861 files changed

+2837
-2859
lines changed

dev/_downloads/plot_iris1.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,6 @@
3434
X = iris.data[:, pair]
3535
y = iris.target
3636

37-
# Shuffle
38-
idx = np.arange(X.shape[0])
39-
np.random.seed(13)
40-
np.random.shuffle(idx)
41-
X = X[idx]
42-
y = y[idx]
43-
44-
# Standardize
45-
mean = X.mean(axis=0)
46-
std = X.std(axis=0)
47-
X = (X - mean) / std
48-
4937
# Train
5038
clf = DecisionTreeClassifier().fit(X, y)
5139

dev/_downloads/plot_tree_regression_multioutput.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@
4949
plt.scatter(y_3[:, 0], y_3[:, 1], c="orange", s=s, label="max_depth=8")
5050
plt.xlim([-6, 6])
5151
plt.ylim([-6, 6])
52-
plt.xlabel("data")
53-
plt.ylabel("target")
52+
plt.xlabel("target 1")
53+
plt.ylabel("target 2")
5454
plt.title("Multi-output Decision Tree Regression")
5555
plt.legend()
5656
plt.show()
4 Bytes
4 Bytes
410 Bytes
410 Bytes
291 Bytes
291 Bytes
127 Bytes
127 Bytes

0 commit comments

Comments
 (0)