Research notes and engineering essays

Ideas on AI, mathematics,
and software systems.

Practical write-ups, experiments, and technical notes from Tung Nguyen.

9 articlesAI and mathematicsLong-form technical writing

June 28, 202617 min read

An Introduction to 3D Reconstruction: From Images to Geometry

An Introduction to 3D Reconstruction A photograph records how a three dimensional scene looks from one position. 3D reconstruction tries to reverse that projection: given one or more observations, estimate the shape, position, and sometimes the appearance of the objects that produced them. This prob…

Continue reading →

June 13, 202611 min read

Q-Learning from Scratch: Solving a Grid World with Python

Introduction Most machine learning models learn from labeled examples. Reinforcement learning is different: an agent interacts with an environment , observes the consequences of its actions, and learns which decisions produce the largest long term reward. In this tutorial, we will implement Q learni…

Continue reading →

January 22, 20265 min read

Bayesian Inference: Priors, Likelihoods, and Decisions

Why Bayesian inference matters Deterministic pipelines often fall apart when the data distribution shifts or the amount of evidence changes. Bayesian inference keeps a full probability distribution over uncertain quantities, so you can update beliefs as new observations arrive and keep downstream de…

Continue reading →

December 2, 20258 min read

Intelligent Document Processing: Benchmarking

Benchmarking Document AI: OmniDocBench, PubTabNet, CISOL, TabRecSet Document AI has exploded in capability over the past two years, but reproducing published claims still hinges on solid evaluation practices. I condensed my benchmark research notes into this guide so it’s easier to see which dataset…

Continue reading →

March 14, 20258 min read

AI Art Tutorial: High quality image generation

AI Art Tutorial: High quality image generation with ComfyUI In the ever evolving landscape of artificial intelligence, tools like ComfyUI are empowering artists and enthusiasts to create breathtaking, one of a kind images. By leveraging cutting edge models and a user friendly interface, ComfyUI turn…

Continue reading →

October 4, 20248 min read

Build a ChatGPT-like chatbot for free with Ollama and Open WebUI

Introduction Has the power of ChatGPT led you to explore large language models LLMs and want to build a ChatGPT like chatbot app? Do you want to create a chatbot with your own personal touch? Do you want to deploy a chatbot tool for your team at work to support daily tasks? This post shows you how t…

Continue reading →

March 2, 202311 min read

Linear Regression: Foundations, Estimation, and Diagnostics

Linear Regression: Foundations, Estimation, and Diagnostics Linear regression is a fundamental method for modeling the relationship between a continuous response variable and one or more explanatory variables. It is widely used for prediction, estimation, hypothesis testing, and the analysis of rela…

Continue reading →

February 28, 20237 min read

Hàm sigmoid dưới góc nhìn xác suất

Trong bài toán phân loại nhị phân, mô hình thường tạo ra một điểm số thực $z in mathbb R $. Tuy nhiên, một số thực bất kỳ chưa thể được diễn giải trực tiếp như xác suất. Hàm sigmoid giải quyết vấn đề này bằng cách ánh xạ $z$ vào khoảng $ 0, 1 $: $$ sigma z = frac 1 1 + e^ z . $$ Nếu đặt $$ P y=1 mid…

Continue reading →

February 17, 20226 min read

Giới thiệu về Variational Autoencoder

Introduction Xin chào mọi người, trong bài viết ngày hôm này mình sẽ cùng mọi người tìm hiểu về Variational Autoencoder VAE , một loại generative model trong deep learning. Trong vài năm gần đây, các mô hình generative đang thu hút được sự chú ý của các nhà nghiên cứu và đạt được một số kết quả đáng…

Continue reading →