Skip to content

Commit d644bcb

Browse files
committed
Pushing the docs to dev/ for branch: master, commit d9a0774afc5d30a8e98a25e1e8c3a0c428e88dfa
1 parent 912b763 commit d644bcb

File tree

1,051 files changed

+3214
-3214
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,051 files changed

+3214
-3214
lines changed
-7 Bytes
Binary file not shown.
-7 Bytes
Binary file not shown.

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.externals.funcsigs 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 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))"
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.externals.funcsigs import signature
140+
from sklearn.utils.fixes import signature
141141

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

dev/_downloads/scikit-learn-docs.pdf

8.93 KB
Binary file not shown.

0 commit comments

Comments
 (0)