Archive

2026-03-01 · 0 min read · 0 words · KbWen · EN

Search

Search KbWen Blog articles by topic, title, or keyword.

2026-03-01 · 0 min read · 0 words · KbWen · EN
Token 是什麼?LLM 為何只讀 Token?
AI Systems

Token 是什麼?LLM 為何只讀 Token?

Token 是什麼?LLM 為何不直接處理完整字詞:解析字級、字元級、子詞級三種 tokenization 方法,包含 BPE 示範程式碼,以及 token 數量對計費和上下文長度的影響。

2025-12-01 · 4 min read · 1831 words · KbWen · ZH
《大語言模型 LLM:其實做的事情比你想像中更單純》
AI Systems

《大語言模型 LLM:其實做的事情比你想像中更單純》

大語言模型 LLM 原理完整解析:從「預測下一個 token」的核心概念,到 Transformer 自注意力機制、訓練流程四步驟,以及對話生成、程式碼生成等常見應用。

2025-11-23 · 4 min read · 1972 words · KbWen · ZH
推薦系統中的冷啟動問題
Machine Learning

推薦系統中的冷啟動問題

推薦系統冷啟動問題完整解析:介紹使用者冷啟動、物品冷啟動、系統冷啟動三類問題,以及排行榜推薦、社交平台授權、相似度計算、快速試探等常用解決策略。

2021-11-29 · 3 min read · 1390 words · KbWen · ZH
Python 分批處理 list:itertools.batched 與四種常見寫法
Python

Python 分批處理 list:itertools.batched 與四種常見寫法

Python 3.12 起,itertools.batched 是把資料切成固定大小批次的標準做法:每批回傳 tuple,最後一批可能較短,3.13 再加上 strict。另外整理 yield、列表推導式、islice、numpy.array_split 各自吃什麼輸入。

2021-11-26 · 5 min read · 2238 words · KbWen · ZH
Python 爬取每日股價(2)
Python

Python 爬取每日股價(2)

Python 爬取台股每日收盤行情(第二篇):使用 pandas DataFrame 整理 TWSE 資料,搭配 xlsxwriter 儲存成 xlsx 格式,可依日期取得歷史收盤價。

2021-09-06 · 1 min read · 357 words · KbWen · ZH
How to scrape Yahoo Finance stock data with Python
Python

How to scrape Yahoo Finance stock data with Python

Scraping Yahoo Finance stock data with Python in 2026: the root.App.main JSON blob is gone from the page source, a default requests call gets HTTP 429, and the numbers now sit in fin-streamer elements. Working BeautifulSoup and yfinance code, plus the original 2021 method.

2021-09-02 · 3 min read · 1362 words · KbWen · EN
Python 爬取每日股價(1)
Python

Python 爬取每日股價(1)

Python 爬取台灣證交所每日收盤行情(第一篇):用 DevTools 找到 MI_INDEX API,解析 JSON 取得全部股票的開盤、收盤、最高最低價及成交量資料。

2021-08-29 · 2 min read · 611 words · KbWen · ZH
Deep Reinforcement learning
Machine Learning

Deep Reinforcement learning

A deep reinforcement learning walkthrough: building a DQNetwork with TensorFlow 2 and running Q-learning against OpenAI Gym's MountainCar environment.

2020-10-26 · 1 min read · 356 words · KbWen · EN