K2 Draft 2 Notes
This batch contains 40 articles, covering one concept per article. The original knowledge-graph IDs, prerequisite links, and related links are preserved; article numbers are used for indexing and do not need to be studied strictly in numerical order. For the mathematics section, you can read derivatives before gradients; the model library articles can be studied alongside their corresponding mathematical nodes.
Draft 2 revision date: 2026-10-14. In each article, "Usage Boundaries" highlights assumptions that are easily misread, "Comprehension Checks" supports self-testing after reading, and "Verification & Reproduction" links directly to the execution logs.
Content marked as "Draft 1 Retained Output" in the text comes from the original first draft, preserving its original environment and numerical values; those logs were not regenerated in this run. The current run was executed on Windows / CPython 3.12.14; modified examples use "Current Run Output", with full logs stored in the verification directory. Benchmark timings, random outputs, file paths, and error wording may vary across environments—the teaching assertions are the behaviors to verify.
Running the main examples: install dependencies compatible with the libraries used by the script, then run python examples/<script_name>.py. Version checks in the code are retained; the current runtime environment did not execute Python 3.14/3.15 new API branches.
Latest PyPI releases and the versions tested in this run are listed side by side in the root verification report. Streamlit 1.65.0 requires pyarrow<26, and PyArrow in this run is 25.0.1; avoid installing every latest version from the table into a single environment without checking dependency constraints first.
Entry files: 00-index.md, article-verification-table.md, and pending-checks.md. The primary Draft 2 text remains editable Markdown; the mobile reading HTML bundles prose, code, and diagrams—loading formulas and Mermaid diagrams when online while keeping text, code, and embedded illustrations readable offline.
Six deep-learning library articles—PyTorch, TensorFlow, JAX, Transformers, Diffusers, and PEFT—did not re-run full deep-learning model training examples. The PyTorch comparison in the normalization tutorial was also skipped in this run, while the NumPy portion was executed.
Related Tutorials
- Scikit-learn: Classical Machine Learning Toolkit
- PyTorch: Dynamic-Graph Deep Learning Framework
- TensorFlow and Keras
- JAX: Composable Function Transformations for Numerical Computing
- Hugging Face Transformers: A Unified Interface for Pretrained Models
- Diffusers: Diffusion Model Toolkit
- PEFT and LoRA: Parameter-Efficient Fine-Tuning
- Arrays and Python Lists
- Linked Lists
- Stacks
- Queues
- Hash Tables and Python dict / set
- Trees
- Binary Trees and Binary Search Trees (BST)
- Graphs
- Heaps and Priority Queues
- Tries (Prefix Trees)
- Big O: Time and Space Complexity
- Quicksort
- Merge Sort
- Binary Search
- Breadth-First Search (BFS)
- Depth-First Search (DFS)
- Shortest Path Problems Overview (BFS / Bellman-Ford / Floyd-Warshall)
- Dijkstra's Shortest Path Algorithm
- Dynamic Programming
- Greedy Algorithms
- Linear Algebra Overview: Linear Systems, Transformations, and Rank
- Vectors: Norms, Dot Products, and Cosine Similarity
- Matrices and Matrix Operations
- Eigenvalues and Eigenvectors
- Probability: Random Variables, Distributions, and Softmax Sampling
- Statistics: Descriptive Statistics, Confidence Intervals, and Hypothesis Testing
- Bayes' Theorem and Bayesian Inference
- Gradients and Backpropagation
- Derivatives: Rates of Change, Numerical Differentiation, and the Chain Rule
- Optimization: Gradient Descent, Momentum, and Adam
- Loss Functions: MSE, Cross-Entropy, and Perplexity
- Regularization: L1, L2, Dropout, and Weight Decay
- Normalization: Feature Scaling, BatchNorm, LayerNorm, and RMSNorm