• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 1 fuera de 3 páginas
Study guide

Machine Learning: Supervised Learning, Evaluation and Overfitting

Document preview thumbnail
Vista previa 1 fuera de 3 páginas

Study guide for a third-year introductory Machine Learning module, written around model choice and evaluation. Section 1 covers supervised, unsupervised and reinforcement framing, loss functions, feature encoding and scaling, leakage and inductive bias. Section 2 covers linear and logistic regression with ridge, lasso and elastic net, k-nearest neighbours, decision trees, bagging, random forests, gradient boosting and support vector machines with kernels, each with its weakness. Section 3 covers overfitting, the bias-variance decomposition, learning curves, k-fold, stratified, grouped and time-series validation, and the metric choice between ROC-AUC, PR-AUC, precision, recall and calibration. Section 4 covers feature importance, permutation importance and SHAP, drift monitoring, fairness metrics and reproducibility. Includes an algorithm table, four practice questions with marking checkpoints, a glossary and a 40-minute revision plan.

Vista previa del contenido

Machine Learning: Supervised Learning, Evaluation and
Overfitting
The algorithms, the bias-variance trade-off and the questions on model choice
Computer Science | Undergraduate (Level 6) | December 2026


WHAT IS INSIDE

1. Framing a learning problem
2. Core supervised algorithms
3. Evaluation and the bias-variance trade-off
4. From model to deployment
Exam question patterns
Glossary of exam-ready definitions

1. Framing a learning problem
Supervised learning maps inputs to labelled outputs, unsupervised learning finds structure without labels,
and reinforcement learning learns a policy from reward. The first exam decision is the task type - regression
for a continuous target, classification for a categorical one - and the second is the loss: squared error penalises
large deviations heavily and is sensitive to outliers, absolute error is robust but non-differentiable at zero, and
cross-entropy is the natural loss for probabilities because it punishes confident wrong answers hardest.
Features decide more of the outcome than the algorithm. Categorical variables need encoding (one-hot,
ordinal, target), numeric features need scaling for any distance-based or gradient-based method, and data
leakage - fitting a scaler or selecting features before splitting - produces a model that looks excellent in
validation and fails in production. The i.i.d. assumption behind every held-out estimate is worth stating
whenever the data are temporal or grouped.
• Inductive bias - every learner assumes something; smoothness, linearity, locality or axis-aligned splits.
• Class imbalance - accuracy misleads; use precision, recall, F1, balanced accuracy or PR-AUC.
• Leakage - encode and scale inside the cross-validation fold, never before the split.
• Curse of dimensionality - distance concentrates as dimensions grow, which erodes k-NN and clustering.

2. Core supervised algorithms
Linear regression fits coefficients by least squares and is interpretable, with the Gauss-Markov conditions
making it the best linear unbiased estimator; ridge adds an L2 penalty to stabilise collinear features, lasso an
L1 penalty that also selects, and elastic net combines them. Logistic regression models the log-odds with a
sigmoid and is the baseline every classifier must beat, because it is fast, calibrated and explainable through its
coefficients.
k-nearest neighbours is non-parametric and local: small k gives a jagged boundary and low bias with high
variance, large k smooths it. Decision trees split greedily on information gain or Gini impurity, are
interpretable and unstable - a small data change can rebuild the tree - which is why bagging, random forests
and gradient boosting exist. Support vector machines maximise the margin and, with the kernel trick, learn
non-linear boundaries, at the cost of scaling behaviour and tuning two hyperparameters.
• Regularisation strength - raising lambda reduces variance and increases bias; tune it, do not guess it.
• Random forest - decorrelates trees by feature subsampling; little tuning, strong baseline.
• Boosting - sequential correction of residual error; higher accuracy, more sensitive to noise and overfitting.



Machine Learning: Supervised Learning, Evaluation and Overfi Page 1 of 3

Información del documento

Estudio
Desconocido
Subido en
2 de diciembre de 2026
Número de páginas
3
Escrito en
2026/2027
Tipo
Study guide
$7.98

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Vendido
0
Seguidores
0
Artículos
225
Última venta
-



Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes