![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
TensorFlow
文章平均质量分 73
TensorFlow 2.0的系列文章,值得学习。
herosunly
985院校硕士毕业,现担任算法研究员一职,热衷于机器学习算法研究与应用。曾获得阿里云天池安全恶意程序检测第一名,科大讯飞恶意软件分类挑战赛第三名,CCF恶意软件家族分类第四名,科大讯飞阿尔茨海默综合症预测挑战赛第四名,科大讯飞事件抽取挑战赛第七名,Datacon大数据安全分析比赛第五名。拥有多项发明专利。对机器学习和深度学习拥有自己独到的见解。曾经辅导过若干个非计算机专业的学生进入到算法行业就业。希望和大家一起成长进步。
展开
-
英语常用句子
安装过程具有依赖关系,必须安装所示顺序进行安装。 1. 安装Keras相关库 Keras Applications https://files.pythonhosted.org/packages/90/85/64c82949765cfb246bbdaf5aca2d55f400f792655927a017710a78445def/Keras_Applications-1.0.7-py2.py3...原创 2019-04-08 17:03:30 · 10062 阅读 · 0 评论 -
TensorFlow Records, Example and Sequence Example Encodings
1. 不同类型的数据 import tensorflow as tf import numpy as np sess = tf.InteractiveSession() 1.1 单层array 单层array使用的API是tf.train.Feature和tf.train.xList() #Example of int array data_a = value = np.array([1, 2,...原创 2019-06-05 12:24:52 · 16921 阅读 · 1 评论 -
TensorFlow 1.x 基本知识总结
1. fetch和feed 1.1 fetch可以在一个会话中同时执行多个op input1 = tf.constant(3.0) input2 = tf.constant(2.0) input3 = tf.constant(5.0) add = tf.add(input2,input3) mul = tf.multiply(input1,add) with tf.Session() as s...原创 2019-05-28 12:36:19 · 1554 阅读 · 0 评论 -
tensorflow get_variabe()和scope
tf.Variable()和tf.get_variable()的区别 TensorFlow的文档里推荐尽量使用tf.get_variable()。tf.Variable()必须提供一个初始值,这一般通过numpy(或者Python)的随机函数来生成,初始值在传入的时候已经确定(但还没有真正初始化变量,还需要用session.run来初始化变量)。而tf.get_variable()一般通过in...原创 2019-05-17 14:44:45 · 7289 阅读 · 2 评论 -
如何在 Keras 开发过程中获取可复现的结果
在模型的开发过程中,能够在一次次的运行中获得可复现的结果,以确定性能的变化是来自模型还是数据集的变化,或者仅仅是一些新的随机样本点带来的结果,有时候是很有用处的。下面的代码片段提供了一个如何获得可复现结果的例子 – 针对 Python 3 环境的 TensorFlow 后端。 import numpy as np import tensorflow as tf import random as...原创 2019-05-20 16:26:54 · 2709 阅读 · 7 评论 -
tf.app.flags
flags机制是Tensorflow中经常要使用到的知识,具体内容如下所示: 从本质上来说,tf.app.flags是Python参数解析模块的装饰器,它通常用于处理命令行参数,但也有其他的功能。 举例来说,假设输入为: python distribute.py --job_name="ps" --task_index=0 则参数为job_name=“ps”、task_index=0...原创 2019-05-15 09:56:08 · 19267 阅读 · 4 评论 -
tf.nn.con2d
1. API参数介绍 tf.nn.conv2d((input, filter, strides, padding, use_cudnn_on_gpu=None, data_format=None, name=None) 其中input的默认输入格式为NHWC,即为[batch, in_height, in_width, in_chanels]。 filter的输入格式为HWIO,[fi...原创 2019-05-19 12:10:49 · 2000 阅读 · 2 评论 -
tensorflow API使用记录
0. 常用函数 1. tf.nn.bias_add 2. tf.tensordot 3. 交叉熵的不同API原创 2019-05-19 11:02:14 · 5898 阅读 · 2 评论 -
Getting Started with Tensorflow 读书笔记
import tensorflow as tf x = tf.constant(1,name='x') y = tf.Variable(x+9,name='y') print(y) 显示结果为<tensorflow.python.ops.variables.Variable object at 0x7f30ccbf9190>,为什么显示结果不为10呢? 如何才能让它显示10...原创 2019-05-14 14:32:43 · 2205 阅读 · 2 评论 -
A Practical Guide for Debugging TensorFlow Codes
A Practical Guide for Debugging TensorFlow Codes .author[Jongwook Choi] .small[.white[Feb 17th, 2017] .green[Initial Version: June 18th, 2016]] .x-small[https://github.com/wookayin/tensorflow-talk-de...原创 2019-05-05 10:42:11 · 12700 阅读 · 2 评论 -
Relation Classification via Convolutional Deep Neural Network 代码研读
1. base.py 训练集的数据格式可参考:3 12 12 15 15 the system as described above has its greatest application in an arrayed configuration of antenna elements 转换后的数据为一个列表,每个列表元素为[标签,实体1,实体2,句子],其中实体1为[实体1起始位置,实体...原创 2019-06-04 16:53:48 · 5968 阅读 · 0 评论