Siamese network 训练神经网络存在两种形式: 第一种:通过Siamese network 和 三元组损失函数 来训练图片之间的间隔 第二种: 通过Siamese network 和 sigmoid函数来实现二分类的训练 第一种情况: 在最后一层使用得是128, 1, d(x(1), x ...
分类:
编程语言 时间:
2018-10-15 14:28:59
阅读次数:
845
1)机器学习模型理解 统计学习,神经网络 2)预测结果的衡量 代价函数(cost function)、损失函数(loss function) 3)线性回归是监督学习 ...
分类:
编程语言 时间:
2018-10-14 22:01:05
阅读次数:
230
用keras搭好模型架构之后的下一步,就是执行编译操作。在编译时,经常需要指定三个参数 loss optimizer metrics 这三个参数有两类选择: 使用字符串 使用标识符,如keras.losses,keras.optimizers,metrics包下面的函数 例如: 因为有时可以使用字符 ...
分类:
其他好文 时间:
2018-10-13 19:55:59
阅读次数:
1383
softmax loss: N是样本的数量,i代表第i个样本,j代表第j个类别,fyi代表着第i个样本所属的类别的分数 fyi是全连接层的输出,代表着每一个类别的分数, 每一个分数即为权重W和特征向量X的内积 每个样本的softmax值即为: L-softmax loss: 假设一个2分类问题,x属 ...
分类:
其他好文 时间:
2018-10-12 13:57:31
阅读次数:
1385
Introduction Under some circumstances, it is useful for a client or server to become aware of the termination or loss of connection with its peer. In ...
分类:
其他好文 时间:
2018-10-11 01:30:47
阅读次数:
160
第一种形式:y=0/1 第二种形式:y=+1/-1 第一种形式的损失函数可由极大似然估计推出: 第二种形式的损失函数: , 参考:https://en.wikipedia.org/wiki/Loss_functions_for_classification ...
分类:
其他好文 时间:
2018-10-08 00:50:01
阅读次数:
893
数据集 Mnist数据集:http://yann.lecun.com/exdb/mnist/ 训练 测试 ...
分类:
其他好文 时间:
2018-10-06 23:09:39
阅读次数:
503
```
import tensorflow as tf # e,即event,代表某一个batch的日志记录
for e in tf.train.summary_iterator('./log/events.out.tfevents.1538814721.7226610225d8'): # v,即v... ...
分类:
其他好文 时间:
2018-10-06 17:49:20
阅读次数:
840
照搬pytorch官方代码,只是将数据集换成了INRIAPerson数据集中的train和test文件夹。 贴下代码和效果,代码是官方的,就不详细解释了。 微调和特征提取两种方法的效果都很棒 ...
分类:
其他好文 时间:
2018-10-06 15:33:35
阅读次数:
162
Example The first line of Figure 14-7 (number 40) indicates the first time ACK 23801 is received The window update at time 0.853 is an ACK with a dupl ...
分类:
其他好文 时间:
2018-10-05 20:24:49
阅读次数:
414