![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
机器学习
June0805
这个作者很懒,什么都没留下…
展开
-
使用TensorFlow实现多层感知机识别手写数字
这个例子仍旧是根据《TensorFlow实战》一书中敲的,使用TensorFlow搭建简单的神经网络,进行手写数字的识别。这个神经网络只有一个隐藏层,隐藏层节点数为300。下面是代码。from tensorflow.examples.tutorials.mnist import input_dataimport tensorflow as tf# 载入数据集,下载到本地更方便使用...原创 2020-03-02 20:44:10 · 506 阅读 · 0 评论 -
使用TensorFlow实现Softmax Regression识别手写数字
因为新冠病毒疫情,在家学习,没有带回什么书回家。今天在当当上网购的一本书《TensorFlow实战》到了,因为实验要使用BLSTM+CRF,所以先自己进行简单的学习,对照着里面的例子自己敲和理解,这里做一下记录。这个例子使用简单的Softmax Regression进行MNIST手写数字识别。将灰度图片展开为28*28=784的一维向量,识别的结果为0-9共10个结果,所以有10个分类。下面是...原创 2020-03-02 20:35:18 · 229 阅读 · 0 评论 -
使用Tensorflow + JupyterNotebook构建简单的神经网络
import numpy as npimport tensorflow as tfimport matplotlib as pltdef addlayer(inputs, insize, outsize, activefunction=None): Weight = tf.Variable(tf.random_normal([insize, outsize])) bias...原创 2019-03-06 15:24:08 · 2282 阅读 · 1 评论 -
使用Tensorboard进行可视化
上一篇博客中记录了使用Tensorflow和JupyterNotebook简单搭建一个神经网络,这篇博客在上一篇的基础上进行了修改,使用Tensorboard进行可视化。import numpy as npimport tensorflow as tfimport matplotlib.pyplot as pltdef addlayer(inputs, insize, outsize...原创 2019-03-06 16:01:59 · 302 阅读 · 0 评论