Anand K Subramanian



Posts about #code

26 Sep 2024

Classification to Regression and Back

A trick to convert classification labels to regression targets and back.

#math #ml #code

12 Jan 2024

Extending Mahalanobis Distance to Gaussian Mixtures

A simple generalization of Mahalanobis distance to Gaussian Mixture Models (GMMs).

#math #ml #code

29 Aug 2022

Improving the RANSAC Algorithm

Discussion about the MAGSAC algorithm, addressing a crucial hyperparameter selection issue for the RANSAC algorithm.

#math #ml #code #jax

18 Jul 2022

A Detour to the Imaginary has its Benefits

Two examples of using complex numbers for real-function optimization.

#numerics #math #ml #gradient #code #python

29 Jun 2022

The Back-Gradient Trick

Stochastic Gradient Descent can be (kind of) reversed and can be used to compute gradients with respect to its hyperparameters.

#math #ml #gradient #graph #code #jax #deep-learning

31 May 2022

Parallelizing Kalman Filters

The associative property of Kalman (Bayesian) filters can yield a parallel algorithm in O(log N).

#math #ml #parallel #code #jax

23 Sep 2021

Fast Sample-Covariance Computation for Multidimensional Arrays

A quick discussion and a vectorized Python implementation for the computation of sample covariance matrices for multi-dimensional arrays.

#math #ml #code

30 Aug 2021

Asymmetric Numeral Systems

A tutorial on the lossless Asymmetric Numeral Systems (ANS) coding commonly used in image compression.

#math #ml #information-theory #code

© 2024 Anand K Subramanian License Design Built with Kutti