This repository hosts all the blog posts on machine learning, deep learning and statistical modeling.
License: MIT License
Jupyter Notebook 98.13%Python 1.87%
blog-posts's Introduction
Blog posts
Note: This repo is archived. The same posts and much more content can be found on my website: https://imaddabbura.github.io/
This repository hosts all blog posts about machine learning, deep learning and statistical modeling. All the contents used to produce the blog posts such as data, images, scripts and notebooks are included.
In the Image Compression instance, the following description doesn't make sense to me:
"The original image size was 396 x 396 x 24 = 3,763,584 bits; however, the new compressed image would be 30 x 24 + 396 x 396 x 4 = 627,984 bits. The huge difference comes from the fact that we’ll be using centroids as a lookup for pixels’ colors and that would reduce the size of each pixel location to 4-bit instead of 8-bit."
The original size of the image is 396 x 396 x 24 because the image has in total 396 x 396 pixels and each pixel has 24-bit color representation; however, after the compression, each pixel has 30 colors that can be represented with at least 5 bits (4-bit can represent 16 colors); Plus the overhead storage of 30 colors, the number of bits should be 30 x 24 + 396 x 396 x 5.
The number of bits at each pixel location is reduced to 5-bit from 24-bit.