1. torch.renorm(input, p, dim, maxnorm, out=None) → Tensor Returns a tensor where each sub-tensor of input along dimension dim is normalized such that ...
分类:
其他好文 时间:
2019-04-17 23:21:58
阅读次数:
302
使用tensorflow实现机器学习中的线性拟合这个例子是模拟的单变量线性回归,通过提高单变量的阶数来增加特征数量,例如:4阶相当于分解为四个特征这种思想同样适用于多变量线性回归 ...
分类:
其他好文 时间:
2019-04-17 00:12:50
阅读次数:
171
gen_sample_by_captcha.py 生成验证码图片 sample.py 配置文件 verify_and_split_data.py train_model_v2.py 训练模型,训练过程中同时输出训练集和验证集的准确率 训练结果 test_batch.py 批量验证 程序结果 封装识别 ...
分类:
其他好文 时间:
2019-04-16 15:58:37
阅读次数:
482
标量(scalar):一个标量就是一个单独的数。通常小写变量。 向量(vector):一个向量是一列数。这些数是有序排列的。通常粗体的小写变量名称。 矩阵(matrix):二维数组。通常大写粗体。 张量(tensor):一个数组中的元素分布在若干维坐标的规则网络中,称之为张量。我们使用 字体 A 来 ...
分类:
其他好文 时间:
2019-04-15 20:04:12
阅读次数:
137
报错: TypeError: Fetch argument 0.484375 has invalid type <class 'numpy.float32'>, must be a string or Tensor. (Can not convert a float32 into a Tensor ...
分类:
其他好文 时间:
2019-04-13 19:05:00
阅读次数:
162
1、处理数据 2、调试代码 主要遇到了两个问题 问题一:TypeError: Fetch argument 0.484375 has invalid type <class 'numpy.float32'>, must be a string or Tensor. (Can not convert ...
分类:
其他好文 时间:
2019-04-13 19:04:22
阅读次数:
127
首先看到训练时会在命令行里输出 loss 和 total loss,那是怎么做到的呢,通过分析 train.py 源码,看到如下代码 是把 total_loss 加到了 summaries 里,然后就会输出在命令行了,那 summaries 是什么呢? 通过百度看到一篇不错的博客:https://w ...
分类:
其他好文 时间:
2019-04-09 11:02:10
阅读次数:
457
恢复内容开始 1/ 注意力机制(attention mechanism) https://lilianweng.github.io/lil-log/2018/06/24/attention-attention.html 2/Pointer network https://www.translator ...
分类:
其他好文 时间:
2019-04-05 16:50:43
阅读次数:
177
Ubuntu安装Python3.6: 首先拉取远程仓库sudo add-apt-repository ppa:jonathonf/python-3.6 更新源sudo apt-get update在线安装sudo apt-get install python3.6 更改默认值,python默认为Py ...
分类:
系统相关 时间:
2019-04-05 09:13:28
阅读次数:
166
1. Element-wise Multiplication * torch.Tensor.mul() torch.mul() 2. Matrix Multiplication torch.Tensor.matmul() torch.matmul() torch.Tensor.mm() torch. ...
分类:
其他好文 时间:
2019-04-01 16:56:37
阅读次数:
150