Skip to content

Commit 72b7fa7

Browse files
committed
Pushing the docs to dev/ for branch: main, commit a5620f45614ac3f849c430f53146a66319e4908b
1 parent 764e146 commit 72b7fa7

File tree

1,397 files changed

+7470
-6350
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,397 files changed

+7470
-6350
lines changed

dev/.buildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: 61f1dcc056c8a9a5e21505ca3e041e92
3+
config: 7117e1111de982f9bf7f2c23da1a0d62
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

dev/_downloads/010337852815f8103ac6cca38a812b3c/plot_roc_crossval.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,9 @@
122122
)
123123

124124
ax.set(
125-
xlim=[-0.05, 1.05],
126-
ylim=[-0.05, 1.05],
127125
xlabel="False Positive Rate",
128126
ylabel="True Positive Rate",
129127
title=f"Mean ROC curve with variability\n(Positive label '{target_names[1]}')",
130128
)
131-
ax.axis("square")
132129
ax.legend(loc="lower right")
133130
plt.show()

dev/_downloads/055e8313e28f2f3b5fd508054dfe5fe0/plot_roc_crossval.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
},
5959
"outputs": [],
6060
"source": [
61-
"import matplotlib.pyplot as plt\n\nfrom sklearn import svm\nfrom sklearn.metrics import RocCurveDisplay, auc\nfrom sklearn.model_selection import StratifiedKFold\n\nn_splits = 6\ncv = StratifiedKFold(n_splits=n_splits)\nclassifier = svm.SVC(kernel=\"linear\", probability=True, random_state=random_state)\n\ntprs = []\naucs = []\nmean_fpr = np.linspace(0, 1, 100)\n\nfig, ax = plt.subplots(figsize=(6, 6))\nfor fold, (train, test) in enumerate(cv.split(X, y)):\n classifier.fit(X[train], y[train])\n viz = RocCurveDisplay.from_estimator(\n classifier,\n X[test],\n y[test],\n name=f\"ROC fold {fold}\",\n alpha=0.3,\n lw=1,\n ax=ax,\n plot_chance_level=(fold == n_splits - 1),\n )\n interp_tpr = np.interp(mean_fpr, viz.fpr, viz.tpr)\n interp_tpr[0] = 0.0\n tprs.append(interp_tpr)\n aucs.append(viz.roc_auc)\n\nmean_tpr = np.mean(tprs, axis=0)\nmean_tpr[-1] = 1.0\nmean_auc = auc(mean_fpr, mean_tpr)\nstd_auc = np.std(aucs)\nax.plot(\n mean_fpr,\n mean_tpr,\n color=\"b\",\n label=r\"Mean ROC (AUC = %0.2f $\\pm$ %0.2f)\" % (mean_auc, std_auc),\n lw=2,\n alpha=0.8,\n)\n\nstd_tpr = np.std(tprs, axis=0)\ntprs_upper = np.minimum(mean_tpr + std_tpr, 1)\ntprs_lower = np.maximum(mean_tpr - std_tpr, 0)\nax.fill_between(\n mean_fpr,\n tprs_lower,\n tprs_upper,\n color=\"grey\",\n alpha=0.2,\n label=r\"$\\pm$ 1 std. dev.\",\n)\n\nax.set(\n xlim=[-0.05, 1.05],\n ylim=[-0.05, 1.05],\n xlabel=\"False Positive Rate\",\n ylabel=\"True Positive Rate\",\n title=f\"Mean ROC curve with variability\\n(Positive label '{target_names[1]}')\",\n)\nax.axis(\"square\")\nax.legend(loc=\"lower right\")\nplt.show()"
61+
"import matplotlib.pyplot as plt\n\nfrom sklearn import svm\nfrom sklearn.metrics import RocCurveDisplay, auc\nfrom sklearn.model_selection import StratifiedKFold\n\nn_splits = 6\ncv = StratifiedKFold(n_splits=n_splits)\nclassifier = svm.SVC(kernel=\"linear\", probability=True, random_state=random_state)\n\ntprs = []\naucs = []\nmean_fpr = np.linspace(0, 1, 100)\n\nfig, ax = plt.subplots(figsize=(6, 6))\nfor fold, (train, test) in enumerate(cv.split(X, y)):\n classifier.fit(X[train], y[train])\n viz = RocCurveDisplay.from_estimator(\n classifier,\n X[test],\n y[test],\n name=f\"ROC fold {fold}\",\n alpha=0.3,\n lw=1,\n ax=ax,\n plot_chance_level=(fold == n_splits - 1),\n )\n interp_tpr = np.interp(mean_fpr, viz.fpr, viz.tpr)\n interp_tpr[0] = 0.0\n tprs.append(interp_tpr)\n aucs.append(viz.roc_auc)\n\nmean_tpr = np.mean(tprs, axis=0)\nmean_tpr[-1] = 1.0\nmean_auc = auc(mean_fpr, mean_tpr)\nstd_auc = np.std(aucs)\nax.plot(\n mean_fpr,\n mean_tpr,\n color=\"b\",\n label=r\"Mean ROC (AUC = %0.2f $\\pm$ %0.2f)\" % (mean_auc, std_auc),\n lw=2,\n alpha=0.8,\n)\n\nstd_tpr = np.std(tprs, axis=0)\ntprs_upper = np.minimum(mean_tpr + std_tpr, 1)\ntprs_lower = np.maximum(mean_tpr - std_tpr, 0)\nax.fill_between(\n mean_fpr,\n tprs_lower,\n tprs_upper,\n color=\"grey\",\n alpha=0.2,\n label=r\"$\\pm$ 1 std. dev.\",\n)\n\nax.set(\n xlabel=\"False Positive Rate\",\n ylabel=\"True Positive Rate\",\n title=f\"Mean ROC curve with variability\\n(Positive label '{target_names[1]}')\",\n)\nax.legend(loc=\"lower right\")\nplt.show()"
6262
]
6363
}
6464
],
Binary file not shown.

dev/_downloads/24475810034a0d0d190a9de0f87d72b5/plot_all_scaling.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,8 @@ def make_plot(item_idx):
265265
make_plot(0)
266266

267267
# %%
268+
# .. _plot_all_scaling_standard_scaler_section:
269+
#
268270
# StandardScaler
269271
# --------------
270272
#
@@ -285,6 +287,8 @@ def make_plot(item_idx):
285287
make_plot(1)
286288

287289
# %%
290+
# .. _plot_all_scaling_minmax_scaler_section:
291+
#
288292
# MinMaxScaler
289293
# ------------
290294
#
@@ -301,6 +305,8 @@ def make_plot(item_idx):
301305
make_plot(2)
302306

303307
# %%
308+
# .. _plot_all_scaling_max_abs_scaler_section:
309+
#
304310
# MaxAbsScaler
305311
# ------------
306312
#
@@ -318,6 +324,8 @@ def make_plot(item_idx):
318324
make_plot(3)
319325

320326
# %%
327+
# .. _plot_all_scaling_robust_scaler_section:
328+
#
321329
# RobustScaler
322330
# ------------
323331
#
@@ -335,6 +343,8 @@ def make_plot(item_idx):
335343
make_plot(4)
336344

337345
# %%
346+
# .. _plot_all_scaling_power_transformer_section:
347+
#
338348
# PowerTransformer
339349
# ----------------
340350
#
@@ -353,6 +363,8 @@ def make_plot(item_idx):
353363
make_plot(6)
354364

355365
# %%
366+
# .. _plot_all_scaling_quantile_transformer_section:
367+
#
356368
# QuantileTransformer (uniform output)
357369
# ------------------------------------
358370
#
@@ -384,6 +396,8 @@ def make_plot(item_idx):
384396
make_plot(8)
385397

386398
# %%
399+
# .. _plot_all_scaling_normalizer_section:
400+
#
387401
# Normalizer
388402
# ----------
389403
#

0 commit comments

Comments
 (0)