Applied Logic & Computing · From SGD to Transformer Attention

Machine Learning & Neural Networks Foundry

Demystify modern AI from first principles across 10 bioluminescent foundry towers: MSE/BCE losses & gradient descent, bias-variance & L1/L2 regularization, Gini decision trees & boosting, K-Means & PCA, live 2D XOR perceptrons/MLPs, backprop & vanishing gradients, 8×8 CNN convolutions, vector embeddings, and causal Transformer Self-Attention.

  • Live 2D XOR MLP & Backprop
  • 8×8 CNN 3×3 Edge Kernels
  • King−Man+Woman Embeddings
  • Causal QKᵀ/√dₖ Self-Attention
Practice Towers
10
Guided Floors
40
Crown Rooms
10
Verification
Live Engine

What You Will Practice

Manipulate weights, learning rates, regularization penalties, 3×3 convolution kernels, and attention temperatures directly across 5 live Painter2D neural benches and watch decision boundaries, loss curves, and attention heatmaps update immediately.

Every optimization step, tree split, PCA axis, convolution output, and softmax attention matrix is computed cleanly in pure C#.

  • MSE/BCE loss functions, stochastic gradient descent, momentum, and bias-variance U-curves
  • L1/L2 regularization, Gini decision trees, bagging, boosting, K-Means, and PCA variance axes
  • 2-hidden-ReLU XOR MLPs, backpropagation, and diagnosing vanishing sigmoid gradients
  • 3×3 CNN edge filters, cosine vector embeddings, and Scaled Dot-Product Self-Attention with causal masks

Course Curriculum (10 Towers · 40 Interactive Floors)

  1. Tower 1

    Regression & Loss Landscapes

    1. Fit Slope & Intercept (MSE)
    2. Outliers: MAE (Median) vs. MSE (Mean)
    3. One-Step Gradient Descent
    4. Learning-Rate Instability Cliff
  2. Tower 2

    Classification, Sigmoid & Metrics

    1. Logits to Probability (Sigmoid)
    2. Binary Cross-Entropy Penalty
    3. Threshold Tuning for High Recall
    4. Balancing Precision & Recall (F1 Peak)
  3. Tower 3

    Bias, Variance & Regularization

    1. Cure High Bias (Underfitting)
    2. Spot the Overfitting Cliff
    3. L2 Ridge Weight Shrinkage
    4. L1 Lasso Feature Sparsity
  4. Tower 4

    Decision Trees & Ensembles

    1. Gini Impurity & Pure Leaves
    2. Slice the Optimal Split Threshold
    3. Prune an Overfit Deep Tree
    4. Bagging Variance Drop (Random Forest)
  5. Tower 5

    Unsupervised: K-Means & PCA

    1. Minimize K-Means Inertia
    2. Choose the Elbow K
    3. PCA: Align the Maximum-Variance Axis
    4. Dimensionality Reduction (95% Rule)
  6. Tower 6

    Perceptrons & Decision Geometry

    1. Orient the 2D Perceptron Cut
    2. Maximize the Classifier Margin
    3. ReLU Activation Hinge
    4. Hit the Linear XOR Wall (75% Max)
  7. Tower 7

    Backpropagation & Optimization

    1. Chain-Rule Local Credit
    2. Witness Vanishing Sigmoid Gradients
    3. Rescue Deep Flow with ReLU
    4. Accelerate Descent with Momentum
  8. Tower 8

    Convolutional Vision & Kernels

    1. 3×3 Vertical Edge Detector
    2. 3×3 Horizontal Edge Detector
    3. Brightness-Preserving Sharpen Kernel
    4. 2×2 Max Pooling Shift Invariance
  9. Tower 9

    Embeddings & Vector Semantics

    1. Cosine Similarity Alignment
    2. Vector Analogy: King − Man + Woman
    3. Dot-Product Document Retrieval
    4. Contrastive Triplet Margin Loss
  10. Tower 10

    Transformers & Self-Attention

    1. Align Query & Key (Q · Kᵀ)
    2. Why Divide by √d_k? (Anti-Saturation)
    3. Enforce Causal Autoregressive Masking
    4. Tune Softmax Sampling Temperature T

Deterministic Verification & Crown Payoff

Exact Pure-C# Gradient, Loss, Convolution & Self-Attention Solvers

Verifies gradient descent convergence, L1/L2 bias-variance trade-offs, XOR MLP classification, 3×3 CNN feature maps, cosine embedding arithmetic, and causal QKᵀ/√dₖ attention weights.

Supported inputs: 5 Bioluminescent Neural Benches · Live Decision Boundaries & Attention Maps

Crown Room payoff: Train nonlinear neural boundaries, craft CNN detectors, and tune causal Transformer attention heads across 10 Foundry Crowns.

Practice Machine Learning & Neural Nets Inside Nousfarer

Land directly on the Machine Learning & Neural Networks Foundry planet inside Nousfarer to climb all 10 interactive towers right in your browser.

Frequently Asked Questions

How does Machine Learning & Neural Nets verify my work?

Verifies gradient descent convergence, L1/L2 bias-variance trade-offs, XOR MLP classification, 3×3 CNN feature maps, cosine embedding arithmetic, and causal QKᵀ/√dₖ attention weights. Every floor runs deterministically in your browser with immediate feedback — no video pausing or guesswork.

How much content is included in Machine Learning & Neural Nets?

The planet spans 10 progressively richer towers (40 guided floors plus 10 Crown Room capstones), paired with Ship Owl spaced-repetition recall whenever you want to sharpen a tricky concept.

What equipment or setup do I need to play Machine Learning & Neural Nets?

Everything runs directly inside your browser inside Nousfarer with zero plugins required. Supported inputs: 5 Bioluminescent Neural Benches · Live Decision Boundaries & Attention Maps.