Mean & Population Variance of a 1D Feature Python 3 Basics NumPy Summary Stats
Machine Learning Basics Google Meta Amazon
100.0% Simple Train/Test Array Split (Index Slicing) Python 3 Basics Validation NumPy
Machine Learning Basics Google Meta Amazon
100.0% Fill Missing Values (NaN) With Median Python 3 Basics Data Cleaning Imputation
Machine Learning Basics Google Meta Amazon
100.0% Min-Max Scale a 1D Feature to [0, 1] Python 3 Basics Feature Scaling NumPy
Machine Learning Basics Google Meta Amazon
100.0% Z-Score Standardize a 1D Feature Python 3 Basics Feature Scaling NumPy
Machine Learning Basics Google Meta Amazon
100.0% Label Encode a List of String Categories Python 3 Basics Categorical Encoding Python
Machine Learning Basics Google Meta Amazon
— One-Hot Encode a 1D Integer Vector Python 3 Basics Categorical Encoding NumPy
Machine Learning Basics Google Meta Amazon
— Linear Prediction (y = Xw + b) & Residuals Python 3 Basics Linear Regression NumPy
Machine Learning Basics Google Meta Amazon
100.0% Mean Absolute Error (MAE) & Mean Squared Error (MSE) Python 3 Basics Regression Metrics NumPy
Machine Learning Basics Google Meta Amazon
— Root Mean Squared Error (RMSE) & R-Squared (R²) Python 3 Basics Regression Metrics NumPy
Machine Learning Basics Google Meta Amazon
— Binary Accuracy & Confusion Counts (TP, FP, TN, FN) Python 3 Basics Classification Metrics Confusion Matrix
Machine Learning Basics Google Meta Amazon
— Precision, Recall & F1 From Confusion Counts Python 3 Basics Classification Metrics F1
Machine Learning Basics Google Meta Amazon
— Euclidean (L2) & Manhattan (L1) Distance Between Two Vectors Python 3 Basics Distance Metrics KNN
Machine Learning Basics Google Meta Amazon
— Majority Vote Classifier (KNN Vote Step) Python 3 Basics KNN Ensembles
Machine Learning Basics Google Meta Amazon
— One Step of 1D Gradient Descent Python 3 Basics Gradient Descent Optimization
Machine Learning Basics Google Meta Amazon
— Exact ROC-AUC & Average Precision (PR-AUC) From Scratch Python 3 Evaluation Metrics ROC-AUC PR-AUC
Machine Learning Easy Google Stripe Meta
— Numerically Stable Sigmoid & Analytical Derivative Python 3 Activations Numerical Stability Gradients
Machine Learning Easy Google Meta OpenAI
— Numerically Stable Softmax (1D & Batched ND) Python 3 Softmax Numerical Stability Broadcasting
Machine Learning Easy OpenAI Anthropic Google
— Numerically Stable Log-Softmax (Log-Sum-Exp Trick) Python 3 Log-Sum-Exp Numerical Stability Cross-Entropy
Machine Learning Easy Anthropic Meta Google DeepMind
— ReLU, Leaky ReLU & Tanh-Approximated GELU + Gradients Python 3 Activations GELU Backpropagation
Machine Learning Easy OpenAI NVIDIA Meta
— SiLU (Swish) & SwiGLU Gated Feed-Forward Layer Python 3 SwiGLU SiLU Transformers
Machine Learning Easy Meta Google DeepMind Anthropic
— MSE, MAE & Huber Loss with Analytical Gradients Python 3 Regression Losses Huber Loss Outliers
Machine Learning Easy Uber Airbnb DoorDash
— Binary Cross-Entropy With Logits (Numerically Stable) Python 3 BCE Loss Logits Numerical Stability
Machine Learning Easy Stripe Meta Google
— Multiclass Cross-Entropy Loss From Logits + Gradient Python 3 Cross-Entropy Log-Softmax Gradients
Machine Learning Easy OpenAI Google Apple
100.0% Shannon Entropy, Cross-Entropy & KL Divergence Python 3 Information Theory KL Divergence RLHF
Machine Learning Easy Anthropic Google DeepMind Meta
— L1, L2 & ElasticNet Regularization Penalty + Subgradient Python 3 Regularization ElasticNet Subgradients
Machine Learning Easy Google Amazon Stripe
— Vectorized Pairwise Euclidean & Manhattan Distance Matrices Python 3 Vectorization Broadcasting Distance Metrics
Machine Learning Easy Uber Meta Amazon
87.5% Batched Cosine Similarity Matrix (Zero-Norm Safe) Python 3 Embeddings Cosine Similarity RAG
Machine Learning Easy OpenAI Cohere Pinterest
— StandardScaler (fit / transform / inverse_transform) With Constant-Column Guard Python 3 Preprocessing Data Leakage Scaling
Machine Learning Easy Amazon Airbnb DoorDash
— Min-Max & Robust IQR Feature Scalers From Scratch Python 3 Feature Scaling IQR Outliers
Machine Learning Easy Stripe Uber Netflix
— One-Hot Encoder With Unseen Category Handling Python 3 Feature Engineering Categorical Encoding NumPy
Machine Learning Easy Meta Amazon Instacart
— Ordinary Least Squares (OLS) via SVD Pseudoinverse Python 3 Linear Regression OLS SVD
Machine Learning Easy Amazon Google DoorDash
— Ridge Regression Closed-Form (Unpenalized Intercept) Python 3 Ridge Regression L2 Regularization Linear Algebra
Machine Learning Easy Google Amazon Apple
— Batch Gradient Descent for Linear Regression With Early Stopping Python 3 Gradient Descent Convergence Linear Regression
Machine Learning Easy Meta Uber Snap
— SGD Optimizer With Classical & Nesterov Momentum Python 3 Optimizers Momentum Nesterov
Machine Learning Easy Meta NVIDIA OpenAI
— Adam Optimizer With Bias-Corrected Moments (Step-by-Step) Python 3 Adam Optimizers Bias Correction
Machine Learning Easy OpenAI Anthropic Google DeepMind
— Vectorized K-Nearest Neighbors (KNN) Classifier With Tie-Break Python 3 KNN Vectorization Tie-Breaking
Machine Learning Easy Meta Apple Amazon
— Gaussian Naive Bayes Classifier (Log-Likelihood Stability) Python 3 Naive Bayes Probabilistic Models Log-Likelihood
Machine Learning Easy Google LinkedIn Amazon
— Binary Perceptron Learning Algorithm From Scratch Python 3 Perceptron Linear Classifiers Online Learning
Machine Learning Easy Apple Amazon Microsoft
— Optimal 1-Split Decision Stump (Gini Impurity Gain) Python 3 Decision Trees Gini Impurity Tree Splits
Machine Learning Easy Meta DoorDash Stripe
— Linear SVM With Soft-Margin Hinge Loss & L2 Subgradient Python 3 SVM Hinge Loss Subgradients
Machine Learning Easy Google Snap Amazon
— Binary Confusion Matrix, Precision, Recall, Specificity & F1 Score Python 3 Classification Metrics F1 Score Zero Division
Machine Learning Easy Stripe Meta Amazon
— Multiclass Macro, Micro & Weighted F1 Score Python 3 Multiclass Metrics Macro F1 Micro F1
Machine Learning Easy Google LinkedIn Airbnb
— Regression Metrics: RMSE, R², Adjusted R² & Safe MAPE Python 3 Regression Metrics Adjusted R2 MAPE
Machine Learning Easy Airbnb Uber DoorDash
50.0% Deterministic Stratified Train/Test Split From Scratch Python 3 Data Splitting Stratification Class Imbalance
Machine Learning Easy Meta Stripe Google
— Deterministic K-Fold & Stratified K-Fold CV Splitter Python 3 Cross-Validation K-Fold Stratification
Machine Learning Easy Google Amazon Netflix
— Sample Covariance & Pearson Correlation Matrix From Scratch Python 3 Linear Algebra Covariance Pearson Correlation
Machine Learning Easy Jane Street Google Meta
— Principal Component Analysis (PCA) via SVD & Explained Variance Python 3 PCA SVD Dimensionality Reduction
Machine Learning Easy Google NVIDIA Amazon
— Dominant Eigenvalue & Eigenvector via Power Iteration Python 3 Eigenvalues Power Iteration PageRank
Machine Learning Easy Google NVIDIA Google DeepMind
— Linear Warmup + Cosine Annealing LR Scheduler Python 3 LLM Training LR Schedule Cosine Annealing
Machine Learning Easy OpenAI Anthropic Meta
— Inverted Dropout Forward & Backward Pass (Train vs. Eval) Python 3 Dropout Regularization Backpropagation
Machine Learning Easy Meta OpenAI Google
— Mini-Batch Logistic Regression with L2 Regularization Python 3 Gradient Descent Regularization Classification
Machine Learning Medium Google Meta Stripe
— K-Means++ Clustering with Convergence & Empty-Cluster Recovery Python 3 Unsupervised Learning K-Means++ Clustering
Machine Learning Medium Uber Airbnb Amazon
—