前面章节中,我们加载了SciKit-Learn自带的数据集digits,可以通过以下语句查看数据集中包含哪些主要内容:
digits.keys()
输出
dict_keys(['data', 'target', 'target_names', 'images', 'DESCR'])
data 样本数据
target 目标值
target_names 目标名称
images 图像格式(二维)的样本数据
DESCR 描述信息
查看数据集的描述:
print(digits.DESCR)
输出
.. _digits_dataset:
Optical recognition of handwritten digits dataset--------------------------------------------------
**Data Set Characteristics:**:Number of Instances:5620:Number of Attributes:64:Attribute Information: 8x8 image of integer pixelsin the range 0..16.
:Missing Attribute Values: None
:Creator: E. Alpaydin (alpaydin'@'boun.edu.tr)
:Date: July;1998Thisis a copy of the test set of the UCI ML hand-written digits datasets
https://archive.ics.uci.edu/ml/datasets/