一般来讲,这个问题是由于使用tensorflow2.x从而无法导入mninst。tensorflow2.x将数据集集成在Keras中。

解决方法:将代码改为

import tensorflow as tf
tf.__version__
mint=tf.keras.datasets.mnist
(x_,y_),(x_1,y_1)=mint.load_data()
import matplotlib.pyplot as plt
plt.imshow(x_[0], cmap="binary")
plt.show()

  

相关文章:

  • 2022-12-23
  • 2022-01-05
  • 2021-08-30
  • 2021-08-20
  • 2021-11-13
  • 2021-08-22
  • 2021-08-21
  • 2022-12-23
猜你喜欢
  • 2021-10-10
  • 2021-03-30
  • 2021-04-30
  • 2021-12-22
  • 2022-12-23
  • 2021-07-17
相关资源
相似解决方案