โ† All Machine Learning Flashcard Decks

Supervised Learning Flashcards

7 cards from real Machine Learning practice questions. Tap to flip, then mark Knew It or Still Learning โ€” missed cards come back until you master them.

Read the first 7 Supervised Learning flashcards as text
  1. Which loss function is typically used for training a binary classification model with logistic regression?

    Answer: Binary Cross-Entropy

    Binary cross-entropy (log loss) measures the divergence between predicted probabilities and true binary labels, making it ideal for logistic regression.

  2. What is the main difference between bagging and boosting ensemble methods?

    Answer: Bagging trains models in parallel on random subsets; boosting trains sequentially focusing on errors

    Bagging (e.g., Random Forest) trains models in parallel on bootstrap samples to reduce variance, while boosting trains models sequentially to reduce bias by focusing on previous errors.

  3. In a confusion matrix for binary classification, what does a 'False Positive' represent?

    Answer: A negative instance incorrectly classified as positive

    A false positive (Type I error) occurs when the model predicts positive but the true label is negative.

  4. Which regularization method can perform automatic feature selection by driving some coefficients exactly to zero?

    Answer: L1 (Lasso)

    L1 (Lasso) regularization uses the absolute value of coefficients in its penalty, which tends to produce sparse solutions with some weights exactly zero.

  5. What is 'feature scaling' and why is it important for algorithms like SVMs and k-NN?

    Answer: Normalizing feature ranges so no single feature dominates distance calculations

    Feature scaling (e.g., standardization or min-max normalization) ensures all features contribute equally to distance-based calculations, which is critical for SVMs and k-NN.

  6. What does the ROC curve plot in a binary classification problem?

    Answer: True Positive Rate vs. False Positive Rate at various thresholds

    The ROC curve plots the True Positive Rate (sensitivity) against the False Positive Rate (1-specificity) at various classification thresholds.

  7. Which of the following is an example of a regression problem in supervised learning?

    Answer: Predicting the selling price of a house based on its features

    Predicting house prices produces a continuous numeric output, making it a regression problem rather than a classification problem.

How this page was made: written with AI tools and published by Nathan Beja, founder of Practice Test Geeks, who is responsible for its content. We have not yet matched this exam's facts to an official source, so confirm fees, dates and rules with the exam body. Not reviewed by a subject-matter expert. Editorial policy