數字數據集#

此數據集由 1797 張 8x8 圖像組成。 每張圖像(如下所示)都是一個手寫數字。 為了利用這樣的 8x8 圖像,我們必須首先將其轉換為長度為 64 的特徵向量。

更多關於這個資料集的資訊請見 這裡

plot digits last image
# Code source: Gaël Varoquaux
# Modified for documentation by Jaques Grobler
# License: BSD 3 clause

import matplotlib.pyplot as plt

from sklearn import datasets

# Load the digits dataset
digits = datasets.load_digits()

# Display the last digit
plt.figure(1, figsize=(3, 3))
plt.imshow(digits.images[-1], cmap=plt.cm.gray_r, interpolation="nearest")
plt.show()

腳本總執行時間:(0 分鐘 0.064 秒)

相關範例

手寫數字辨識

手寫數字辨識

特徵凝聚

特徵凝聚

在數字的二維嵌入上進行各種凝聚分群

在數字的二維嵌入上進行各種凝聚分群

標籤傳播數字:展示性能

標籤傳播數字:展示性能

圖庫由 Sphinx-Gallery 產生