Skip to content

Commit 151d406

Browse files
committed
Pushing the docs to dev/ for branch: master, commit b8e751abf1aaaf9340e7666a934c82535e96cfd5
1 parent 25721af commit 151d406

File tree

1,100 files changed

+3344
-3388
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,100 files changed

+3344
-3388
lines changed
-10 Bytes
Binary file not shown.
-10 Bytes
Binary file not shown.

dev/_downloads/plot_document_classification_20newsgroups.ipynb

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

dev/_downloads/plot_document_classification_20newsgroups.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def size_mb(docs):
145145
len(data_train.data), data_train_size_mb))
146146
print("%d documents - %0.3fMB (test set)" % (
147147
len(data_test.data), data_test_size_mb))
148-
print("%d categories" % len(categories))
148+
print("%d categories" % len(target_names))
149149
print()
150150

151151
# split a training set and a test set

dev/_downloads/plot_precision_recall.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
},
8181
"outputs": [],
8282
"source": [
83-
"from sklearn.metrics import precision_recall_curve\nimport matplotlib.pyplot as plt\nfrom sklearn.utils.fixes import signature\n\nprecision, recall, _ = precision_recall_curve(y_test, y_score)\n\n# In matplotlib < 1.5, plt.fill_between does not have a 'step' argument\nstep_kwargs = ({'step': 'post'}\n if 'step' in signature(plt.fill_between).parameters\n else {})\nplt.step(recall, precision, color='b', alpha=0.2,\n where='post')\nplt.fill_between(recall, precision, alpha=0.2, color='b', **step_kwargs)\n\nplt.xlabel('Recall')\nplt.ylabel('Precision')\nplt.ylim([0.0, 1.05])\nplt.xlim([0.0, 1.0])\nplt.title('2-class Precision-Recall curve: AP={0:0.2f}'.format(\n average_precision))"
83+
"from sklearn.metrics import precision_recall_curve\nimport matplotlib.pyplot as plt\nfrom inspect import signature\n\nprecision, recall, _ = precision_recall_curve(y_test, y_score)\n\n# In matplotlib < 1.5, plt.fill_between does not have a 'step' argument\nstep_kwargs = ({'step': 'post'}\n if 'step' in signature(plt.fill_between).parameters\n else {})\nplt.step(recall, precision, color='b', alpha=0.2,\n where='post')\nplt.fill_between(recall, precision, alpha=0.2, color='b', **step_kwargs)\n\nplt.xlabel('Recall')\nplt.ylabel('Precision')\nplt.ylim([0.0, 1.05])\nplt.xlim([0.0, 1.0])\nplt.title('2-class Precision-Recall curve: AP={0:0.2f}'.format(\n average_precision))"
8484
]
8585
},
8686
{

dev/_downloads/plot_precision_recall.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137
# ................................
138138
from sklearn.metrics import precision_recall_curve
139139
import matplotlib.pyplot as plt
140-
from sklearn.utils.fixes import signature
140+
from inspect import signature
141141

142142
precision, recall, _ = precision_recall_curve(y_test, y_score)
143143

dev/_downloads/scikit-learn-docs.pdf

-5.54 KB
Binary file not shown.

dev/_images/iris.png

0 Bytes
-290 Bytes
-290 Bytes

0 commit comments

Comments
 (0)