Comparing main...ml/pr4-solution-articles · neetcode-gh/leetcode · GitHub
Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: neetcode-gh/leetcode
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: neetcode-gh/leetcode
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: ml/pr4-solution-articles
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 7 commits
  • 12 files changed
  • 3 contributors

Commits on Apr 4, 2026

  1. Add solution articles for 3 new ML problems

    Add solution articles for multi-layer backpropagation, weight
    initialization, and batch normalization. These follow the same
    format as the existing 27 ML solution articles (Prerequisites,
    Concept, Solution with Python tabs, Common Pitfalls, In the GPT
    Project, Key Takeaways).
    
    Made-with: Cursor
    ahmadbasyouni10 committed Apr 4, 2026
    Configuration menu
    Copy the full SHA
    ff46093 View commit details
    Browse the repository at this point in the history
  2. Update ML solution articles: W_o output projection + weight-init fix

    - multi-headed-self-attention: Add output_proj (W_o) linear layer after
      concatenating heads, matching standard practice
    - transformer-block: Add output_proj to inner MultiHeadedSelfAttention
      class, consistent with multi-head attention problem
    - weight-initialization: Rewrite check_activations to use raw weight
      matrices (torch.randn * std) instead of nn.Linear for cross-platform
      determinism
    
    Made-with: Cursor
    ahmadbasyouni10 committed Apr 4, 2026
    Configuration menu
    Copy the full SHA
    9fbb488 View commit details
    Browse the repository at this point in the history
  3. weight-initialization: round check_activations to 2 decimals

    Reduces precision from 4 to 2 decimal places for the
    check_activations method to absorb cross-platform floating
    point differences in multi-layer matrix operations.
    
    Made-with: Cursor
    ahmadbasyouni10 committed Apr 4, 2026
    Configuration menu
    Copy the full SHA
    7832a2b View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2026

  1. Update code-gpt article for W_o rollout and logits (no softmax)

    - Remove softmax from solution, return raw logits
    - Add W_o output projection to inner MHA class
    - Update all explanatory text: probabilities → logits
    - Update shape table and key takeaways
    
    Made-with: Cursor
    ahmadbasyouni10 committed Apr 5, 2026
    Configuration menu
    Copy the full SHA
    b2633fa View commit details
    Browse the repository at this point in the history

Commits on Apr 6, 2026

  1. Add solution articles for RMS Normalization and Training Diagnostics

    - rms-normalization.md — RMSNorm vs LayerNorm, numpy implementation, Llama/Mistral context
    - training-diagnostics.md — 3-method class (activation stats, gradient stats, diagnose), Karpathy debugging recipe
    
    Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
    ahmadbasyouni10 and claude committed Apr 6, 2026
    Configuration menu
    Copy the full SHA
    22047d3 View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2026

  1. Add solution articles for Dead ReLU Detector and Tokenization Edge Cases

    Two new ML course problems (PR4), bringing total to 34.
    
    Dead ReLU Detector: detect_dead_neurons + suggest_fix with priority-ordered
    diagnostic rules. 8 test cases covering all fix branches.
    
    Tokenization Edge Cases: greedy tokenization exposing number inconsistency,
    token counting, and fertility scoring. 8 test cases.
    
    Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
    ahmadbasyouni10 and claude committed Apr 8, 2026
    Configuration menu
    Copy the full SHA
    e5f6e16 View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2026

  1. Configuration menu
    Copy the full SHA
    99f89e5 View commit details
    Browse the repository at this point in the history
Loading