Black Swan寫 online judge 時難以發覺的 bug有些 online judge (或者說大部分的 online judge) 不像 leetcode,程式有錯的話告訴你錯哪筆測資,記錄一下我找很久的各種 bug...... 語言為 C/C++,主要都是在 UVA judge 踩到的,不確定其他的 judge 行為是不是一樣。May 18, 2020May 18, 2020
Black SwanUsing MKL to boost Numpy performance on UbuntuNumpy is using BLAS (Basic Linear Algebra Subprograms) internally. Intel provide a better alternative called “Math Kernel Library” (MKL)Oct 12, 20195Oct 12, 20195
Black SwanUbuntu 使用 Intel MKL 加速 NumpyNumpy 底層用到了所謂的「BLAS」的線性代數 library,Intel 出了一個 Math Kernel Library (MKL) 來優化,因為是 Intel 出的,所以你的 CPU 也必須是 Intel 的,網路上有查到 Intel MKL 也可以跑在 AMD…Oct 12, 2019Oct 12, 2019
Black SwanPandas I/O BenchmarkingOn the official site of Pandas, it has a page for its I/O functions with simple profiling. But something I care about does not on that…Jun 4, 2019Jun 4, 2019
Black SwanPandas I/O 效率測試Pandas 在官網上有個頁面介紹各種 I/O function,也簡單測了時間,不過有些我在意的東西沒有測到,只好我自己來測一遍啦 (Github)。Jun 4, 2019Jun 4, 2019
Black Swan美國券商 TD Ameritrade 2019 開戶心得受到綠角的啟發,決定開一個美國證券戶來買美國 ETF 。研究了一番以後決定開在 TD Ameritrade ,主要是考慮到它會自動退某些債券 ETF 一部份的稅。雖然 TD 的手續費較高,但省去研究美國稅法以及退稅的時間金錢成本還是很划算的。就在這裡紀錄開戶到匯款的過程。Mar 18, 2019Mar 18, 2019
Black SwanWhat to do when AUC less than 0.5Someone asked this question on PTT DataScience board. He trained a rectal cancer detection model on MRI images with 5 fold cross…Mar 15, 2019Mar 15, 2019
Black SwanHow to Train Word2vec and FastText Embedding on Wikipedia CorpusThis article will introduce how to download Wikipedia corpus and train word embedding on it. All the code will be on Github (link)…Feb 8, 2019Feb 8, 2019
Black Swan用維基語料訓練 word2vec 和 fastText embedding這篇文章會介紹怎麼下載維基語料,然後訓練中文跟英文的 word embedding,所有程式碼都會在 Github 上面。整個下載加上訓練的時間也是很久,所以我也附上了預訓練好的 embedding。Feb 8, 2019Feb 8, 2019