主页 返回 进入列表

  • 总根 >计算机与教育 >课程 >高等教育课程 >本科课程 >模式识别与人工智能 >ZSTU-(2020-2021)-1 >学生作业 >2018326691034张宇路

  • 实验三

    from tensorflow import keras
    import tensorflow as tf
    import mnist_reader
    import numpy as np
    import matplotlib.pyplot as plt
    # 加载数据
    (train_images, train_labels), (test_images, test_labels) = mnist_reader.load_data('../data/mnist')
    class_names = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0']
    train_images = train_images / 255.0
    test_images = test_images / 255.0
    plt.figure(figsize=(10, 10))
    for i in range(25):
    plt.subplot(5, 5, i + 1)
    plt.xticks([])


    全文(Full Article): https://yvsou.com/dc/single.php?groupid=28.218.81608.81609.81613.85931.85932.83187.85997&pid=1338641&startgroup=