Assignment_2_with_questions
Assignment_2_with_questions
Regression is a supervised learning technique used to predict a continuous outcome variable based
In regression, the model learns a mapping from the input data (features) to a continuous value. The
and the actual values. Common algorithms for regression include Linear Regression, Polynomial
For example, predicting the price of a house based on features like its size, location, and age is a
regression task.
Justification:
- It minimizes error metrics like Mean Squared Error (MSE) or Mean Absolute Error (MAE).
Classification is also a supervised learning technique, but it is used to predict a discrete label or
map input features to a specific class label. Unlike regression, the output is categorical, and the
than predicting a numerical value. Popular algorithms for classification include Logistic Regression,
For example, identifying whether an email is spam or not based on its content is a classification
task.
Justification:
- Metrics like accuracy, precision, and recall are used to evaluate classification models.