Skip to main content

Machine learning and training

Learning changes a model's parameters using data or interaction. Start by identifying the input, target, loss and evaluation split; then ask which assumptions let a trained pattern carry over to a new example.

Linear regression introduces a model and gradient updates; least squares develops the closed-form solution, statistical assumptions and regularization. Classification and training mechanics lead into adaptation. Trees, clustering and reinforcement learning show alternatives to fitting a neural network to fixed labels.

Reading Order​

StepArticleWhat it explains
1Machine Learning General ConceptsA compact vocabulary for models, losses, empirical risk, likelihood, regularization, optimization, and generalization.
2Linear Regression: Modeling and Gradient DescentBuild a linear predictor, calculate residuals, and follow gradient updates; closed-form estimation and statistical inference are covered separately.
3Ordinary Least Squares and RegularizationLeast-squares estimation and the Ridge, Lasso, and Elastic Net penalties used to control unstable or overly complex coefficients.
4Softmax RegressionMulticlass linear classification with logits, softmax probabilities, cross-entropy, and clear boundaries around multilabel tasks.
5Linear and Quadratic Discriminant AnalysisGaussian generative classifiers whose shared or class-specific covariance assumptions produce linear or quadratic decision boundaries.
6Training a Model: Gradients, Optimizers, and Learning RatesFollow one parameter update, then connect minibatches, optimizer state, validation, and reproducible checkpoints.
7Pretraining, Supervised Fine-Tuning, and Preference OptimizationExplain how training targets shape representations, instruction following, and preferred behavior without equating preference with truth.
8Transfer Learning, LoRA, and DistillationChoose between a frozen encoder, full fine-tuning, low-rank adaptation, and a smaller student for a defined task.
9Decision Trees, Random Forests, and Gradient BoostingDerive a tree split and a boosting update, then compare their inductive biases, validation needs, and limits.
10Clustering and Dimensionality ReductionSeparate discovering groups from compressing representations, using worked k-means and PCA examples.
11Reinforcement Learning: Rewards, Value, and Sequential DecisionsUse a two-state example to distinguish immediate rewards, long-term value, exploration, and learned agent policies.

Use What You Read​

Use one small example to connect prediction, loss and parameter update. Keep data splitting and evaluation separate from optimization: a falling training loss alone does not establish useful generalization.

Return to the AI reading paths to choose a neighboring topic.

Explore connectionsOpen network