Challenge - 5 Problems
Feature Importance Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate2:00remaining
Understanding feature importance methods
Which method directly measures the impact of each feature on the prediction error by randomly shuffling its values and observing the change in model performance?
Attempts:
2 left
❓ Predict Output
intermediate2:00remaining
Output of feature importance extraction
What is the output of the following Python code using scikit-learn's RandomForestRegressor to get feature importances?
ML Python
from sklearn.ensemble import RandomForestRegressor import numpy as np X = np.array([[1, 2], [3, 4], [5, 6], [7, 8]]) y = np.array([1, 3, 5, 7]) model = RandomForestRegressor(random_state=0) model.fit(X, y) importances = model.feature_importances_ print(np.round(importances, 2))
Attempts:
2 left
❓ Model Choice
advanced2:00remaining
Choosing a model for interpretable feature importance
You want a regression model that provides clear, direct coefficients to interpret feature importance easily. Which model should you choose?
Attempts:
2 left
❓ Metrics
advanced2:00remaining
Evaluating feature importance with model metrics
Which metric change best indicates a feature is important when removed from a regression model?
Attempts:
2 left
🔧 Debug
expert2:00remaining
Debugging incorrect feature importance values
You trained a linear regression model but the feature importance (coefficients) are all zero. What is the most likely cause?
Attempts:
2 left