
desultory_issue
我想听相声
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
numpy.random模块用法总结
出处:https://www.cnblogs.com/JetReily/p/9398148.html numpy.random.uniform(low=0.0, high=1.0, size=None) 生出size个符合均分布的浮点数,取值范围为[low, high),默认取值范围为[0, 1.0) >>> random.uniform() 0.39998074...转载 2018-12-07 17:03:22 · 142 阅读 · 0 评论 -
numpy.concatenate
numpy.concatenate的官方使用说明为: https://docs.scipy.org/doc/numpy-1.10.0/reference/generated/numpy.concatenate.html numpy.concatenate中有两个参数,一个是由被连接的数组组成的序列(a1, a2, ...);另一个就是axis。 1. 假设被连接的数组为a, b,numpy....原创 2018-12-08 09:38:01 · 557 阅读 · 0 评论 -
字符串格式化-.format()函数
转自:https://www.cnblogs.com/benric/p/4965224.html 另一篇讲解全面的.format()函数文章https://blog.youkuaiyun.com/i_chaoren/article/details/77922939 用法: 它通过{}和:来代替传统%方式 1、使用位置参数 要点:从以下例子可以看出位置参数不受顺序约束,且可以为{},只要fo...转载 2018-12-12 15:45:50 · 312 阅读 · 0 评论 -
tf.keras遇见的坑:Output tensors to a Model must be the output of a TensorFlow `Layer`
报错为:Output tensors to a Model must be the output of a TensorFlow `Layer` 再编写TEXT-CNN模型时,代码报错,以下为报错代码: convs = [] inputs = keras.layers.Input(shape=(256,)) embed1 = keras.layers.Embedding(10000, 32)...原创 2019-04-26 16:49:14 · 12205 阅读 · 2 评论