用随机森林识别手写数字
from sklearn.datasets import load_digits
digits = load_digits()
#显示前几个数字图像
fig = plt.figure(figsize=(6,6))
fig.subplots_adjust(left=0, right=1, bottom=0, top=1, hspace=0.05, wspace=0.05)
for i in range(64):
ax = fig.add_subplot(8,8,i+1, xticks=[], yticks=[])
ax.imshow(digi