Welcome to the Code Snippets Map of Contents. This dashboard organizes reusable code fragments and technical snippets across various domains.
Machine Learning Snippets
- ML Preprocessing Snippets - Reusable snippets for data cleaning and train/test splitting.
- ML Evaluation Snippets - Code for calculating metrics like MSE and accuracy.
- Stochastic Gradient Descent Snippet - A clean implementation of SGD for linear regression.
Deep Learning Snippets
- Autoencoder Snippets - Keras code for standard and supervised autoencoders: data prep, model building, multi-output training, and 2D latent space visualization.
NLP Snippets
- NLP Vectorization - Scikit-learn snippets for CountVectorizer and TF-IDF transformations.
Computer Vision Snippets
- Image Basics Snippets - Indexing, thresholding, colour masks, blending, and box filtering with NumPy.
- Corner Detection Snippets - Sobel, Harris, 3 x 3 non-maximum suppression, and corner overlays.
- RANSAC Snippets - Synthetic noisy lines, SVD line fitting, and a RANSAC loop.
- Image Warping Snippets - Transform matrices, inverse warping with bilinear sampling, affine and homography estimation, and a cylindrical warp.
- SIFT and Matching Snippets - OpenCV SIFT, ratio-test matching with RANSAC verification, and from-scratch DoG and matching code.
- Template Matching Snippets - NumPy SAD and NCC matchers, Gaussian filtering, the multi-scale search, NMS, integral images, and salt-and-pepper noise generation.
Visualization & Tools
- Matplotlib Snippets - Basic plotting and visualization templates.
To Research / Inbox
(Drop new code snippets or ideas here)