自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 资源 (2)
  • 收藏
  • 关注

原创 tensorflow 中stack和unstack函数的使用

tensorflow中stack和unstack的使用,我们看代码分析:import tensorflow as tf a = tf.constant([2,3,1]) b = tf.constant([6,8,9])c = tf.stack([a,b],axis=0)d = tf.stack([a,b],axis=1) with tf.Session() as sess:

2017-12-30 22:04:25 3589

原创 window下安装Anaconda

本人用的是win7安装的,具体方法见以下anaconda安装比较简单Anaconda下载网址 我选择的是python3.6,也就是左边的 下载文件后,点击运行: 点击next点击 I Agree选择ALL Users ,点击next选择安装路径,并点击next这个地方全部勾选,全部选择,点击install,等待安装,可能需要几分钟完成安装安装成功后,在开始菜单就可以看到:然后就可以开始P

2017-12-29 16:09:48 904

原创 Tensorflow 中TFRecord格式转换与读取

把csv格式文件转化为TFRecordTensorflow提供了TFRecord格式来存储数据,以下是将csv格式转化为TFRecord格式的代码import tensorflow as tfimport pandas as pdimport numpy as nptrain = pd.read_csv('train.csv')label = train['label'].valuesy_tr

2017-12-29 15:55:15 5151

原创 tensorflow实现逻辑斯特回归(logistic regression)

tensorflow实现逻辑斯特回归(logistic regression)import tensorflow as tfimport numpy as npfrom tensorflow.examples.tutorials import mnistmnist = mnist.input_data.read_data_sets('./data/mnist',one_hot=True)x =

2017-12-28 17:07:40 1067

原创 tensorflow实现多项式回归

tensorflow实现多项式回归以下代码是用tensorflow实现多项式回归import tensorflow as tfimport numpy as npimport matplotlib.pyplot as pltimport randomn_samples =100X = np.linspace(-3,3,n_samples)Y = np.sin(X) + np.random.

2017-12-28 15:13:46 1376

原创 tensorflow 实现线性回归

tensorflow 实现线性回归首先我们构造数据import tensorflow as tfimport numpy as npimport matplotlib.pyplot as pltimport randomn_samples =100X = np.linspace(-3,3,n_samples)Y = np.sin(X) + np.random.uniform(0,1,n_

2017-12-28 12:05:05 295

原创 tensorboard 使用

tensorboard 使用首先我们随便定义一个图import tensorflow as tfx = tf.constant(6,name='x')y = tf.constant(8,name='y')z = tf.add(x,y,name='z')with tf.Session() as sess: writer = tf.summary.FileWriter('./graphs/con

2017-12-28 09:18:04 429

原创 Tensorflow实战(一)(MNIST手写字体识别TensorFlow实现)

笔者开始连载tensorflow教程,从MNIST实现开始,重点是在代码的实现,个人感觉把代码实现一遍,比看更加学得更加明白。import tensorflow as tffrom tensorflow.examples.tutorials.mnist import input_datamnist = input_data.read_data_sets('./data/',one_hot=True

2017-12-19 16:58:07 1321 1

原创 tensorflow 中tf.gather(params, indices, validate_indices=None, name=None) 函数讲解

tf.gathertf.gather(params, indices, validate_indices=None, name=None, axis=0)params 表示你输入的张量,indices表示你想要params张量中切片的维度,所以这个函数就是挑选出params中indices对应的数。举例子x = tf.constant(np.arange(8).reshape((2,2,2)))y

2017-12-09 16:35:54 1595

原创 numpy 中pad讲解

numpy 中np.pad的用法pad(array, pad_width, mode, **kwargs) 1、其中array代表需要填充的代码 2、pad_width 表示每个维度左右两边填充的数量,mode表示填充模式,可以是等值填充,常数填充等, 具体我们看一个例子:x=np.arange(8).reshape(2,2,2)k = np.pad(x,pad_width=((2,3),(

2017-12-08 19:53:07 4218

pandas学习笔记(一)

pandas的Series学习笔记

2017-05-03

全球磁场绘图程序

本程序包含绘制全球磁场图的详细讲解,里面对每一句程序都有说明,

2017-03-12

空空如也

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

TA关注的人

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