AIML-501 · Artifact 1 · Algorithm types

Which Algorithm
for Which Job

Twelve machine learning algorithms, what they learn from, and where they get used.

Scroll

All twelve at a glance

Supervised algorithms learn from labeled answers. Unsupervised ones find structure on their own. The dots show which domains each one is mostly used in.

AlgorithmLearning typeTabularVisionNLPGenAI
Linear RegressionSupervised
Logistic RegressionSupervised
Decision TreeSupervised
Random ForestSupervised
K-Nearest NeighborsSupervised
Support Vector MachineSupervised
Convolutional Neural NetworkSupervised
TransformerSupervised
K-Means ClusteringUnsupervised
PCAUnsupervised
GANUnsupervised
Diffusion ModelUnsupervised

* Transformers like GPT are pre-trained by predicting the next word (self-supervised), then fine-tuned on labeled examples.

From simple to generative

Tabular

Rows and columns. Classic models like trees and regression still win here.

Decision Tree → Random Forest
→
Vision

Pixels. Neural networks learn the features themselves.

CNN
→
NLP

Words in order. Context matters, so attention took over.

Transformer
→
GenAI

Not just classifying data, creating new data.

GAN → Diffusion → LLMs

Eight supervised algorithms

Linear Regression

Tabular

Fits a straight line through the data to predict a number.

Used for: Predicting house prices or energy use.

Logistic Regression

TabularNLP

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.

Decision Tree

Tabular

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.

Random Forest

Tabular

Trains many decision trees and lets them vote.

Used for: Fraud detection, medical risk scoring.

Beat logistic regression on my diabetes project: 98%.

K-Nearest Neighbors

TabularVision

Labels a new point by looking at the closest known points.

Used for: Recommendations, simple image matching.

Support Vector Machine

TabularVisionNLP

Finds the widest gap that separates two classes.

Used for: Handwriting recognition, text classification.

Convolutional Neural Network

Vision

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.

Transformer

NLPGenAI

Uses attention to weigh how every word relates to every other word.

Used for: ChatGPT, translation, summarizing.

Four unsupervised algorithms

K-Means Clustering

Tabular

Groups points into K clusters around their averages, no labels needed.

Used for: Customer segmentation.

PCA

TabularVision

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).

GAN

VisionGenAI

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.

Diffusion Model

VisionGenAI

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.

About This Project

Introduction A one-page reference for choosing a machine learning algorithm based on the type of data and problem. Description A framework of twelve algorithms showing learning type, application domains, a short explanation, and real-world uses, with notes where I have used them myself. Objective Make it quick to see how common algorithms relate to each other and which domains they belong to, from tabular data through generative AI. Process Picked algorithms that cover all four domains, classified each one as supervised or unsupervised, mapped them in a matrix, then grouped them into cards with plain-language explanations and examples from my coursework and work. Tools HTML, CSS, course readings. Value Helps someone new to ML narrow down options before they start building. Unique Value Ties several algorithms to things I have actually built: a random forest diabetes classifier, a decision tree walkthrough, and vision models for scrap metal sorting. Relevance Algorithm selection is the first real decision in any ML project, and picking the wrong family wastes time and data. References Microsoft. (2025). Machine learning algorithms. Azure. · Trojahn, M., & Costa, B. (2024). What are the differences between AI, ML, DL, and Gen AI? e-core. · Cloud Simplified. (2024). Unraveling the differences between AI, ML, DL, and GenAI [Video]. YouTube. · AIML-501, Indiana Wesleyan University.