Separate data roles before fitting a predictive model
Training, validation, and test data serve different roles in a modeling procedure. Their separation helps the final evaluation […]
Original companion articles exploring the mathematics and engineering of large language models.
Training, validation, and test data serve different roles in a modeling procedure. Their separation helps the final evaluation […]
Softmax converts a vector of real scores into nonnegative values that sum to one. Directly exponentiating very large […]
Regularization adds a preference or constraint to a learning problem. A penalty on large coefficients can reduce sensitivity […]
A frequentist confidence interval comes from a procedure designed to cover a fixed population parameter at a stated […]
Bayes’ rule updates probabilities by combining a prior distribution with a likelihood for the evidence. The result depends […]
Covariance records whether two variables tend to lie above or below their own means together. Its value depends […]
Features measured on very different scales can make an optimization problem difficult to traverse with a single learning […]
The chain rule differentiates a composition by multiplying the derivatives along the dependence path. It is the mathematical […]
Matrix multiplication requires the inner dimensions to match. Naming the shapes of inputs, weights, and outputs can reveal […]
The dot product multiplies corresponding vector components and adds the products. It measures a combination of magnitude and […]
Training classifiers and language models usually means minimizing cross-entropy. The reason becomes clear once you connect it to […]
Why should a model that fits training data also work on new data? Statistical learning theory gives conditions […]
Modern training relies on a small family of optimizers. Each one fixes a specific weakness of the one […]
Convex problems are special because every local minimum is a global minimum. Duality adds a second view that […]
Both methods pick parameter values that explain data well. The difference is whether they also use prior beliefs […]
The central limit theorem explains why averages of many independent measurements look approximately bell-shaped, even when the individual […]
People often picture training a neural network as rolling into a valley and getting stuck in a bad […]
Two problems with the same mathematical answer can behave very differently on a computer. The condition number measures […]
Symmetric matrices appear constantly in machine learning, in covariance matrices, Hessians, and kernel matrices. The spectral theorem explains […]
The singular value decomposition, or SVD, takes any matrix and expresses it as a rotation, a stretch, and […]