随笔分类 -  tensorflow

摘要:ref: Broadcasting Tensorflow - Learning Tensorflow When we operate on arrays of different dimensionality, they can combine in different ways, either e 阅读全文
posted @ 2021-03-11 16:13 awr2sdgae 阅读(150) 评论(0) 推荐(0)
摘要:def embedding(inputs, vocab_size, num_units, zero_pad=True, scale=True, scope="embedding", reuse=None): '''Embeds a given tensor. Args: inputs: A `Ten 阅读全文
posted @ 2021-03-09 14:01 awr2sdgae 阅读(116) 评论(0) 推荐(0)
摘要:An overconfident model is not calibrated and its predicted probabilities are consistently higher than the accuracy. For example, it may predict 0.9 fo 阅读全文
posted @ 2021-03-09 13:57 awr2sdgae 阅读(118) 评论(0) 推荐(0)
摘要:由于生产环境目前还以1.13版本为主, 而google为了推进2.x已经下架了大部分官方教程, 这里简单做一些记录 1. name_scope / variable_scope 注意 tf.get_variable 不受 name_scope 影响 https://blog.csdn.net/u01 阅读全文
posted @ 2021-02-22 00:48 awr2sdgae 阅读(195) 评论(0) 推荐(0)
摘要:二分类模型做了3个实现 1. tensorflow lower API 实现逻辑回归二分类2. tensorflow senior API 实现二分类(sigmod函数由API内部默认实现)3. sklearn 的逻辑回归包用于比较输出 需要注意的是 tensorflow 中对于函数输出 nan 与 阅读全文
posted @ 2021-02-14 18:24 awr2sdgae 阅读(110) 评论(0) 推荐(0)