2024年10月5日 星期六
2024年9月25日 星期三
觀察資料的趨勢
- 趨勢線: 用原始資料的移動平均值(MA)作為長期走勢的觀察. (移動窗口可以自己設定)
- 週期性 (Seaonality): 將原始資料減去趨勢線可以強調週期性的特徵
- 雜訊(Residual) : 原始資料減去趨勢線再減去週期性線, 剩下的值認定是噪訊(隨機波動)或短期的變化。
另外, 也可以計算ACF ( Autocorrelation) , 自相關係數為原始資料 Xt 和 X的lagged Xt+k計算相關係數,ACF 大小可以幫助我們了解數據中週期性的狀態。當lagged 越大 (即K愈大),ACF 通常會逐漸減少,特別是對於沒有長期相關性的數據而言。
ACF圖( X軸為不同的lag k, Y軸為ACF值)
底下ACF圖說明序列資料沒有存在週期性.
ACF圖( X軸為不同的lag k, Y軸為ACF值)
底下ACF圖說明序列資料存在一個週期性, 在Lag n*K 處都有差不多的峰值, 表示其週期性為 k
2024年9月21日 星期六
what is Botnet ?
A botnet is a network of compromised computers or devices, often referred to as "bots" or "zombies," that are controlled remotely by a malicious actor (known as a "botmaster"). These devices are typically infected with malware, allowing the botmaster to execute various commands on them without the device owner’s knowledge.
Here are some common uses and dangers of botnets:
Distributed Denial of Service (DDoS) Attacks: Botnets are often used to flood a target server or website with traffic, overwhelming it and causing it to crash or become unavailable to users.
Spam Distribution: They can be used to send out massive amounts of spam emails or phishing messages, which can lead to further infections or fraud.
Credential Stuffing: Botnets may attempt to use stolen usernames and passwords on different sites, automating the process to try many combinations quickly.
2024年9月18日 星期三
最大概似估計 (MLE) 與 GLL
效能可以直接加總 $$f(y_1\mid \mu_1, \sigma_1^2) +f(y_2\mid \mu_2, \sigma_2^2)+...+f(y_n\mid \mu_n, \sigma_n^n)$$ , 或取log 值相加也可以。
如何同時衡量模型的正確性與長期穩定性?
如何同時衡量模型的正確性與長期穩定性?
Home Credit - Credit Risk Model Stability
Create a model measured against feature stability over time
https://www.kaggle.com/competitions/home-credit-credit-risk-model-stability/overview
gini = 2 * AUC - 1 (AUC:0~1)
stability metric = mean(gini) + 88.0 * min(0, a) - 0.5 * std(residuals)
stability metric
(1) 針對預測能力呈現下滑趨勢給予懲罰 :即 a < 0 的情況
(2) 穏定性評估: 計算 residuals 的標準差, 愈小表示模型愈穏定. 最好是 0
[References ]
2024年8月8日 星期四
溫故知新--Essential C++
個人在大學時期就拜讀過候捷大師譯的兩本書,《 C++ Primer 中文版》、《Essential C++ 》。如果你是新手想要學,個人認為可先以《Essential C++ 》作為第一本導入門教材的確不錯,因為它只有200多頁,書沒有太厚,至少你不會覺得讀完遙遙無期,但仍然給了你C++語言的正確觀念! 現在很多的C++書都是C語言的翻版而已,加了一點 class 和繼承,就以爲是OO,其實還差得很遠。
很多人只是用了C++ compiler , 但程式內容和 C 沒有什麼兩樣,也看不出 OO 的設計精神! 把 printf 改用 cout 不等同於會 C++
《Essential C++ 》你可以深入了解:

• Generic programming and the Standard Template Library (STL)
• Object-based programming and class design
• Object-oriented programming and the design of class hierarchies
• Function and class template design and use
• Exception handling and Run-Time Type Identification
- ftp://ftp.sbin.org/pub/doc/books/Addison_Wesley_-_Essential_C++_Ebook-fly.pdf
- http://www.slideshare.net/RounakSamdadia/c-programming-58220796?qid=e0c108d1-20bc-4357-9b8e-994c990a3281&v=&b=&from_search=7
2024年8月3日 星期六
iPAS 機器學習工程師參考樣題解說
將輸入的 sparse vector 轉換成高維度的 dense vector,如此的 dense vector可能可以表現資料更多元的特徵。
Read More:


















