Deep Reinforcement learning
Machine Learning

Deep Reinforcement learning

深度強化學習實作:使用 OpenAI Gym MountainCar 環境,結合 TensorFlow 2 建立 DQNetwork,實現 Q-learning 讓 AI 自主學習爬山車任務。

2020-10-26 · 1 min read · 356 words · KbWen · EN
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
About / 關於

About / 關於

KbWen is a developer and technical writer specializing in machine learning, LLMs, data engineering, and Python. Writing in Chinese and English since 2017.

2020-04-10 · 1 min read · 439 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