StudyDSA logoStudyDSA

Command Palette

Search for a command to run...

Sign InSign Up
Sign Up

Data StructuresAlgorithmsBig-O NotationDesign PatternsSystem DesignMachine LearningPhysicsRoboticsAI Research

Definition
StudyDSA

Where complexity meets clarity.
By Armas Zarra.

Topics

  • Data Structures
  • Algorithms
  • Big-O Notation
  • Robotics
  • AI Research
  • Machine Learning

Practice

  • Blind 75
  • LeetCode 75
  • NeetCode 150

Legal

  • Privacy Policy
  • Terms of Service

© 2026 Armas Films LLC

IntroductionMachine Learning

Machine Learning

How machines learn patterns from data instead of following hand-written rules.

Definition

Try writing rules that recognize a cat in a photo. Pointy ears won't work because some breeds fold them flat, fur won't work because sphynxes barely have any, and whiskers match otters too. Rule lists for problems like this collapse under their own exceptions, which is why machine learning flips traditional programming on its head. Instead of writing rules for the computer to apply to data, you show it data and let it work out the rules. The result is a model: behavior learned from examples instead of spelled out by hand.


That one idea powers search ranking, spam filters, recommendations, and the language models everyone is talking about. The machinery underneath is surprisingly consistent: define a measure of wrong, then nudge the model to be less wrong, millions of times.

Foundations

Before any algorithm, there is the workflow around it. Data gets cleaned and turned into features, split so the model is tested on examples it has never seen, and scored with metrics that tell you more than raw accuracy does. Gradient descent does the actual learning, and regularization keeps it honest.

Supervised Learning

Supervised learning is learning from labeled examples: inputs paired with correct answers. Regression predicts numbers, classification predicts categories, and the classics here run from a straight line through data to ensembles of hundreds of trees. Every major intro course opens with linear regression, and for good reason: most of deep learning is that idea, stacked.

Unsupervised Learning

Unsupervised learning works without labels: the algorithm gets raw data and has to find the structure on its own. Clustering groups similar points, dimensionality reduction squeezes thousands of features down to the few that matter, and anomaly detection flags the points that don't belong.

Deep Learning

Stack enough simple neurons and you can learn almost any pattern. This tier covers the network itself and backpropagation, the chain rule that makes training possible. Then come the classic architectures: CNNs for images, recurrent networks for sequences. It ends right where the AI Research page picks up, because transformers grew straight out of sequence models.

Learning Path

Here is the whole path, tier by tier, in the order the big intro courses teach it. Each topic will get its own page soon, but until then, use this as the map.

Foundations

None of the famous algorithms matter if the workflow around them is broken. Everything in this tier exists to answer one question honestly: is the model actually learning, or just memorizing?

The ML Pipeline

From raw data to deployed model, and every step between.

datafeattrainpred
Coming soon!

Features & Preprocessing

Turning messy real-world data into something a model can learn from.

clean
Coming soon!

Train/Test Split

Hold data back so you know the model generalizes, not memorizes.

datatraintest
Coming soon!

Overfitting & Regularization

When models memorize instead of learn, and how to stop them.

Coming soon!

Evaluation Metrics

Precision, recall, and why accuracy alone can lie to you.

PR
Coming soon!

Gradient Descent

How models learn: follow the error downhill, one step at a time.

Coming soon!
Supervised Learning

With the workflow in place, start where the labels are. Every method here is the same bet in a different shape: examples with known answers can predict the next unknown one.

Linear Regression

Fits a straight line through data to predict numbers.

Coming soon!

Logistic Regression

A linear model bent into predicting yes-or-no probabilities.

Coming soon!

k-Nearest Neighbors

Predicts by asking the closest examples what they are.

Coming soon!

Decision Trees

A flowchart of yes/no questions, learned from data.

Coming soon!

Random Forests

Hundreds of trees voting beat any single tree.

vote
Coming soon!

Gradient Boosting

Trees built one at a time, each fixing the last one's mistakes.

t1t2t3
Coming soon!

Support Vector Machines

Draws the widest possible gap between two classes.

Coming soon!
Unsupervised Learning

Labels are expensive, and most of the world's data has none. These algorithms work with what's actually abundant: raw data, and the structure hiding in it.

K-Means Clustering

Groups data around k center points without any labels.

Coming soon!

Hierarchical Clustering

Builds a tree of clusters, from single points to one big group.

Coming soon!

DBSCAN

Finds clusters by density, and calls the leftovers noise.

Coming soon!

PCA

Squeezes many features into the few directions that matter most.

Coming soon!

t-SNE & UMAP

Flattens high-dimensional data so you can actually look at it.

Coming soon!

Anomaly Detection

Learns what normal looks like, then flags what isn't.

Coming soon!
Deep Learning

Every model so far needed humans to choose its features. A deep network learns the features itself, and that one step made images, audio, and language learnable.

Neural Networks

Layers of simple units that together learn almost anything.

Coming soon!

Backpropagation

The chain rule, applied backwards, that trains every network.

Coming soon!

CNNs

The architecture that taught computers to see.

cat
Coming soon!

RNNs & Sequence Models

Networks with memory, and the road that led to transformers.

Coming soon!

Embeddings

Turns words and items into vectors where distance means similarity.

catdogcar
Coming soon!