#multi_layer Perceptron by ffzhang
import numpy as np
import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
import time
import os
os.environ["CUDA_VISIBLE_DEVICES"]='2'
mnist = input_data.read_data_sets('data/mnist',one_hot=True)
mnist.train.images.shape
mnist.train.labels.shape
#define placeholder to save the training data
X = tf.placeholder(tf.float32,[None,
多层感知机(multi-layer perceptron)实现手写体分类(TensorFlow)
最新推荐文章于 2024-06-03 23:32:23 发布
本文介绍了如何运用多层感知机(MLP)结合TensorFlow库,实现手写体识别任务。通过搭建神经网络模型,训练并优化参数,最终达到对手写数字的高精度分类。
摘要由CSDN通过智能技术生成