Comparing main...feature/ml-solution-articles-new · 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: feature/ml-solution-articles-new
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 4 commits
  • 6 files changed
  • 2 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 11, 2026

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

    - 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 authored Apr 11, 2026
    Configuration menu
    Copy the full SHA
    dc744af View commit details
    Browse the repository at this point in the history
Loading