Twelve machine learning algorithms, what they learn from, and where they get used.
Supervised algorithms learn from labeled answers. Unsupervised ones find structure on their own. The dots show which domains each one is mostly used in.
| Algorithm | Learning type | Tabular | Vision | NLP | GenAI |
|---|---|---|---|---|---|
| Linear Regression | Supervised | ||||
| Logistic Regression | Supervised | ||||
| Decision Tree | Supervised | ||||
| Random Forest | Supervised | ||||
| K-Nearest Neighbors | Supervised | ||||
| Support Vector Machine | Supervised | ||||
| Convolutional Neural Network | Supervised | ||||
| Transformer | Supervised | ||||
| K-Means Clustering | Unsupervised | ||||
| PCA | Unsupervised | ||||
| GAN | Unsupervised | ||||
| Diffusion Model | Unsupervised |
* Transformers like GPT are pre-trained by predicting the next word (self-supervised), then fine-tuned on labeled examples.
Rows and columns. Classic models like trees and regression still win here.
Decision Tree → Random ForestPixels. Neural networks learn the features themselves.
CNNWords in order. Context matters, so attention took over.
TransformerNot just classifying data, creating new data.
GAN → Diffusion → LLMsFits a straight line through the data to predict a number.
Used for: Predicting house prices or energy use.
Turns a weighted sum into a probability between 0 and 1 to pick a class.
Used for: Spam filters, customer churn.
My AIML-500 diabetes model baseline: 94% accuracy.
Asks yes/no questions about the features until it reaches an answer.
Used for: Loan approval, fruit sorting by size and color.
See my Artifact 5 for a full worked example.
Trains many decision trees and lets them vote.
Used for: Fraud detection, medical risk scoring.
Beat logistic regression on my diabetes project: 98%.
Labels a new point by looking at the closest known points.
Used for: Recommendations, simple image matching.
Finds the widest gap that separates two classes.
Used for: Handwriting recognition, text classification.
Slides small filters over an image to find edges, shapes, then objects.
Used for: Face ID, medical imaging.
What I work with daily: sorting scrap metal by type on a conveyor.
Uses attention to weigh how every word relates to every other word.
Used for: ChatGPT, translation, summarizing.
Groups points into K clusters around their averages, no labels needed.
Used for: Customer segmentation.
Squeezes many features down to a few that keep the most variation.
Used for: Visualizing high-dimensional data, compression.
Used it in the TensorFlow Embedding Projector (AIML-501, 2.3).
Two networks compete: one makes fakes, the other tries to catch them.
Used for: Synthetic images, data augmentation.
Generated images are how we filled in rare conveyor-tear examples at work.
Learns to remove noise step by step until an image appears.
Used for: DALL-E, Stable Diffusion, Midjourney.
Start with the data. Rows and columns, pixels, words, or new content to create. That narrows the list fast.
Then pick the simplest algorithm that works.