Real linear regression using gradient descent optimization. Learns weights by minimizing Mean Squared Error.
| Size (sqft) | 1000 | 1500 | 2000 | 2500 | 3000 |
|---|---|---|---|---|---|
| Price ($K) | 150 | 200 | 250 | 300 | 350 |
Binary classifier using sigmoid activation. Outputs probability between 0-1 for fraud detection.
Builds a tree by finding the best feature splits using Information Gain or Gini Impurity.
Multiple decision trees trained on bootstrapped samples, with random feature subsets.
Sequential ensemble where each tree corrects errors of previous trees.
Multi-layer perceptron with full backpropagation. Learns the XOR function (not linearly separable).
Test XOR: [0,0]β0, [0,1]β1, [1,0]β1, [1,1]β0
Finds optimal separating hyperplane using hinge loss and sub-gradient descent.
Classifies by finding K closest training examples and voting.
Unsupervised clustering using K-Means++ initialization and Lloyd's algorithm.
Text classification using Bayes theorem with Laplace smoothing.
CNN with learnable filters, ReLU, max pooling, and full backpropagation through conv layers.
Character-level RNN with hidden state, trained using Backpropagation Through Time.
Core self-attention mechanism with Q, K, V matrices - the foundation of GPT/BERT.
Agent learns optimal policy through trial and error using Bellman equation.
Medical diagnosis using conditional probability tables and Bayes theorem.
Agglomerative clustering that builds a dendrogram by merging closest clusters.