Leaky ReLU: Fix Dying ReLU in 1 Simple Change
Leaky ReLU is a simple, popular fix for the biggest weakness of ordinary ReLU: dead neurons. Instead of flattening every
Loss functions, activation functions, metrics and the core concepts of how models learn.
Leaky ReLU is a simple, popular fix for the biggest weakness of ordinary ReLU: dead neurons. Instead of flattening every
The tanh activation function — the hyperbolic tangent — squashes inputs into the range −1 to 1. It is a
The softmax function is how a neural network turns a handful of raw scores into class probabilities that add up
The sigmoid function is the classic S-shaped curve that squashes any real number into a value between 0 and 1.
The ReLU activation function — short for Rectified Linear Unit — is the default activation for hidden layers in modern
A practical guide to classification metrics — accuracy, precision, recall, F1 and ROC-AUC — with a decision process for choosing the right one for balanced vs imbalanced data.
The ROC curve plots true positive rate vs false positive rate across all thresholds; AUC summarises it as one number. Learn how to read them, what a good AUC is, and ROC-AUC vs PR-AUC.
The F1 score is the harmonic mean of precision and recall: F1 = 2·(P·R)/(P+R). Learn why it uses a harmonic mean, when to use it, F-beta, and macro vs micro vs weighted F1.
Precision is TP/(TP+FP) and recall is TP/(TP+FN). Learn the difference, the precision–recall trade-off, and which to prioritise for imbalanced problems like fraud, disease and spam.
A confusion matrix compares predicted vs actual labels across four cells — TP, FP, TN, FN — and every classification metric (accuracy, precision, recall, F1) is derived from them.