-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
1292 lines (845 loc) · 47.3 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 5.1.1">
<link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
<link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
<link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
<link rel="mask-icon" href="/images/logo.svg" color="#222">
<link rel="stylesheet" href="/css/main.css">
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Noto Serif SC:300,300italic,400,400italic,700,700italic&display=swap&subset=latin,latin-ext">
<link rel="stylesheet" href="/lib/font-awesome/css/all.min.css">
<script id="hexo-configurations">
var NexT = window.NexT || {};
var CONFIG = {"hostname":"sunyancn.github.io","root":"/","scheme":"Pisces","version":"7.8.0","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":true,"show_result":true,"style":"mac"},"back2top":{"enable":true,"sidebar":false,"scrollpercent":true},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":"valine","storage":true,"lazyload":false,"nav":null,"activeClass":"valine"},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":true,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},"path":"search.xml"};
</script>
<meta property="og:type" content="website">
<meta property="og:title" content="故事尾音">
<meta property="og:url" content="http://sunyancn.github.io/index.html">
<meta property="og:site_name" content="故事尾音">
<meta property="og:locale" content="zh_CN">
<meta property="article:author" content="故事尾音">
<meta property="article:tag" content="故事尾音">
<meta name="twitter:card" content="summary">
<link rel="canonical" href="http://sunyancn.github.io/">
<script id="page-configurations">
// https://hexo.io/docs/variables.html
CONFIG.page = {
sidebar: "",
isHome : true,
isPost : false,
lang : 'zh-CN'
};
</script>
<script src="/lib/fireworks.js"></script><link rel="stylesheet" href="//cdn.jsdelivr.net/gh/theme-next/theme-next-needmoreshare2@1/needsharebutton.min.css"><style>
#needsharebutton-float {
bottom: 88px;
cursor: pointer;
left: -8px;
position: fixed;
z-index: 9999;
}
#needsharebutton-float .btn {
border: 1px solid $btn-default-border-color;
border-radius: 4px;
padding: 0 10px 0 14px;
}
</style>
<title>故事尾音</title>
<noscript>
<style>
.use-motion .brand,
.use-motion .menu-item,
.sidebar-inner,
.use-motion .post-block,
.use-motion .pagination,
.use-motion .comments,
.use-motion .post-header,
.use-motion .post-body,
.use-motion .collection-header { opacity: initial; }
.use-motion .site-title,
.use-motion .site-subtitle {
opacity: initial;
top: initial;
}
.use-motion .logo-line-before i { left: initial; }
.use-motion .logo-line-after i { right: initial; }
</style>
</noscript>
<link rel="alternate" href="/atom.xml" title="故事尾音" type="application/atom+xml">
</head>
<body itemscope itemtype="http://schema.org/WebPage">
<div class="container use-motion">
<div class="headband"></div>
<header class="header" itemscope itemtype="http://schema.org/WPHeader">
<div class="header-inner"><div class="site-brand-container">
<div class="site-nav-toggle">
<div class="toggle" aria-label="切换导航栏">
<span class="toggle-line toggle-line-first"></span>
<span class="toggle-line toggle-line-middle"></span>
<span class="toggle-line toggle-line-last"></span>
</div>
</div>
<div class="site-meta">
<a href="/" class="brand" rel="start">
<span class="logo-line-before"><i></i></span>
<h1 class="site-title">故事尾音</h1>
<span class="logo-line-after"><i></i></span>
</a>
<p class="site-subtitle" itemprop="description">喜欢推导也喜欢被推倒</p>
</div>
<div class="site-nav-right">
<div class="toggle popup-trigger">
<i class="fa fa-search fa-fw fa-lg"></i>
</div>
</div>
</div>
<nav class="site-nav">
<ul id="menu" class="main-menu menu">
<li class="menu-item menu-item-home">
<a href="/" rel="section"><i class="fa fa-home fa-fw"></i>站点首页</a>
</li>
<li class="menu-item menu-item-tags">
<a href="/tags/" rel="section"><i class="fa fa-tags fa-fw"></i>文章标签<span class="badge">94</span></a>
</li>
<li class="menu-item menu-item-categories">
<a href="/categories/" rel="section"><i class="fa fa-th fa-fw"></i>文章分类<span class="badge">17</span></a>
</li>
<li class="menu-item menu-item-archives">
<a href="/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>文章总览<span class="badge">139</span></a>
</li>
<li class="menu-item menu-item-image">
<a href="/image/" rel="section"><i class="fa fa-image fa-fw"></i>光影留痕</a>
</li>
<li class="menu-item menu-item-music">
<a href="/music/" rel="section"><i class="fa fa-music fa-fw"></i>音乐视频</a>
</li>
<li class="menu-item menu-item-movie">
<a href="/movie/" rel="section"><i class="fa fa-play fa-fw"></i>观影历史</a>
</li>
<li class="menu-item menu-item-reading">
<a href="/reading/" rel="section"><i class="fa fa-book fa-fw"></i>书海泛舟</a>
</li>
<li class="menu-item menu-item-shuoshuo">
<a href="/shuoshuo/" rel="section"><i class="fa fa-heartbeat fa-fw"></i>时光拾忆</a>
</li>
<li class="menu-item menu-item-about">
<a href="/about/" rel="section"><i class="fa fa-user fa-fw"></i>关于更多</a>
</li>
<li class="menu-item menu-item-search">
<a role="button" class="popup-trigger"><i class="fa fa-search fa-fw"></i>全站搜索
</a>
</li>
</ul>
</nav>
<div class="search-pop-overlay">
<div class="popup search-popup">
<div class="search-header">
<span class="search-icon">
<i class="fa fa-search"></i>
</span>
<div class="search-input-container">
<input autocomplete="off" autocapitalize="off"
placeholder="搜索..." spellcheck="false"
type="search" class="search-input">
</div>
<span class="popup-btn-close">
<i class="fa fa-times-circle"></i>
</span>
</div>
<div id="search-result">
<div id="no-result">
<i class="fa fa-spinner fa-pulse fa-5x fa-fw"></i>
</div>
</div>
</div>
</div>
</div>
</header>
<div class="back-to-top">
<i class="fa fa-arrow-up"></i>
<span>0%</span>
</div>
<main class="main">
<div class="main-inner">
<div class="content-wrap">
<div class="content index posts-expand">
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
<link itemprop="mainEntityOfPage" href="http://sunyancn.github.io/post/d4f879a5.html">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="https://i.loli.net/2020/08/25/NrIpckD9qPLY38C.jpg">
<meta itemprop="name" content="故事尾音">
<meta itemprop="description" content="">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="故事尾音">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/post/d4f879a5.html" class="post-title-link" itemprop="url">微软面试题</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2021-05-26 19:46:00" itemprop="dateCreated datePublished" datetime="2021-05-26T19:46:00+08:00">2021-05-26</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">更新于</span>
<time title="修改时间:2021-10-17 19:36:43" itemprop="dateModified" datetime="2021-10-17T19:36:43+08:00">2021-10-17</time>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<html><head></head><body><p>面试的是微软 edge 浏览器的信息流推荐算法。</p>
<h2 id="完全二叉树的层次遍历反转" class="heading-control"><a href="#完全二叉树的层次遍历反转" class="headerlink" title="完全二叉树的层次遍历反转"></a>完全二叉树的层次遍历反转<a class="heading-anchor" href="#完全二叉树的层次遍历反转" aria-hidden="true"></a></h2><p>一面的算法题是给定一个数组,是一个完全二叉树的层次遍历结果,然后输出一个数组,是每层的逆序结果。<br><strong>思路:</strong> 首先,完全二叉树是可以计算每层节点的数量的,也就是可以在原数组中进行层的划分。之后需要处理的就是反转一个 list, 这个可以用双指针,左指针指向第一个位置,右指针指向最后一个位置,然后交换元素,直到左指针大于右指针。考虑特殊情况是,完全二叉树不满的情况,这种只出现在最后一层,需要计算右指针的位置。</p>
</body></html>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
<script type="text/javascript" src="/js/linkcard.js"></script>
</article>
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
<link itemprop="mainEntityOfPage" href="http://sunyancn.github.io/post/fb40efc5.html">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="https://i.loli.net/2020/08/25/NrIpckD9qPLY38C.jpg">
<meta itemprop="name" content="故事尾音">
<meta itemprop="description" content="">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="故事尾音">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/post/fb40efc5.html" class="post-title-link" itemprop="url">拓扑排序</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2021-05-26 11:38:15 / 修改时间:12:02:16" itemprop="dateCreated datePublished" datetime="2021-05-26T11:38:15+08:00">2021-05-26</time>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<h2 id="AOV-网"><a href="#AOV-网" class="headerlink" title="AOV-网"></a>AOV - 网</h2><p>以顶点表示活动,有向边表示活动之间的先后关系的图称为 AOV 网 (Activity On Vertex Network,顶点表示活动的网)。AOV 网是一种有向无环图 (Directed Acyclic Graph, DAG)。</p>
<h2 id="拓扑排序"><a href="#拓扑排序" class="headerlink" title="拓扑排序"></a>拓扑排序</h2><p>拓扑排序就是将 AOV 网中的所有顶点排列成一个线性序列,并且序列满足以下条件:在 AOV 网中,如果从顶点 A 到 B 存在一条路径,则在该线性序列中,顶点 A 一定出现在顶点 B 之前。因此拓扑排序的过程就是将 AOV 网中的各个活动组成一个可行的实施方案。此外拓扑排序也可以判断图中是否有环。拓扑排序并不唯一,有向无环图一定存在拓扑排序。<br>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/post/fb40efc5.html#more" rel="contents">
阅读全文 »
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
<script type="text/javascript" src="/js/linkcard.js"></script>
</article>
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
<link itemprop="mainEntityOfPage" href="http://sunyancn.github.io/post/e231005e.html">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="https://i.loli.net/2020/08/25/NrIpckD9qPLY38C.jpg">
<meta itemprop="name" content="故事尾音">
<meta itemprop="description" content="">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="故事尾音">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/post/e231005e.html" class="post-title-link" itemprop="url">我在 BIGO 的这一年</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2021-05-08 15:26:31 / 修改时间:21:09:04" itemprop="dateCreated datePublished" datetime="2021-05-08T15:26:31+08:00">2021-05-08</time>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<h2 id="从2020到2021"><a href="#从2020到2021" class="headerlink" title="从2020到2021"></a>从 2020 到 2021</h2><p>2020 年 1 月 1 日,我正式和在知乎上相识几天的女朋友表白,并迅速在一起了。彼时我在武汉华科读研二,她在河北师范大学读大三。缘分这东西就是这样的奇妙,茫茫人海中一眼就能认出自己的有缘人。等到 1 月 15 日 放寒假的时候,我绕去石家庄回家,我们正式第一次见了面。19 号回到家中,23 日武汉爆发疫情。好在我平时出校门交际不多,并没有感染,回家也略早,没有滞留在武汉。接下来的几个月每天都很紧张,早上醒来第一件事就是看看武汉的疫情状况。回想起来,疫情那段时间主要做了几件事情:</p>
<ul>
<li>每天和女朋友视频,感情迅速升温,到了 5 月份好转一点的时候我们还溜出来见了几次。</li>
<li>远程写毕业论文,跟导师汇报和讨论进展,最后的答辩也是远程进行的。</li>
<li>自上大学起回家时间就很少,正好陪了一下父母,教会了我妈骑电动车。</li>
</ul>
<p>由于武汉是疫情中心,华科一直到 6 月 20 号才开学,和女朋友匆匆别过,去了华科收拾了行李,拿了毕业证书, 7 月 1 号正式入职秋招签约的公司 BIGO 广州总部。</p>
<p>我在公司附近租了一个带卫生间的主卧,房租每月 1300,走路到公司 15 分钟。入职的部门是应用算法部的技术体系,负责 BIGO Live 的贴吧 Feed 流内容推荐算法。刚进去的时候真是啥也不会,那段时间跟着师兄学习了 Hive Sql,学习了上线流程,学习了召回和排序算法的实现等等,受益良多。BIGO 的节奏是大小周,相当于每月有两个周六加班,周一到周五的工作节奏是早 10 晚 9。在学校的时候觉得这种加班挺容易的,毕竟研究生的时候也感觉自己挺能熬的。但是工作了后,才明白强度完全不在一个档次,单休的那周真的无比难受。2020 年的国庆节和春节,因为一来国家不提倡流动,二来广州离河北确实有点远,我就没有回家。工作的日子就这样一天天过去,直到 2021 年的 3 月。</p>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/post/e231005e.html#more" rel="contents">
阅读全文 »
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
<script type="text/javascript" src="/js/linkcard.js"></script>
</article>
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
<link itemprop="mainEntityOfPage" href="http://sunyancn.github.io/post/d45370df.html">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="https://i.loli.net/2020/08/25/NrIpckD9qPLY38C.jpg">
<meta itemprop="name" content="故事尾音">
<meta itemprop="description" content="">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="故事尾音">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/post/d45370df.html" class="post-title-link" itemprop="url">Shell 使用</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2021-01-26 11:46:59 / 修改时间:12:16:00" itemprop="dateCreated datePublished" datetime="2021-01-26T11:46:59+08:00">2021-01-26</time>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<h2 id="初识shell"><a href="#初识shell" class="headerlink" title="初识shell"></a>初识 shell</h2><p>脚本其实就是短小的、用来让计算机自动化完成一系列工作的程序,这类程序可以用文本编辑器修改,不需要编译,通常是解释运行的。</p>
<h3 id="第一个shell脚本"><a href="#第一个shell脚本" class="headerlink" title="第一个shell脚本"></a>第一个 shell 脚本</h3><p>打开文本编辑器 (可以使用 vi/vim 命令来创建文件),新建一个文件 test.sh,扩展名为 sh(sh 代表 shell)。<br></p><figure class="highlight shell"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta">#</span><span class="bash">!/bin/bash</span></span><br><span class="line">echo "Hello World !"</span><br></pre></td></tr></tbody></table></figure><br>1、<code>chmod +x file</code> 加上执行权限,否则会提示无执行权限。<br>2、注意执行脚本时候或者全目录,或者 <code>./file.sh</code> ,如果不加的话,linux 默认会从PATH 里去找该 file.sh。<br>3、脚本后缀名可以任意修改,仍然可以正常运行。<br>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/post/d45370df.html#more" rel="contents">
阅读全文 »
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
<script type="text/javascript" src="/js/linkcard.js"></script>
</article>
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
<link itemprop="mainEntityOfPage" href="http://sunyancn.github.io/post/8deb71f0.html">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="https://i.loli.net/2020/08/25/NrIpckD9qPLY38C.jpg">
<meta itemprop="name" content="故事尾音">
<meta itemprop="description" content="">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="故事尾音">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/post/8deb71f0.html" class="post-title-link" itemprop="url">火影情结</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2021-01-26 10:43:52 / 修改时间:11:06:54" itemprop="dateCreated datePublished" datetime="2021-01-26T10:43:52+08:00">2021-01-26</time>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<p><img src="https://i.loli.net/2021/01/26/RBZw8U9cgHQq4Nd.gif" alt=""></p>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
<script type="text/javascript" src="/js/linkcard.js"></script>
</article>
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
<link itemprop="mainEntityOfPage" href="http://sunyancn.github.io/post/fb3c7c8b.html">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="https://i.loli.net/2020/08/25/NrIpckD9qPLY38C.jpg">
<meta itemprop="name" content="故事尾音">
<meta itemprop="description" content="">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="故事尾音">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/post/fb3c7c8b.html" class="post-title-link" itemprop="url">婚礼准备</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2021-01-26 10:18:23 / 修改时间:10:19:35" itemprop="dateCreated datePublished" datetime="2021-01-26T10:18:23+08:00">2021-01-26</time>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<p><img src="https://i.loli.net/2021/01/26/KLfdbTgQao64s9F.png" alt=""></p>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
<script type="text/javascript" src="/js/linkcard.js"></script>
</article>
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
<link itemprop="mainEntityOfPage" href="http://sunyancn.github.io/post/cf3a540f.html">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="https://i.loli.net/2020/08/25/NrIpckD9qPLY38C.jpg">
<meta itemprop="name" content="故事尾音">
<meta itemprop="description" content="">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="故事尾音">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/post/cf3a540f.html" class="post-title-link" itemprop="url">Matlab 相关</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2021-01-26 10:13:34" itemprop="dateCreated datePublished" datetime="2021-01-26T10:13:34+08:00">2021-01-26</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">更新于</span>
<time title="修改时间:2021-01-28 19:59:06" itemprop="dateModified" datetime="2021-01-28T19:59:06+08:00">2021-01-28</time>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<h2 id="Plot-Cheatsheet"><a href="#Plot-Cheatsheet" class="headerlink" title="Plot Cheatsheet"></a>Plot Cheatsheet</h2><p><img src="https://i.loli.net/2021/01/26/YBAivw8ShenR1kq.png" alt=""></p>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/post/cf3a540f.html#more" rel="contents">
阅读全文 »
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
<script type="text/javascript" src="/js/linkcard.js"></script>
</article>
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
<link itemprop="mainEntityOfPage" href="http://sunyancn.github.io/post/3c85efb8.html">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="https://i.loli.net/2020/08/25/NrIpckD9qPLY38C.jpg">
<meta itemprop="name" content="故事尾音">
<meta itemprop="description" content="">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="故事尾音">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/post/3c85efb8.html" class="post-title-link" itemprop="url">张小龙:微信十年的产品思考</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2021-01-20 15:47:04 / 修改时间:16:15:59" itemprop="dateCreated datePublished" datetime="2021-01-20T15:47:04+08:00">2021-01-20</time>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<h3 id="开场"><a href="#开场" class="headerlink" title="开场"></a>开场</h3><p>各位朋友,晚上好!</p>
<p>谢谢来到公开课现场的朋友们,让我感受到这是一个面对面的交流,而不是一个人面对屏幕的直播。</p>
<p>2020,对很多人来说都是很不容易的一年。包括我们的公开课,也改为线上进行了。虽然在几年前的一次公开课上,我说公开课应该线上开就好了,效率最高,但没有想到今天是因为疫情的原因被迫做到了。</p>
<p>去年这个时候我们也没有想到,这次我们已经通过视频号来进行直播了。</p>
<p>因为疫情,很多公司的年会都改线上了,所以这个时候,我的同事们正在努力给视频号直播加一个能力,就是只有白名单的人才能进入直播间的企业内直播,希望能给需要线上开年会的企业一些帮助吧。</p>
<p>回头看十年前,当时的想法只是,希望有一个适合自己的通讯工具来用。于是就开始了微信的第一版。但当时绝对没有想到,十年后的微信会是现在这个样子。对此,我自己感觉特别幸运,我想我一定是那个被上帝选中的人,因为光靠个人努力是做不到这一点的。</p>
<p>我分享一组数据吧,到今天,每天 ——</p>
<ul>
<li>有 10.9 亿用户打开微信,3.3 亿用户进行了视频通话;</li>
<li>有 7.8 亿用户进入朋友圈,1.2 亿用户发表朋友圈;</li>
<li>有 3.6 亿用户读公众号文章,4 亿用户使用小程序;</li>
</ul>
<p>还有很多,包括微信支付,企业微信,微信读书,搜索等,就不一一说了。如微信支付,它就像你以前的钱包一样,已经变成了生活常用品。而微信,也真的成为了 “一个生活方式”。</p>
<p>今天是公开课,应该有很多的创作者参与,所以,也在这里感谢微信平台的每一个创作者,公众号的,小程序的,视频号的创作者。因为你们的创作,让微信的生态充满活力。</p>
<p>大家知道视频号今年的变化特别大。这里也想分享一下视频号的一些想法。</p>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/post/3c85efb8.html#more" rel="contents">
阅读全文 »
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
<script type="text/javascript" src="/js/linkcard.js"></script>
</article>
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
<link itemprop="mainEntityOfPage" href="http://sunyancn.github.io/post/b25618e1.html">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="https://i.loli.net/2020/08/25/NrIpckD9qPLY38C.jpg">
<meta itemprop="name" content="故事尾音">
<meta itemprop="description" content="">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="故事尾音">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/post/b25618e1.html" class="post-title-link" itemprop="url">我对美国第 45 任总统唐纳德・特朗普的一些看法</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2021-01-20 14:14:59 / 修改时间:15:46:52" itemprop="dateCreated datePublished" datetime="2021-01-20T14:14:59+08:00">2021-01-20</time>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<h2 id="评价"><a href="#评价" class="headerlink" title="评价"></a>评价</h2><p> 不管怎么样他肯定会在历史上扮演一个比较重要的角色,一是他作为一个“颠覆”的角色出现,掀开了右倾民族主义的遮羞布;二是刚好遇上了百年不遇的新冠疫情,美国又恰好是最严重的国家。</p>
<p> 特朗普以及他的团队其实是意识到美国出现了什么问题,他们幸运的找出了部分核心问题而且得到了很多民众的支持,但是很可惜海没有找到本质问题,也没找到解决办法,如果把美国看作一个得了感冒的病人,那么特朗普团队是找出了病因的医生,但是用了以毒攻毒的疗法,很有可能副作用会把人弄死。</p>
<p> 附:唐纳德·特朗普就职和卸任演讲稿</p>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/post/b25618e1.html#more" rel="contents">
阅读全文 »
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
<script type="text/javascript" src="/js/linkcard.js"></script>
</article>
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
<link itemprop="mainEntityOfPage" href="http://sunyancn.github.io/post/aa639214.html">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="https://i.loli.net/2020/08/25/NrIpckD9qPLY38C.jpg">
<meta itemprop="name" content="故事尾音">
<meta itemprop="description" content="">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="故事尾音">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/post/aa639214.html" class="post-title-link" itemprop="url">DIN 排序模型</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2021-01-15 20:06:59 / 修改时间:20:55:03" itemprop="dateCreated datePublished" datetime="2021-01-15T20:06:59+08:00">2021-01-15</time>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<h2 id="论文"><a href="#论文" class="headerlink" title="论文"></a>论文</h2><p><a target="_blank" rel="noopener" href="https://arxiv.org/pdf/1706.06978.pdf">《Deep Interest Network for Click-Through Rate Prediction》</a></p>
<p>本文收录于 KDD18,来自于阿里妈妈的精准定向检索及基础算法团队。文章的创新点主要有三个:</p>
<ol>
<li>Deep Interest Network(DIN)—— 通过一个局部激活单元(local activation unit)来自适应地从用户历史行为中学习他对于某个广告的兴趣。</li>
<li>Mini-batch Aware Regularization —— 即一个针对 mini-batch SGD 进行优化的 L2 norm 正则项,通过近似减少了计算量。</li>
<li>一个数据自适应的激活函数,对 PReLU 的 indicator function 进行修改,并取名为 Dice。</li>
</ol>
<h2 id="背景"><a href="#背景" class="headerlink" title="背景"></a>背景</h2><p>Deep Interest Network (DIN) 是盖坤大神领导的阿里妈妈的精准定向检索及基础算法团队,在 2017 年 6 月提出的。 它针对<strong>电子商务领域 (e-commerce industry)</strong> 的 CTR 预估,重点在于<strong>充分利用 / 挖掘用户历史行为数据中的信息</strong>。</p>
<ol>
<li><p><strong>数据特征:</strong> 针对互联网电子商务领域,数据特点:Diversity、Local Activation。</p>
</li>
<li><p><strong>针对问题:</strong>用户有多个兴趣爱好,访问了多个 good_id,shop_id。为了降低纬度并使得商品店铺间的算术运算有意义,我们先对其进行 Embedding 嵌入。那么我们如何对用户多种多样的兴趣建模那?使用 <strong>Pooling 对 Embedding Vector 求和或者求平均</strong>。同时这也解决了不同用户输入长度不同的问题,得到了一个固定长度的向量。这个向量就是用户表示,是用户兴趣的代表。但是,直接求 sum 或 average 损失了很多信息。所以稍加改进,针对不同的 behavior id 赋予不同的权重,这个权重是由当前 behavior id 和候选广告共同决定的。这就是 Attention 机制,实现了 Local Activation。</p>
</li>
<li><strong>DIN 的解决方案:</strong><ol>
<li>使用 <strong>用户兴趣分布 (Diversity)</strong> 来表示用户多种多样的兴趣爱好</li>
<li>使用 <strong>Attention 机制</strong> 来实现 Local Activation</li>
<li> 针对模型训练,提出了 <strong>Dice 激活函数,自适应正则 (Adaptive Regulation)</strong>,显著提升了模型性能与收敛速度</li>
</ol>
</li>
</ol>
<p><strong>Diversity:</strong> 用户在访问电商网站时会对多种商品都感兴趣。也就是用户的兴趣非常的广泛。</p>
<p><strong>Local Activation:</strong> 由于用户兴趣的多样性,只有部分历史数据会影响到当次推荐的物品是否被点击,而不是所有的历史记录。</p>
<p><strong>Diversity</strong> 体现在年轻的母亲的历史记录中体现的兴趣十分广泛,涵盖羊毛衫、手提袋、耳环、童装、运动装等等。而爱好游泳的人同样兴趣广泛,历史记录涉及浴装、旅游手册、踏水板、马铃薯、冰激凌、坚果等等。</p>
<p><strong>Local activation</strong> 体现在,当我们给爱好游泳的人推荐 google (护目镜) 时,跟他之前是否购买过薯片、书籍、冰激凌的关系就不大了,而跟他游泳相关的历史记录如游泳帽的关系就比较密切。</p>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/post/aa639214.html#more" rel="contents">
阅读全文 »
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
<script type="text/javascript" src="/js/linkcard.js"></script>
</article>
<nav class="pagination">
<span class="page-number current">1</span><a class="page-number" href="/page/2/">2</a><span class="space">…</span><a class="page-number" href="/page/14/">14</a><a class="extend next" rel="next" href="/page/2/"><i class="fa fa-angle-right" aria-label="下一页"></i></a>
</nav>
</div>
<script>
window.addEventListener('tabs:register', () => {
let { activeClass } = CONFIG.comments;
if (CONFIG.comments.storage) {
activeClass = localStorage.getItem('comments_active') || activeClass;
}
if (activeClass) {
let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
if (activeTab) {
activeTab.click();
}
}
});
if (CONFIG.comments.storage) {
window.addEventListener('tabs:click', event => {
if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
let commentClass = event.target.classList[1];
localStorage.setItem('comments_active', commentClass);
});
}
</script>
</div>
<div class="toggle sidebar-toggle">
<span class="toggle-line toggle-line-first"></span>
<span class="toggle-line toggle-line-middle"></span>
<span class="toggle-line toggle-line-last"></span>
</div>