自定义博客皮肤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 CNN

简单的分类任务import tensorflow as tffrom tensorflow.examples.tutorials.mnist import input_datamnist = input_data.read_data_sets('data/', one_hot=True)# to be able to rerun the model without overwritin...

2019-07-03 16:25:53 107

转载 Tensorflow with Hidden Layers

简单的只有一层隐藏层import tensorflow as tffrom tensorflow.examples.tutorials.mnist import input_datamnist = input_data.read_data_sets('data/', one_hot=True)num_classes = 10batch_size = 64hidden_units =...

2019-07-02 22:37:31 205

转载 Tensorflow Logistic

写代码真的要小心的,小问题调试半天。。。import tensorflow as tffrom tensorflow.examples.tutorials.mnist import input_datamnist = input_data.read_data_sets('data/', one_hot=True)num_classes = 10input_size = 784tra...

2019-07-01 23:42:05 119

转载 Tensorflow Mnist数据集

Tensorflow自带的Mnist数据集相关情况import tensorflow as tfimport numpy as npimport matplotlib.pyplot as pltfrom tensorflow.examples.tutorials.mnist import input_data#数据会自动在线下载,第一次较慢,第二次之后就好了mnist = input_...

2019-07-01 18:16:19 102

转载 Tensorflow LinearR

构造数据,实现简单的线性回归import tensorflow as tfimport matplotlib.pyplot as pltimport numpy as np#模拟数据num_points = 1000vec_points = []for i in range(num_points): x = np.random.normal(0.0,0.5) y ...

2019-07-01 17:33:57 171

转载 Tensorflow Placeholder

Placeholder可以用来取数据import tensorflow as tfinput_1 = tf.placeholder(tf.float32)#先把坑占了,不用提前指定具体值input_2 = tf.placeholder(tf.float32)#比如每个batchoutput_op = tf.multiply(input_1,input_2)with tf.Sessi...

2019-07-01 00:12:57 86

转载 Numpy to Tensor

numpy数据转成Tensor小Demoimport numpy as npimport tensorflow as tftemp_np = np.zeros((3,3))print(type(temp_np))#<class 'numpy.ndarray'>tensor_temp = tf.convert_to_tensor(temp_np)#<class 'ten...

2019-06-30 23:54:23 449

转载 Tensorflow Variable&Constant

tensorflow变量定义和赋值没有python那么简单,需要在session中run才能拿到结果import tensorflow as tfw = tf.Variable([[1.0,2.0]])print(w)#<tf.Variable 'Variable:0' shape=(1, 2) dtype=float32_ref>x = tf.Variable([[1.0]...

2019-06-30 23:17:38 179

转载 Tensorflow环境安装配置

tensorflow的环境配置主要分为两步:anaconda安装和配置tensorflow包下载和安装在命令行输入:conda install tensorflow然后就可以开始写tensorflow小程序了

2019-06-30 22:38:14 125

空空如也

空空如也

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

TA关注的人

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