Tensorflow2 -- MNIST
Machine Learning

Tensorflow2 -- MNIST

TensorFlow 2.x 實作 MNIST 手寫數字辨識:比較繼承 tf.keras.Model 與 Sequential API 兩種建模方式,以及 GradientTape 自訂訓練迴圈的完整程式碼。

2020-09-26 · 1 min read · 476 words · KbWen · ZH
Python 爬取即時股價
Python

Python 爬取即時股價

用 Python 爬取台股即時股價:從 DevTools 找到證交所 getStockInfo API,解析 JSON 回應,取得台積電等個股的即時成交價、最高最低價與五檔報價。

2020-09-08 · 2 min read · 924 words · KbWen · ZH
Google NLP API parsing
Machine Learning

Google NLP API parsing

使用 Google Cloud Natural Language API 進行中英文語意分析:從 GCP API Key 設定、JSON 請求格式,到解讀 partOfSpeech、lemma 和 dependencyEdge 結果。

2020-09-04 · 2 min read · 712 words · KbWen · ZH
Before Data processing: ELT
Python

Before Data processing: ELT

ETL vs ELT 完整比較:了解傳統 ETL 與現代 ELT 資料處理流程的差異、ELT 的效能優勢,以及在雲端 PAAS/SAAS 環境下 ELT 為何成為主流選擇。

2020-09-02 · 1 min read · 258 words · KbWen · EN
Python Comments
Python

Python Comments

Python 程式碼註釋的最佳實踐:單行 # 註釋、多行 # 和三引號 """ 用法,以及如何寫出有效的程式碼文件,遵循 PEP8 規範。

2020-05-04 · 1 min read · 287 words · KbWen · ZH
Python context manager
Python

Python context manager

學習 Python with 語句與 context manager:如何用 __enter__ 和 __exit__ 管理資源,確保文件、連線等資源被正確釋放,避免資源洩漏。

2020-04-14 · 1 min read · 277 words · KbWen · ZH
Python Iterable
Python

Python Iterable

深入了解 Python 中 Iterable 與 Iterator 的差異:什麼物件可以被迭代、iter() 和 next() 的運作方式,以及 Generator 的前置概念。

2020-04-11 · 2 min read · 537 words · KbWen · ZH
python pdb
Python

python pdb

介紹 Python 內建除錯工具 pdb 的三種使用方式:命令列直接執行、設定斷點以及 Python shell 中使用 pdb.pm(),讓你告別 print 除錯法。

2020-04-10 · 1 min read · 396 words · KbWen · ZH
OPENCV 人臉辨識
Machine Learning

OPENCV 人臉辨識

OpenCV Haar Cascade 人臉偵測:解析 AdaBoost 弱分類器級聯架構,scaleFactor 與 MinNeighbors 參數調整技巧,以及 Haar cascade 的限制與改善方向。

2017-07-12 · 1 min read · 464 words · KbWen · ZH
Keras IMDb
Machine Learning

Keras IMDb

Keras LSTM 情感分析:用 IMDb 電影評論資料訓練文字分類模型,使用 Tokenizer 編碼、Word Embedding 轉向量,搭配三層 LSTM 達到 0.8543 準確率。

2017-07-11 · 1 min read · 294 words · KbWen · ZH