Challenge - 5 Problems
Learning Curve Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate2:00remaining
Understanding the shape of learning curves
Which of the following best describes the typical shape of a learning curve for a well-trained machine learning model as the training data size increases?
Attempts:
2 left
❓ Predict Output
intermediate2:00remaining
Output of learning curve plot code
What will be the output of the following Python code snippet using scikit-learn's learning_curve function?
ML Python
from sklearn.datasets import load_iris from sklearn.svm import SVC from sklearn.model_selection import learning_curve import numpy as np X, y = load_iris(return_X_y=True) train_sizes, train_scores, test_scores = learning_curve(SVC(kernel='linear'), X, y, train_sizes=np.linspace(0.1, 0.5, 5), cv=3) print(train_sizes) print(np.round(train_scores.mean(axis=1), 2)) print(np.round(test_scores.mean(axis=1), 2))
Attempts:
2 left
❓ Hyperparameter
advanced2:00remaining
Effect of model complexity on learning curves
How does increasing model complexity typically affect the shape of training and validation learning curves?
Attempts:
2 left
❓ Metrics
advanced2:00remaining
Interpreting learning curve metrics
If a learning curve shows a large gap between training and validation errors that does not decrease with more data, what does this indicate?
Attempts:
2 left
🔧 Debug
expert2:00remaining
Diagnosing incorrect learning curve results
A user runs learning_curve on a classification task but notices training scores are always lower than validation scores. What is the most likely cause?
Attempts:
2 left