Skip to content

Commit f42c216

Browse files
committed
Pushing the docs to dev/ for branch: main, commit 780b393ad62ef63209f77aaae7051622134f0217
1 parent 97fa69f commit f42c216

File tree

1,527 files changed

+5965
-5965
lines changed

Some content is hidden

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

1,527 files changed

+5965
-5965
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

dev/_downloads/264f6891fa2130246a013d5f089e7b2e/plot_svm_kernels.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
},
3434
"outputs": [],
3535
"source": [
36-
"import matplotlib.pyplot as plt\nimport numpy as np\n\nX = np.array(\n [\n [0.4, -0.7],\n [-1.5, -1.0],\n [-1.4, -0.9],\n [-1.3, -1.2],\n [-1.1, -0.2],\n [-1.2, -0.4],\n [-0.5, 1.2],\n [-1.5, 2.1],\n [1.0, 1.0],\n [1.3, 0.8],\n [1.2, 0.5],\n [0.2, -2.0],\n [0.5, -2.4],\n [0.2, -2.3],\n [0.0, -2.7],\n [1.3, 2.1],\n ]\n)\n\ny = np.array([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1])\n\n# Plotting settings\nfig, ax = plt.subplots(figsize=(4, 3))\nx_min, x_max, y_min, y_max = -3, 3, -3, 3\nax.set(xlim=(x_min, x_max), ylim=(y_min, y_max))\n\n# Plot samples by color and add legend\nscatter = ax.scatter(X[:, 0], X[:, 1], s=150, c=y, label=y, edgecolors=\"k\")\nax.legend(*scatter.legend_elements(), loc=\"upper right\", title=\"Classes\")\nax.set_title(\"Samples in two-dimensional feature space\")\n_ = plt.show()"
36+
"import matplotlib.pyplot as plt\nimport numpy as np\n\nX = np.array(\n [\n [0.4, -0.7],\n [-1.5, -1.0],\n [-1.4, -0.9],\n [-1.3, -1.2],\n [-1.1, -0.2],\n [-1.2, -0.4],\n [-0.5, 1.2],\n [-1.5, 2.1],\n [1.0, 1.0],\n [1.3, 0.8],\n [1.2, 0.5],\n [0.2, -2.0],\n [0.5, -2.4],\n [0.2, -2.3],\n [0.0, -2.7],\n [1.3, 2.1],\n ]\n)\n\ny = np.array([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1])\n\n# Plotting settings\nfig, ax = plt.subplots(figsize=(4, 3))\nx_min, x_max, y_min, y_max = -3, 3, -3, 3\nax.set(xlim=(x_min, x_max), ylim=(y_min, y_max))\n\n# Plot samples by color and add legend\nscatter = ax.scatter(X[:, 0], X[:, 1], s=150, c=y, label=y, edgecolors=\"k\")\nax.legend(*scatter.legend_elements(), loc=\"upper right\", title=\"Classes\")\nax.set_title(\"Samples in two-dimensional feature space\")\nplt.show()"
3737
]
3838
},
3939
{
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

dev/_downloads/6b00e458f3e282f1cc421f077b2fcad1/plot_spectral_biclustering.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
},
3434
"outputs": [],
3535
"source": [
36-
"from matplotlib import pyplot as plt\n\nfrom sklearn.datasets import make_checkerboard\n\nn_clusters = (4, 3)\ndata, rows, columns = make_checkerboard(\n shape=(300, 300), n_clusters=n_clusters, noise=10, shuffle=False, random_state=42\n)\n\nplt.matshow(data, cmap=plt.cm.Blues)\nplt.title(\"Original dataset\")\n_ = plt.show()"
36+
"from matplotlib import pyplot as plt\n\nfrom sklearn.datasets import make_checkerboard\n\nn_clusters = (4, 3)\ndata, rows, columns = make_checkerboard(\n shape=(300, 300), n_clusters=n_clusters, noise=10, shuffle=False, random_state=42\n)\n\nplt.matshow(data, cmap=plt.cm.Blues)\nplt.title(\"Original dataset\")\nplt.show()"
3737
]
3838
},
3939
{
@@ -69,7 +69,7 @@
6969
},
7070
"outputs": [],
7171
"source": [
72-
"data = data[row_idx_shuffled][:, col_idx_shuffled]\n\nplt.matshow(data, cmap=plt.cm.Blues)\nplt.title(\"Shuffled dataset\")\n_ = plt.show()"
72+
"data = data[row_idx_shuffled][:, col_idx_shuffled]\n\nplt.matshow(data, cmap=plt.cm.Blues)\nplt.title(\"Shuffled dataset\")\nplt.show()"
7373
]
7474
},
7575
{
@@ -112,7 +112,7 @@
112112
},
113113
"outputs": [],
114114
"source": [
115-
"# Reordering first the rows and then the columns.\nreordered_rows = data[np.argsort(model.row_labels_)]\nreordered_data = reordered_rows[:, np.argsort(model.column_labels_)]\n\nplt.matshow(reordered_data, cmap=plt.cm.Blues)\nplt.title(\"After biclustering; rearranged to show biclusters\")\n_ = plt.show()"
115+
"# Reordering first the rows and then the columns.\nreordered_rows = data[np.argsort(model.row_labels_)]\nreordered_data = reordered_rows[:, np.argsort(model.column_labels_)]\n\nplt.matshow(reordered_data, cmap=plt.cm.Blues)\nplt.title(\"After biclustering; rearranged to show biclusters\")\nplt.show()"
116116
]
117117
},
118118
{
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

dev/_downloads/8975399471ae75debd0b26fbe3013719/plot_svm_kernels.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
scatter = ax.scatter(X[:, 0], X[:, 1], s=150, c=y, label=y, edgecolors="k")
8080
ax.legend(*scatter.legend_elements(), loc="upper right", title="Classes")
8181
ax.set_title("Samples in two-dimensional feature space")
82-
_ = plt.show()
82+
plt.show()
8383

8484
# %%
8585
# We can see that the samples are not clearly separable by a straight line.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

dev/_downloads/ac19db97f4bbd077ccffef2736ed5f3d/plot_spectral_biclustering.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
plt.matshow(data, cmap=plt.cm.Blues)
4545
plt.title("Original dataset")
46-
_ = plt.show()
46+
plt.show()
4747

4848
# %%
4949
# We shuffle the data and the goal is to reconstruct it afterwards using
@@ -62,7 +62,7 @@
6262

6363
plt.matshow(data, cmap=plt.cm.Blues)
6464
plt.title("Shuffled dataset")
65-
_ = plt.show()
65+
plt.show()
6666

6767
# %%
6868
# Fitting `SpectralBiclustering`
@@ -102,7 +102,7 @@
102102

103103
plt.matshow(reordered_data, cmap=plt.cm.Blues)
104104
plt.title("After biclustering; rearranged to show biclusters")
105-
_ = plt.show()
105+
plt.show()
106106

107107
# %%
108108
# As a last step, we want to demonstrate the relationships between the row

0 commit comments

Comments
 (0)