推薦系統中的冷啟動問題
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 · 1368 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
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: what each of the three steps does, why modern warehouses push the transform step to the target for performance, and where PAAS/SAAS fits in.

2020-09-02 · 2 min read · 253 words · KbWen · EN