COMP9321 · 09 Choosing a model · Lists & facts

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/13

encourage image

There's no tags or description

Looks like no tags are added yet.

14 Terms

1
New cards
Regression metrics: when MAE, RMSE, RMSLE, R²?
MAE: easy typical error. RMSE: big errors especially bad. RMSLE: targets span orders of magnitude (relative error). R²: improvement over predicting the mean.
2
New cards
Regression checks: problem found by funnel residuals / VIF / Q–Q plot / studentized residuals / curved residuals.
Heteroscedasticity · multicollinearity · non-normal errors · outliers · non-linearity.
3
New cards
Ridge vs lasso.
Ridge (L2) shrinks all coefficients. Lasso (L1) can set some to exactly 0 (feature selection). Standardise features first.
4
New cards
How a decision tree is built (ID3).
Top-down, greedy: at each node choose the feature that best separates the classes (highest information gain), split, repeat; stop when pure, no features left or a stopping rule hits.
5
New cards
Decision tree: 3 advantages, 3 disadvantages.
Pros: easy to understand, captures non-linearity, no scaling, handles mixed types. Cons: deep trees overfit, unstable, greedy splits not globally optimal.
6
New cards
Trees: continuous features and missing values?
Continuous: try thresholds (Age < 30.5?). Missing: use the most common value at that node, or send the example down branches in proportion.
7
New cards
Bagging vs boosting vs stacking.
Bagging: parallel, bootstrap samples, vote → reduces variance (random forest). Boosting: sequential, focus on errors → reduces bias (AdaBoost, GBM). Stacking: different models + meta-model.
8
New cards
Exam sentence: why a random forest over one tree?
A single tree is unstable and overfits; a random forest averages many decorrelated trees trained on bootstrap samples with random feature subsets, which reduces variance and gives more robust predictions.
9
New cards
Model chooser: churn, must explain to managers.
Decision tree (readable rules) → limitation unstable/overfits → remedy random forest or pruning.
10
New cards
Model chooser: small data, few numeric features, similar items behave alike.
k-NN → slow at prediction, needs scaling, noise-sensitive → scale, choose k by CV.
11
New cards
Model chooser: numeric target, non-linear, many features (movie revenue).
Random forest / gradient boosting regressor → less interpretable → feature importances; log-transform skewed target.
12
New cards
Model chooser: rare positive class (fraud).
Any classifier + imbalance handling: evaluate with recall/F1, SMOTE or class weights, stratified CV.
13
New cards
Template: model choice answer (parts).
Model + why it fits the target and data + data changes needed (encoding, imputation, scaling) + limitation + remedy.
14
New cards
Template: "how would you approach the problem" (6 steps).
Understand data and goal → acquire and integrate (join on the shared key, align granularity) → clean → engineer features → model and evaluate (time-aware split, suitable metric) → publish via a REST endpoint.