math

  • Affine Transforms March 26, 2024
    A perpetual pain point for people working on computer vision is dealing with affine transformations. This post provides a simple example of how to reason about them.
  • RWKV Language Model Math June 16, 2023
    In-depth explanation of the math behind the RWKV model, with PyTorch implementations, plus a discussion of numerical stability.
  • PID Controller Explainer September 29, 2022
    Simple overview of what a PID controller is, how it works, and how to make one yourself.
  • Optimized Log-Sum-Exp PyTorch Function May 20, 2020
    A walkthrough of how to optimize the log-sum-exp function in PyTorch.
  • HMMs and CRFs April 7, 2020
    A comparison of Hidden Markov Models and Conditional Random Fields, two kinds of probabilistic graphical models.
  • Coding the Viterbi Algorithm in Numpy March 15, 2020
    A demo of how to code the Viterbi algorithm in Numpy.