I Failed the Turing Test

When in doubt, overengineer.

  1. Updated

    Recommender System: Collaborative Filtering 協同過濾推薦演算法

    Category: AI

    dataset 會是 m 個用戶對 n 個物品的評分 utility matrix,因為通常只有部分用戶和部份物品會有評分資料,所以是一個 sparse matrix(稀疏矩陣)。目標是利用這些稀疏的資料去預測出用戶對他還沒評分過的物品的評分。

  2. 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.

  3. Updated

    Machine Learning glossary 常見名詞解釋

    Category: AI

    Common machine learning terms, each explained in a few lines, with the Chinese names alongside.

  4. Updated

    Convert utf8 tables to utf8mb4 in MySQL

    Category: Database

    Don't blindly copy-paste this!

  5. Updated

    Create a custom migration in Django

    Category: Database, Python

    ALTER TABLE app_repostarring CHANGE repo_description repo_description VARCHAR(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

  6. 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 的情況,這一篇是過程中記錄下來的筆記。

  7. 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.

  8. Updated

    Lazy evaluation in Django middlewares

    Category: Python, Web Development

    Attach a lazy evaluated function as a property of request in a middleware.

  9. Updated

    Setup Jupyter and other Machine Learning tools on macOS

    Category: AI, Python

    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.

  10. 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.