🌍 Artificial Intelligence · flashcards

Artificial Intelligence Machine Learning Flashcards

51 question-and-answer cards covering Machine Learning as it is examined in Artificial Intelligence. 24 of them are printed below, taken from across the deck — no signup, no paywall on the preview.

51Cards in deck
24Free preview
24Syllabus topics
~163Chars per answer
FreePrice

24 sample cards from the Machine Learning deck

Sampled from the end of the deck, so these are different cards from the ones shown on the syllabus page.

  1. Give the RBF (Gaussian) kernel formula.

    $$K(\vec{x}, \vec{x}') = \exp\!\left(-\gamma \lVert \vec{x} - \vec{x}' \rVert^2\right)$$

  2. What does the soft-margin parameter $C$ control in an SVM?

    The tradeoff between maximizing the margin and minimizing classification errors: large $C$ penalizes misclassification heavily (low bias, high variance); small $C$ allows more slack (wider margin, more tolerance).

  3. State Bayes' theorem as used by the Naive Bayes classifier.

    $$P(y \mid \vec{x}) = \frac{P(\vec{x} \mid y)\,P(y)}{P(\vec{x})}$$

  4. What is the 'naive' assumption in the Naive Bayes classifier?

    That features are conditionally independent given the class, so $P(\vec{x} \mid y) = \prod_j P(x_j \mid y)$.

  5. What is Laplace (additive) smoothing and why is it needed in Naive Bayes?

    Adding a constant $\alpha$ (often 1) to counts so no conditional probability is zero, preventing an unseen feature value from zeroing out the entire product $\prod_j P(x_j \mid y)$.

  6. Compare bagging and boosting as ensemble methods.

    Bagging trains models in parallel on bootstrap samples and averages them to reduce variance (e.g. Random Forest). Boosting trains models sequentially, each correcting the previous one's errors, primarily reducing bias (e.g. AdaBoost, Gradient Boosting).

  7. What two sources of randomness make a Random Forest?

    Bootstrap sampling of training rows (bagging) and random selection of a subset of features at each split, which decorrelates the trees.

  8. How does AdaBoost adjust training as it proceeds?

    It reweights training examples after each weak learner, increasing weights on misclassified points so subsequent learners focus on them; final prediction is a weighted vote of the weak learners.

  9. Write the equation for a single perceptron's output.

    $$y = \phi\!\left(\sum_{j} w_j x_j + b\right)$$ where $\phi$ is a step/activation function.

  10. What key limitation of a single-layer perceptron did Minsky and Papert highlight?

    It can only separate linearly separable data; it cannot represent the XOR function. Multilayer networks with nonlinear activations overcome this.

  11. Why are nonlinear activation functions necessary in multilayer networks?

    Without them, a composition of linear layers collapses to a single linear transformation, so the network could not model nonlinear relationships regardless of depth.

  12. Name three common activation functions and one property of each.

    Sigmoid $\sigma(z)=\frac{1}{1+e^{-z}}$ (saturates, vanishing gradients); $\tanh(z)$ (zero-centered, range $(-1,1)$); ReLU $\max(0, z)$ (cheap, non-saturating for $z>0$, but 'dying' units for $z<0$).

  13. What is backpropagation?

    An algorithm that computes gradients of the loss with respect to every weight by applying the chain rule backward through the network, enabling gradient-based optimization.

  14. Give the gradient-descent weight update rule using learning rate $\eta$.

    $$w \leftarrow w - \eta \frac{\partial J}{\partial w}$$

  15. What is the vanishing gradient problem?

    In deep networks, repeated multiplication of small derivatives (e.g. from saturating sigmoid/tanh) makes gradients shrink exponentially toward earlier layers, so those layers train extremely slowly. ReLU, residual connections, and careful initialization mitigate it.

  16. What three key architectural ideas define a Convolutional Neural Network?

    Local receptive fields (convolutional filters), parameter/weight sharing across spatial positions, and pooling for spatial downsampling and translation invariance.

  17. Give the output size formula for a convolution with input size $W$, filter $F$, padding $P$, and stride $S$.

    $$O = \frac{W - F + 2P}{S} + 1$$

  18. What is the purpose of a pooling layer (e.g. max pooling) in a CNN?

    To reduce spatial dimensions, lower computation and parameters, provide small-translation invariance, and enlarge the effective receptive field.

  19. What problem do Recurrent Neural Networks address, and what limits vanilla RNNs?

    They process sequential data by maintaining a hidden state $h_t = \phi(W_h h_{t-1} + W_x x_t + b)$. Vanilla RNNs suffer from vanishing/exploding gradients, limiting learning of long-range dependencies.

  20. How do LSTM/GRU cells improve over vanilla RNNs?

    They use gating mechanisms (input, forget, output gates in LSTM) and a cell state that lets gradients flow across many time steps, mitigating vanishing gradients and capturing long-term dependencies.

  21. What is the core mechanism of the Transformer architecture, and give the scaled dot-product attention formula.

    Self-attention, which relates all positions in a sequence in parallel. $$\text{Attention}(Q,K,V) = \text{softmax}\!\left(\frac{QK^{\top}}{\sqrt{d_k}}\right)V$$

  22. Why do Transformers require positional encodings?

    Self-attention is permutation-invariant and has no inherent notion of order, so positional encodings inject sequence-position information into the token representations.

  23. Describe the k-means clustering algorithm and its objective.

    Alternately assign each point to its nearest centroid and recompute centroids as cluster means, until convergence. It minimizes within-cluster variance $$J = \sum_{i}\sum_{x \in C_i} \lVert x - \mu_i \rVert^2$$

  24. Contrast k-means with hierarchical (agglomerative) clustering, and name what PCA optimizes for dimensionality reduction.

    k-means partitions data into a preset $k$ clusters via centroids; hierarchical clustering builds a dendrogram by successively merging closest clusters and needs no preset $k$. PCA reduces dimensions by projecting onto the orthogonal directions (eigenvectors of the covariance matrix) that capture maximum variance.

What this deck covers

The Machine Learning deck follows the Artificial Intelligence Machine Learning syllabus — 6 chapters and 24 topics — so questions land on material that is genuinely examinable rather than trivia around it. That works out to roughly 8.5 cards per chapter.

Answers are written to be recallable, not just readable — averaging about 163 characters, which is long enough to carry the reasoning and short enough to say out loud.

A deck like this earns its keep on the second and third pass. Read the syllabus first so you know the shape of the subject, then use the cards to find the specific facts that have not stuck.

Machine Learning flashcards FAQ

How many Machine Learning flashcards are in this Artificial Intelligence deck?

51 cards. This page previews 24 of them, sampled evenly across the deck so you can judge the difficulty before installing anything.

Are these Artificial Intelligence flashcards free?

Yes. The preview here is free to read with no signup, and the full 51-card deck is free inside the Examius app.

What do the Machine Learning cards cover?

They follow the Artificial Intelligence Machine Learning syllabus — 6 chapters and 24 topics — so the questions track what is actually examinable.

How should I use these flashcards?

Read the syllabus first so you know the shape of the subject, then drill the deck. Examius schedules each card with spaced repetition, so cards you keep missing come back sooner and ones you know drift further apart.