training set: 用来训练模型 validation set : 用来做model selection test set : 用来评估所选出来的model的实际性能 我们知道,在做模型训练之前,我们必须选择所训练的模型的形式:线性模型(y = wx+b)或者非线性模型(SVM,decisi ...
分类:
其他好文 时间:
2020-01-18 10:49:16
阅读次数:
97
记录一下李宏毅机器学习课程关于对抗攻击的内容; 1、 一般模型training过程: 输入x_0,调整模型Network的参数θ,使得输出y_0和y_true的loss越小越好;损失函数:L_train(θ) = C(y_0, y_true) Non-targeted Attack: 固定模型Net ...
分类:
其他好文 时间:
2020-01-17 23:03:56
阅读次数:
83
Android 7.0 以上 Charles 和 Fiddler 无法抓取 HTTPS 包的解决方式 https://johnnyshieh.me/posts/android-7-capture-https-package/ 发表于 2019-05-06 | 分类于 Android | 0 | 阅读... ...
分类:
移动开发 时间:
2020-01-13 11:04:12
阅读次数:
134
论文 "Decoupled Weight Decay Regularization" 中提到,Adam 在使用时,L2 regularization 与 weight decay 并不等价,并提出了 AdamW,在神经网络需要正则项时,用 AdamW 替换 Adam+L2 会得到更好的性能。 Ten ...
分类:
其他好文 时间:
2020-01-11 09:35:28
阅读次数:
177
一般使用transformers做bert finetune时,经常会编写如下类似的代码: 在BertModel(BertPreTrainedModel)中,对返回值outputs的解释如下: 这里的pooler_output指的是输出序列最后一个隐层,即CLS标签。查看forward函数的源码,最 ...
分类:
其他好文 时间:
2020-01-08 18:53:03
阅读次数:
637
原文 Text 1Among the annoying challenges facing the middle class is one that will probably go unmentioned in the next presidential campaign: What happen ...
分类:
其他好文 时间:
2020-01-08 14:16:40
阅读次数:
435
训练Doc2Vec模型之后,想要索取文档向量,却出现意外报错: for idx, docvec in enumerate(model.docvecs): if idx < 17600: x_train.append(docvec) else: x_test.append(docvec) 错误情况: ...
分类:
其他好文 时间:
2020-01-04 20:31:05
阅读次数:
172
1.HtmlUtil向页面输入String,会自动转为json格式 1)类HtmlUtil:向页面输出String package com.zys.training.util; import com.fasterxml.jackson.databind.ObjectMapper; import ja ...
分类:
其他好文 时间:
2019-12-31 21:22:30
阅读次数:
84
12.28 这一天补了上次两道CF上的题目,之后写了一堆dp模板,最后打了一把AtCoder,感觉相当不错,不过也是构造题比较玄学才能过吧。 A.Table Tennis Training 题意: 有2n个运动员,n张桌子。在x桌子上,赢的人会进入x 1,输的人会进入x+1,除了1和n桌子上的人之外 ...
分类:
其他好文 时间:
2019-12-31 14:21:04
阅读次数:
165