自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

原创 TensorFlow学习笔记9:LSTM搭建

用TensorFlow来搭建LSTM,这里搭建LSTM来进行MNIST回归。对于MNIST分类问题,28*28的图片被LSTM视为像素序列,从而进行分类。代码来源:https://github.com/aymericdamien/TensorFlow-Examples首先,设置基本的参数from __future__ import print_functionimport tens

2017-11-29 10:35:02 3855

原创 TensorFlow学习笔记8:CNN搭建(layer,estimator等)

同样的,学习一下用layer等API来搭建CNN。代码来源:https://github.com/aymericdamien/TensorFlow-Examples首先,设置相关参数。from __future__ import division, print_function, absolute_import# Import MNIST datafrom tensorflow.

2017-11-28 19:43:35 2047

原创 TensorFlow学习笔记7:CNN搭建

代码来源:https://github.com/aymericdamien/TensorFlow-Examples用TensorFlow来搭建CNN解决MNIST分类。from __future__ import division, print_function, absolute_importimport tensorflow as tf# Import MNIST dataf

2017-11-28 16:29:06 323

原创 TensorFlow学习笔记6:神经网络搭建(layer,estimator等)

这次来看一看如何用layer等API来搭建神经网络。from __future__ import print_function# Import MNIST datafrom tensorflow.examples.tutorials.mnist import input_datamnist = input_data.read_data_sets("/tmp/data/", one_ho

2017-11-28 14:57:00 743

原创 TensorFlow学习笔记5:神经网络搭建

代码来源:https://github.com/aymericdamien/TensorFlow-Examples首先看一下用最基本的矩阵运算来搭建神经网络解决MNIST分类问题,比如搭建一个两层的全连接网络。from __future__ import print_function# Import MNIST datafrom tensorflow.examples.tutoria

2017-11-28 13:56:08 1871

原创 TensorFlow学习笔记4:logistic回归

代码来源: https://github.com/aymericdamien/TensorFlow-Examples/'''A logistic regression learning algorithm example using TensorFlow library.This example is using the MNIST database of handwritten digi

2017-11-26 13:56:49 633

原创 TensorFlow学习笔记3:线性回归

代码来源:https://github.com/aymericdamien/TensorFlow-Examples/'''A linear regression learning algorithm example using TensorFlow library.Author: Aymeric DamienProject: https://github.com/aymericdami

2017-11-26 11:03:43 365 1

原创 TensorFlow学习笔记2:基本运算

import tensorflow as tfa = tf.constant(2)b = tf.constant(3)with tf.Session() as sess: print "a: %i" % sess.run(a), "b: %i" % sess.run(b) print "Addition with constants: %i" % sess.run(a+b

2017-11-26 10:33:39 1629

原创 TensorFlow学习笔记1:Hello TensorFlow!

根据 https://github.com/aymericdamien/TensorFlow-Examples 学习TensorFlowimport tensorflow as tfhello = tf.constant('Hello, TensorFlow!')sess = tf.Session()print(sess.run(hello))其中第二行定义了常量hello,在Ten

2017-11-26 10:14:11 433

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除