0
0
ML Pythonprogramming~20 mins

Why regression predicts continuous values in ML Python - Challenge Your Understanding

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Regression Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1: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?

ABecause regression models estimate a relationship that maps inputs to a range of real numbers.
BBecause regression models classify data points into fixed groups.
CBecause regression models only work with binary outputs.
DBecause regression models use clustering to group similar data.
Attempts:
2 left
Predict Output
intermediate
1: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])
A8.0
B12.0
C5.0
D10.0
Attempts:
2 left
Model Choice
advanced
1: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?

ALogistic Regression
BLinear Regression
CK-Means Clustering
DDecision Tree Classifier
Attempts:
2 left
Hyperparameter
advanced
2: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?

AIt shrinks coefficients, leading to simpler models and potentially less extreme predictions.
BIt increases the number of features used, making predictions more complex.
CIt converts continuous outputs into categories automatically.
DIt removes the intercept term, forcing predictions through zero.
Attempts:
2 left
Metrics
expert
2: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?

AF1 Score
BAccuracy Score
CMean Squared Error (MSE)
DConfusion Matrix
Attempts:
2 left