由于博客有一个顶部浮动菜单,这样点击锚点链接之后,菜单会遮住一部分锚点后的内容。为了解决这个问题需要让点击锚点后的位置有个偏移。可以使用 CSS 实现。
1 | .headerlink:before { |
This a simple example of the classification with Libsvm in Matlab.
You can download the wine data from here.
1 | uiimport('wine.data'); |
1 | figure; |
System: Ubuntu with gcc installed
1 | cd libsvm-3.2/matlab |
1 | cd ../ |
Result:
Error using load
Number of columns on line 3 of ASCII file heart_scale must be the same as previous lines.
1 | [heart_scale_label, heart_scale_inst] = libsvmread('heart_scale'); |
Result:
*
optimization finished, #iter = 162
nu = 0.431029
obj = -100.877288, rho = 0.424462
nSV = 132, nBSV = 107
Total nSV = 132
model =
struct with fields:
Parameters: [5×1 double]
nr_class: 2
totalSV: 132
rho: 0.4245
Label: [2×1 double]
sv_indices: [132×1 double]
ProbA: []
ProbB: []
nSV: [2×1 double]
sv_coef: [132×1 double]
SVs: [132×13 double]
1 | [predict_label, accuracy, decision_values] = svmpredict(heart_scale_label, heart_scale_inst, model); |
Result:
Accuracy = 86.6667% (234/270) (classification)
本文环境:所有命令在 Kali Linux 下执行。
昨天的确是一个 tough day 。由于记性不好,四天前设置的 Keepass 主密码终于“如愿以偿”地被我遗忘了,而其中,保存了对于我来说极其重要的东西。16 位的密码中,我依稀地记得前 7 位和后 5 位“应该”、“似乎”是什么样子的,第十一位也记得,不过有些不确定。第八位我“幻想”出了一个答案。也就是说,我至少要再想出 2 位密码,至多则是 4 位,其中可能包含了大小写字母、数字,和特殊符号。
本着由易到难的想法,我先假定我模糊的记忆和幻想都是真实的。步骤是:先猜测 2 位,无果后,猜测 3 位,无果后,猜测 4 位。
出于减小范围的考虑,我先根据记忆筛掉完全不可能的字符,如没有穷举成功,方则使用全集。
本次操作有几个不确定因素:
我无法保证,已经记得的密码是绝对正确的。可能无功而返。
在减小范围时,我可能根据记忆错误地减掉了一些字符。
记录 OpenWrt/LEDE 下更新所有待更新软件包的方法。
1 | opkg update |