Deep Reinforcement learning
深度強化學習實作:使用 OpenAI Gym MountainCar 環境,結合 TensorFlow 2 建立 DQNetwork,實現 Q-learning 讓 AI 自主學習爬山車任務。
深度強化學習實作:使用 OpenAI Gym MountainCar 環境,結合 TensorFlow 2 建立 DQNetwork,實現 Q-learning 讓 AI 自主學習爬山車任務。
TensorFlow 2.x 實作 MNIST 手寫數字辨識:比較繼承 tf.keras.Model 與 Sequential API 兩種建模方式,以及 GradientTape 自訂訓練迴圈的完整程式碼。
用 Python 爬取台股即時股價:從 DevTools 找到證交所 getStockInfo API,解析 JSON 回應,取得台積電等個股的即時成交價、最高最低價與五檔報價。
使用 Google Cloud Natural Language API 進行中英文語意分析:從 GCP API Key 設定、JSON 請求格式,到解讀 partOfSpeech、lemma 和 dependencyEdge 結果。
ETL vs ELT 完整比較:了解傳統 ETL 與現代 ELT 資料處理流程的差異、ELT 的效能優勢,以及在雲端 PAAS/SAAS 環境下 ELT 為何成為主流選擇。
Python 程式碼註釋的最佳實踐:單行 # 註釋、多行 # 和三引號 """ 用法,以及如何寫出有效的程式碼文件,遵循 PEP8 規範。
學習 Python with 語句與 context manager:如何用 __enter__ 和 __exit__ 管理資源,確保文件、連線等資源被正確釋放,避免資源洩漏。
深入了解 Python 中 Iterable 與 Iterator 的差異:什麼物件可以被迭代、iter() 和 next() 的運作方式,以及 Generator 的前置概念。
KbWen is a developer and technical writer specializing in machine learning, LLMs, data engineering, and Python. Writing in Chinese and English since 2017.
介紹 Python 內建除錯工具 pdb 的三種使用方式:命令列直接執行、設定斷點以及 Python shell 中使用 pdb.pm(),讓你告別 print 除錯法。