AAIB Exam

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

1/94

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 5:50 PM on 6/25/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

95 Terms

1
New cards
What is supervised learning?
ML with labeled data; learns input → target mapping for prediction.
2
New cards
Regression vs classification?
Regression predicts continuous values; classification predicts categories/classes.
3
New cards
What is unsupervised learning?
ML with unlabeled data; finds patterns, groups, or hidden structure.
4
New cards
What is reinforcement learning?
Agent takes actions in an environment to maximize cumulative reward.
5
New cards
What is linear regression used for?
Predicting continuous numerical targets.
6
New cards
What is the linear regression objective?
Find weights that minimize prediction error, usually squared loss.
7
New cards
What is regularization?
Penalizing model complexity to reduce overfitting.
8
New cards
What is logistic regression used for?
Binary classification using predicted probabilities.
9
New cards
What does the sigmoid function do?
Maps any real value to a probability between 0 and 1.
10
New cards
How does logistic regression classify?
Uses a probability threshold, often 0.5.
11
New cards
What do logistic regression coefficients represent?
Changes in log-odds.
12
New cards
What is a decision tree?
A sequence of feature-based questions/splits leading to a prediction.
13
New cards
Key decision tree terms?
Root node, split, branch, leaf/terminal node, pruning.
14
New cards
Common decision tree split criteria?
Gini index, entropy, information gain, reduction in variance.
15
New cards
Main advantage and weakness of decision trees?
Advantage: interpretable; weakness: can overfit and generalize poorly.
16
New cards
What is Random Forest?
An ensemble of many decision trees.
17
New cards
What is bagging?
Bootstrapping + aggregating predictions.
18
New cards
How does Random Forest predict?
Classification: majority vote; regression: average prediction.
19
New cards
What is out-of-bag evaluation?
Testing trees on samples not used in their bootstrap sample.
20
New cards
Why is Random Forest better than one tree?
Lower variance, more stability, less overfitting.
21
New cards
What is AdaBoost?
Boosting method that combines weak learners into a strong model.
22
New cards
What weak learner is common in AdaBoost?
Decision stumps: one-split decision trees.
23
New cards
Three core ideas of AdaBoost?
Weak learners, unequal “say,” next learner focuses on previous errors.
24
New cards
How do AdaBoost sample weights work?
Misclassified samples get higher weight in the next round.
25
New cards
What is Gradient Boosting?
Sequentially adds models that reduce previous prediction errors/loss.
26
New cards
Gradient Boosting vs AdaBoost?
AdaBoost reweights samples; Gradient Boosting fits residuals/loss gradients.
27
New cards
What does learning_rate do in boosting?
Controls how much each new tree contributes.
28
New cards
What is LightGBM?
Fast, efficient gradient boosting model for tabular data.
29
New cards
XGBoost vs CatBoost vs LightGBM?
All are boosting models; CatBoost handles categorical variables well, LightGBM is very fast/efficient.
30
New cards
What is K-Means?
Clustering method that assigns points to nearest centroid.
31
New cards
K-Means steps?
Choose k, initialize centroids, assign points, recompute centroids, repeat.
32
New cards
How choose k in K-Means?
Elbow method: choose where improvement starts flattening.
33
New cards
What is DBSCAN?
Density-based clustering that finds dense regions and noise.
34
New cards
DBSCAN point types?
Core, border, noise.
35
New cards
K-Means vs DBSCAN?
K-Means needs k and centroid-like clusters; DBSCAN finds density clusters and noise.
36
New cards
What is feature engineering?
Creating/transformation of variables to improve model learning.
37
New cards
What is data leakage?
When unavailable future/test information enters training.
38
New cards
Why is leakage dangerous?
It gives unrealistically good test results and fails in real use.
39
New cards
What is imbalanced data?
One class is much more frequent than another.
40
New cards
How handle imbalanced data?
Oversampling, undersampling, SMOTE, class weights, threshold tuning.
41
New cards
Why can accuracy mislead on imbalanced data?
Model can predict majority class only and still look accurate.
42
New cards
What is a confusion matrix?
Table of TP, TN, FP, FN.
43
New cards
What is precision?
TP / (TP + FP): how many predicted positives were correct.
44
New cards
What is recall?
TP / (TP + FN): how many real positives were found.
45
New cards
What is F1-score?
Harmonic mean of precision and recall.
46
New cards
Precision vs recall priority?
Precision matters when false positives are costly; recall matters when false negatives are costly.
47
New cards
What is MAE?
Average absolute error.
48
New cards
MSE vs RMSE?
MSE = average squared error; RMSE = square root of MSE in original units.
49
New cards
What is R²?
Proportion of target variance explained by the model.
50
New cards
What is cross-validation?
Repeated train/validation splits for more reliable performance estimation.
51
New cards
Why use TimeSeriesSplit for time series?
It preserves time order and prevents future data leakage.
52
New cards
What is GridSearch?
Tests all predefined hyperparameter combinations.
53
New cards
GridSearch vs RandomizedSearch?
GridSearch tests all combinations; RandomizedSearch samples some, usually faster.
54
New cards
What is AutoML?
Automates model selection, preprocessing, tuning, and evaluation.
55
New cards
What is interpretability?
How understandable the model itself is.
56
New cards
What is explainability?
Explaining why a model made a prediction.
57
New cards
Interpretability vs explainability?
Interpretability = transparent model; explainability = post-hoc reasoning for predictions.
58
New cards
What is SHAP?
XAI method assigning each feature a contribution to a prediction.
59
New cards
SHAP main idea?
Prediction = baseline + feature contributions.
60
New cards
Global vs local explanation?
Global explains overall model behavior; local explains one prediction.
61
New cards
What is trustworthy AI?
AI that is lawful, ethical, and robust.
62
New cards
EU AI Act risk levels?
Unacceptable, high, limited, minimal.
63
New cards
What is Green AI?
AI that values efficiency and computational cost alongside accuracy.
64
New cards
What is deep learning?
ML using neural networks with multiple layers to learn representations.
65
New cards
Core neural network components?
Layers, weights, biases, activation functions, loss function, optimizer.
66
New cards
What is overfitting?
Model learns training noise and performs poorly on new data.
67
New cards
What is an MDP?
Formal RL framework: states, actions, transitions, rewards, discount factor.
68
New cards
Policy vs value vs Q-value?
Policy chooses actions; value rates states; Q-value rates state-action pairs.
69
New cards
Which algorithms were used in the project?
XGBoost, LightGBM, and CatBoost.
70
New cards
Why use boosting models in the project?
They work well on tabular data, capture nonlinear patterns, and handle complex feature interactions.
71
New cards
Why was LightGBM technically strong?
It is fast, memory-efficient, scalable, and performed best across horizons.
72
New cards
What validation method was used in the project?
3-fold TimeSeriesSplit.
73
New cards
Why not use random train-test splitting in the project?
Random splits can leak future information in time-series forecasting.
74
New cards
How does TimeSeriesSplit work?
Train on earlier time periods and validate on later time periods.
75
New cards
What were the main leakage fixes in the project?
Removed the “No” row counter and fixed rolling windows with shift(1).
76
New cards
Why was the “No” column leakage?
It was a sequential row counter correlated with time, not a real predictor.
77
New cards
What was the rolling-window leakage bug?
Rolling means included the current value, which would not be available at prediction time.
78
New cards
Correct rolling feature formula?
PM2.5.shift(1).rolling(window).mean().
79
New cards
Why use shift(1) before rolling?
To ensure only past values are used, not the current/future target.
80
New cards
Main feature types in the project?
Raw pollutant/weather features, lag features, rolling windows, cyclical time, station dummies.
81
New cards
Why use raw numeric features?
Current pollutant and meteorological values are fundamental predictors.
82
New cards
Why use lag features?
Pollution has temporal autocorrelation; recent values predict near-future PM2.5.
83
New cards
Which lag features were used?
1h, 3h, 6h, and 12h lags.
84
New cards
Why use rolling-window features?
They summarize recent average pollution trends.
85
New cards
Why use cyclical time features?
Time is circular, so sin/cos avoids fake jumps like 23 → 0.
86
New cards
Example of cyclical encoding?
hour_sin = sin(2Ď€ Ă— hour/24), hour_cos = cos(2Ď€ Ă— hour/24).
87
New cards
Why use station dummy variables?
Stations have different spatial/location-specific pollution patterns.
88
New cards
How were missing values handled technically?
Imputation statistics were computed only on training folds and applied to validation/test folds.
89
New cards
Why compute imputation only on training data?
To avoid leakage from future/test data.
90
New cards
How were outliers treated?
Extreme pollution values were flagged but not removed.
91
New cards
Why not remove pollution outliers?
Extreme pollution events are real signals, not necessarily errors.
92
New cards
What scaler was used in the project?
StandardScaler.
93
New cards
Why fit scaling only on training data?
To avoid using test/future statistics during preprocessing.
94
New cards
Do tree-based models require scaling?
Usually no, but scaling can support consistency and comparison.
95
New cards
Best technical project pipeline summary?
Clean data → engineer lag/rolling/time/station features → prevent leakage → TimeSeriesSplit → train XGBoost/LightGBM/CatBoost → evaluate MAE/RMSE.