-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.xml
More file actions
161 lines (161 loc) · 12.6 KB
/
Copy pathindex.xml
File metadata and controls
161 lines (161 loc) · 12.6 KB
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
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
<channel>
<title>EF's Cave</title>
<link>https://ef-lin.github.io/</link>
<description>This is a website telling stories</description>
<generator>Hugo -- gohugo.io</generator><language>zh-tw</language><lastBuildDate>Sun, 23 Aug 2026 00:00:00 +0000</lastBuildDate>
<atom:link href="https://ef-lin.github.io/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>互相關(cross correlation)</title>
<link>https://ef-lin.github.io/posts/python/2026-08-23/</link>
<pubDate>Sun, 23 Aug 2026 00:00:00 +0000</pubDate>
<author>EFLin</author>
<guid>https://ef-lin.github.io/posts/python/2026-08-23/</guid>
<description><![CDATA[<p>在瞭解卷積(convolution),就可以來談互相關(cross correlation)的概念了。首先,我們知道卷積是一種運算方式,可以把函式 $f$ 與 $g$ 翻轉、相乘並積分,那麼這種運算方式可以告訴我們什麼呢?目前最常見的卷積運算用於機器學習,也就是卷積神經網絡(Convolutional Neural Network,CNN),利用核(Kernel,特徵矩陣)提取出圖片的邊緣、模糊處理等。然而,互相關卻是另外一種運算方式。</p>]]></description>
</item>
<item>
<title>卷積(convolution)</title>
<link>https://ef-lin.github.io/posts/python/2026-08-22/</link>
<pubDate>Sat, 22 Aug 2026 00:00:00 +0000</pubDate>
<author>EFLin</author>
<guid>https://ef-lin.github.io/posts/python/2026-08-22/</guid>
<description><![CDATA[<p>卷積(convolution),又稱疊積、褶積或旋積,可以將函數 $f$ 與 $g$ 進行運算產生新函數。</p>
<h2 id="mathematical-definition">Mathematical Definition</h2>
<p>對於連續(continuous)函數:
$$
(f \star g)(t) = \int_{-\infty}^{\infty} f(\tau) g(t - \tau) d\tau
$$
對於離散(discrete)函數:
$$
(f \star g)[n] = \sum_{m=-\infty}^{\infty} f[m] g[n - m]
$$
其中 $t, n$ 稱為移位(displacement)或滯後(lag),若 $t, n=0$ 則 $(f * g)(0)$ 等於$f$與X軸反轉的 $g$ 的相乘積分或相乘加總,可以用一個簡單的 python 展示 $n=0$ 時的離散函數卷積:</p>]]></description>
</item>
<item>
<title>因為,我們生在 AI 時代</title>
<link>https://ef-lin.github.io/posts/note/2026-08-11/</link>
<pubDate>Tue, 11 Aug 2026 00:00:00 +0000</pubDate>
<author>EFLin</author>
<guid>https://ef-lin.github.io/posts/note/2026-08-11/</guid>
<description><![CDATA[<p>應該用 AI 摘要論文嗎?</p>
<p>大多數人都會同意,AI 已然成為我們在面對困惑時下意識尋求解答的對象,當我們面對作業、艱澀論文甚至生活中的小問題時,丟給 AI 似乎能完美解決九成以上的問題,另外一成則是換個 AI 模型就能解決。然而,這卻在某方面——隱約地讓我感到不安,的確,人在面對新事物時會本能地感到排斥,畢竟舊有的環境溫暖又舒適,為何要改變呢?但隨著 AI 的發展日新月異,我似乎很難否定其帶來的便利性與真實幫助。</p>]]></description>
</item>
<item>
<title>諾蘭與他的《奧德賽》</title>
<link>https://ef-lin.github.io/posts/note/2026-07-20/</link>
<pubDate>Mon, 20 Jul 2026 00:00:00 +0000</pubDate>
<author>EFLin</author>
<guid>https://ef-lin.github.io/posts/note/2026-07-20/</guid>
<description><![CDATA[<div class="details admonition warning open">
<div class="details-summary admonition-title">
<i class="icon fas fa-exclamation-triangle fa-fw" aria-hidden="true"></i>劇透警告<i class="details-icon fas fa-angle-right fa-fw" aria-hidden="true"></i>
</div>
<div class="details-content">
<div class="admonition-content">本篇文章含劇透內容,請小心服用。</div>
</div>
</div>
<p>《奧德賽》與《伊利亞得》是荷馬最重要的兩篇神話史詩,後者講述希臘城邦對特洛伊城的圍攻,前者則傳唱英雄奧德修斯的返家之路。諾蘭這次改編《奧德賽》為電影挑戰性很大,看過希臘神話絕對可以提升觀影體驗,抓到許多用心還原的小細節,不過劇情相對友善,沒看過也不會影響太多。</p>]]></description>
</item>
<item>
<title>選擇你的幻神——韋伯〈學術作為一種志業〉</title>
<link>https://ef-lin.github.io/posts/note/2026-02-14/</link>
<pubDate>Sat, 14 Feb 2026 00:00:00 +0000</pubDate>
<author>EFLin</author>
<guid>https://ef-lin.github.io/posts/note/2026-02-14/</guid>
<description><![CDATA[<h2 id="神殞">神殞</h2>
<p>從希臘文明開始「概念」在西方思想中一直佔據主宰地位,如《理想國》中著名的洞窟寓言,第一個見到象徵「真、善、美」太陽的哲學家會帶領所有久居山洞的子民走出黑暗,迎向光明。承襲此一觀點,基督教認為上帝就是至善的化身,但韋伯所處時代正值普魯士文明的黃金盛世,康德與唯心學派帶來顛覆性的哲學革命,自然科學蓬勃發展、社會科學萌芽。專業化學術體制的建立逐漸推動基督信仰變革。</p>]]></description>
</item>
<item>
<title>pytest</title>
<link>https://ef-lin.github.io/posts/python/2025-10-16/</link>
<pubDate>Thu, 16 Oct 2025 00:00:00 +0000</pubDate>
<author>EFLin</author>
<guid>https://ef-lin.github.io/posts/python/2025-10-16/</guid>
<description><![CDATA[<p>建立自動化測試流程。</p>
<h2 id="基本結構">基本結構</h2>
<p>測試文件以<code>test_</code>開頭,在更複雜的專案中可將整體鏡像放置在<code>tests/</code>資料夾中。</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">src/
</span></span><span class="line"><span class="cl">├───calculate.py
</span></span><span class="line"><span class="cl">└───test_calculate.py
</span></span></code></pre></td></tr></table>
</div>
</div><h2 id="編寫-pytest">編寫 pytest</h2>
<p><code>calculate.py</code></p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt"> 1
</span><span class="lnt"> 2
</span><span class="lnt"> 3
</span><span class="lnt"> 4
</span><span class="lnt"> 5
</span><span class="lnt"> 6
</span><span class="lnt"> 7
</span><span class="lnt"> 8
</span><span class="lnt"> 9
</span><span class="lnt">10
</span><span class="lnt">11
</span><span class="lnt">12
</span><span class="lnt">13
</span><span class="lnt">14
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="k">class</span> <span class="nc">Calculator</span><span class="p">:</span>
</span></span><span class="line"><span class="cl"> <span class="k">def</span> <span class="nf">add</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">a</span><span class="p">,</span> <span class="n">b</span><span class="p">):</span>
</span></span><span class="line"><span class="cl"> <span class="k">return</span> <span class="n">a</span> <span class="o">+</span> <span class="n">b</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"> <span class="k">def</span> <span class="nf">subtract</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">a</span><span class="p">,</span> <span class="n">b</span><span class="p">):</span>
</span></span><span class="line"><span class="cl"> <span class="k">return</span> <span class="n">a</span> <span class="o">-</span> <span class="n">b</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"> <span class="k">def</span> <span class="nf">multiply</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">a</span><span class="p">,</span> <span class="n">b</span><span class="p">):</span>
</span></span><span class="line"><span class="cl"> <span class="k">return</span> <span class="n">a</span> <span class="o">*</span> <span class="n">b</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"> <span class="k">def</span> <span class="nf">divide</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">a</span><span class="p">,</span> <span class="n">b</span><span class="p">):</span>
</span></span><span class="line"><span class="cl"> <span class="k">if</span> <span class="n">b</span> <span class="o">==</span> <span class="mi">0</span><span class="p">:</span>
</span></span><span class="line"><span class="cl"> <span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span><span class="s2">"Cannot divide by zero."</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"> <span class="k">return</span> <span class="n">a</span> <span class="o">/</span> <span class="n">b</span>
</span></span></code></pre></td></tr></table>
</div>
</div><p><code>test_calculate.py</code></p>]]></description>
</item>
<item>
<title>柔らかい角(柔軟的角)</title>
<link>https://ef-lin.github.io/posts/mushishi/2025-08-19/</link>
<pubDate>Tue, 19 Aug 2025 00:00:00 +0000</pubDate>
<author>EFLin</author>
<guid>https://ef-lin.github.io/posts/mushishi/2025-08-19/</guid>
<description><![CDATA[<p>「呍」是一種以聲音為食的蟲,在白雪皚皚掩蓋所有聲音的日子,它會躲入耳蝸中,使人喪失聽力。與之相反的是「阿」,一種以寂靜為食的蟲,它也會使人聽不到聲音,但卻受到放大那些一般人聽不到、由蟲造成的噪音。</p>]]></description>
</item>
<item>
<title>瞼の光(眼臉之光)</title>
<link>https://ef-lin.github.io/posts/mushishi/2025-08-15/</link>
<pubDate>Fri, 15 Aug 2025 00:00:00 +0000</pubDate>
<author>EFLin</author>
<guid>https://ef-lin.github.io/posts/mushishi/2025-08-15/</guid>
<description><![CDATA[<p>傳說人有兩片眼臉,一片能遮擋實體光線,另一片則可以遮擋無形之物,讓我們陷入完全黑暗中,看見流動在世界底下的光芒。許多人早已忘記了閉上第二片眼臉的方法——但這或許是件好事,因為那些親眼目睹流動光芒的人們經常迷失其中,最終受到反噬雙眼壞死。</p>]]></description>
</item>
<item>
<title>緑の座(綠之座)</title>
<link>https://ef-lin.github.io/posts/mushishi/2025-08-11/</link>
<pubDate>Mon, 11 Aug 2025 00:00:00 +0000</pubDate>
<author>EFLin</author>
<guid>https://ef-lin.github.io/posts/mushishi/2025-08-11/</guid>
<description><![CDATA[<p>以人的手掌來比喻的話,大拇指代表植物,四指代表動物,而人類則是位於心臟最遠的中指。順著手指愈往下,生物愈低等,動植物的分界逐漸模糊。若一直追溯到心臟,那裡是最接近生命原體的存在:蟲,或稱為綠物質。蟲的存在與形狀都混濁不清,只能被拒有特殊體質的人看見,那些看不見蟲的人永遠也不能瞭解蟲,「就像無法把對方沒摸過的觸感,原原本本地直接傳遞給對方一樣」。</p>]]></description>
</item>
<item>
<title>新加坡遊記</title>
<link>https://ef-lin.github.io/posts/travel/2025-08-10/</link>
<pubDate>Sun, 10 Aug 2025 00:00:00 +0000</pubDate>
<author>EFLin</author>
<guid>https://ef-lin.github.io/posts/travel/2025-08-10/</guid>
<description><![CDATA[<p>Singapura,努山塔里亞中的獅城。</p>
<p>新加坡的空氣中飄散著椰香、斑蘭與芋頭的混合氣息。八月正直新加坡夏季,儘管白天通常酷熱難耐,但一場午後雷陣雨會吸走城市熱氣,帶來熱帶雨林的新鮮氣味。新加坡的夜晚十分涼爽,充滿了燈光、食物與歡笑,人們喜歡三三兩兩群聚坐在路邊,一起唱歌、分享美食與聊天。這似乎是東南亞的特殊野餐文化,讓野餐不受到陽光和草地侷限,而是鋼筋水泥中的隨興聚會。異國的旅者能夠穿梭在人群之中,竊取那些無法參與的快樂氣氛。</p>]]></description>
</item>
</channel>
</rss>