
VAE behind the scenes
Exploring the math behind VAE s from an undergrad student perspective
Read moreThoughts, tutorials, and insights about web development, technology, and more.

Exploring the math behind VAE s from an undergrad student perspective
Read moreThe EM algorithm for the two-coin problem estimates the biases of two coins when outcomes are mixed and unlabeled. Vectorization replaces nested loops with matrix operations, letting PyTorch handle $[B, N]$ computations in parallel. The E-step assigns soft probabilities (responsibilities) of each outcome belonging to coin A or B. The M-step updates the coin biases, and the best initialization is chosen via log-likelihood maximization.
Read moreUnsupervised clustering is a fundamental problem in machine learning: how can we find meaningful groups in data without any pre-existing labels? A powerful answer to this is the Gaussian Mixture Model (GMM), which assumes that the data is generated from a mix of several Gaussian (or normal) distributions. The challenge, however, is to find the parameters of these hidden distributions.
Read moreIn machine learning, the EM algorithm is a fundamental tool for unsupervised learning. It is the core mechanism behind clustering algorithms like Gaussian Mixture Models (GMMs) and is used in various fields, from natural language processing to computer vision, for problems involving missing data.
Read more