I Failed the Turing Test
When in doubt, overengineer.
-
Updated
Recommender System: Collaborative Filtering 協同過濾推薦演算法
Category: AI
dataset 會是 m 個用戶對 n 個物品的評分 utility matrix,因為通常只有部分用戶和部份物品會有評分資料,所以是一個 sparse matrix(稀疏矩陣)。目標是利用這些稀疏的資料去預測出用戶對他還沒評分過的物品的評分。
-
Updated
Simple Parallel Tasks in Python: concurrent.futures
Category: Python
concurrent.futures is well suited to Embarrassingly Parallel tasks. You could write concurrent code with a simple for loop.
-
Updated
Machine Learning glossary 常見名詞解釋
Category: AI
Common machine learning terms, each explained in a few lines, with the Chinese names alongside.
-
Updated
-
Updated
Create a custom migration in Django
ALTER TABLE app_repostarring CHANGE repo_description repo_description VARCHAR(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
-
Updated
Locking and MVCC in MySQL InnoDB 鎖機制與多版本並發控制
Category: Database
最近在研究 MySQL 5.6 / 5.7 InnoDB storage engine 的 Transaction、Locking 和 Multi-Version Concurrency Control (MVCC) 機制,基本上只討論 Isolation level 是 REPEATABLE READ 或 READ COMMITTED 的情況,這一篇是過程中記錄下來的筆記。
-
Updated
Redirect Console Output: stdout and stderr
Category: DevOps
0 is stdin, 1 is stdout, 2 is stderr. How to redirect each to a file or to each other, and why 2> 1 writes to a file named 1.
-
Updated
Lazy evaluation in Django middlewares
Category: Python, Web Development
Attach a lazy evaluated function as a property of request in a middleware.
-
Updated
Setup Jupyter and other Machine Learning tools on macOS
Jupyter Notebook is an interactive environment for running code in the browser. It allows you to create interactive documents that contain live code, rich text elements and visualizations. It's also a widely used tool for Data Scientists to make prototypes or demonstrations.
-
Updated
IPython: the Python REPL interpreter
Category: Python
IPython is a neat alternative of Python's builtin REPL (Read–Eval–Print Loop) interpreter, also a kernel of Jupyter.