Merge pull request #276 from dgwozdz/master

Correction of a typo
main
Aurélien Geron 2018-08-07 16:08:50 +01:00 committed by GitHub
commit c2952be7f2
1 changed files with 1 additions and 1 deletions

View File

@ -2697,7 +2697,7 @@
" coeffs = silhouette_coefficients[y_pred == i]\n", " coeffs = silhouette_coefficients[y_pred == i]\n",
" coeffs.sort()\n", " coeffs.sort()\n",
"\n", "\n",
" color = matplotlib.cm.spectral(i / k)\n", " color = matplotlib.cm.Spectral(i / k)\n",
" plt.fill_betweenx(np.arange(pos, pos + len(coeffs)), 0, coeffs,\n", " plt.fill_betweenx(np.arange(pos, pos + len(coeffs)), 0, coeffs,\n",
" facecolor=color, edgecolor=color, alpha=0.7)\n", " facecolor=color, edgecolor=color, alpha=0.7)\n",
" ticks.append(pos + len(coeffs) // 2)\n", " ticks.append(pos + len(coeffs) // 2)\n",