fbpx

All Posts By: Alfred Ang

Python

Python Decorator

Python decorator is callable that take in a function and modify the behaviour of the function without explicitly modify the function code. Let us …

Machine Learning Python Tensorflow Keras

Comparing Cross Entropy and KL Divergence Loss

Entropy is the number of bits required to transmit a randomly selected event from a probability distribution. A skewed distribution has a low entropy, whereas …

Algorithms Machine Learning Python

Linear Regression with Gradient Descent and Python

Gradient Descent is the key optimization method used in machine learning. Understanding how gradient descent works without using API helps to gain a deep …

Machine Learning Python Tensorflow Keras

Comparing Pre-trained ResNet and MobileNet

Resnet and Mobilenet are the popular pre-trained models for computer visions. Renet is more accurate, while Mobilenet is much smaller in size. In this …

Machine Learning Python Tensorflow Keras

Network Compression with Depthwise Separable Convolution

One way to achieve network compression is using depthwise separable convolution. Depthwise separable convolution is used in many pre-trained neural networks such as MobileNet, …

Algorithms Tree Search

K-D Tree Search Algorithm for SLAM

A K-D Tree (also called as K-Dimensional Tree) is a binary search tree where data in each node is a K-Dimensional point in space. …

Python

New Features in Python 3.8 and 3.9

Python 3.8 and 3.9 comes with some useful features. Some are listed here Merging DictionariesThe old style of merging Python dictionaries is using ** …

OpenCV

Object Selection Based on Color Thresholding

HSV (hue, saturation, value) colorspace is a model to represent the colorspace similar to the RGB color model. Since the hue channel models the color …

OpenCV

Masking in OpenCV

Masking is a common technique to extract the Region of Interest (ROI). In openCV, it is possible to construct arbitrary masking shape using draw …

OpenCV

Canny Edge Detector

The Canny edge detector is an edge detection algorithm that uses a multi-stage algorithm to detect a wide range of edges in images. It …