Challenge - 5 Problems
Regression Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate1:30remaining
Why does regression output continuous values?
Regression models are used to predict values. What is the main reason regression predicts continuous values instead of categories?
Attempts:
2 left
❓ Predict Output
intermediate1:30remaining
Output of a simple linear regression prediction
What is the output of this code predicting a value using a simple linear regression model?
ML Python
from sklearn.linear_model import LinearRegression import numpy as np X = np.array([[1], [2], [3], [4]]) y = np.array([2, 4, 6, 8]) model = LinearRegression().fit(X, y) prediction = model.predict(np.array([[5]])) print(prediction[0])
Attempts:
2 left
❓ Model Choice
advanced1:30remaining
Choosing a model for continuous value prediction
You want to predict house prices based on features like size and location. Which model type is best suited for this task?
Attempts:
2 left
❓ Hyperparameter
advanced2:00remaining
Effect of regularization on regression output
In a regression model, what is the effect of increasing the regularization strength (like alpha in Ridge regression) on the predicted continuous values?
Attempts:
2 left
❓ Metrics
expert2:00remaining
Choosing the right metric for continuous value prediction
Which metric is most appropriate to evaluate the accuracy of a regression model predicting continuous values?
Attempts:
2 left