def display_img_and_representation(x, y, pathimage, y_etichetta):
print y[y_etichetta]
img = sio.imread(pathimage)
plt.figure(figsize=(12,4))
plt.subplot(1,2,1)
plt.imshow(img)
plt.subplot(1,2,2)
plt.plot(x)
plt.show()
评论列表
文章目录