linear regression Flashcards
(39 cards)
What is supervised learning?
Learning from labelled examples.
What is the key characteristic of supervised learning?
It uses input-output pairs to learn a mapping.
What is unsupervised learning?
Learning patterns from unlabelled data.
What is the goal of unsupervised learning?
To find structure in data.
What is reinforcement learning?
Learning by trial and error using rewards.
What makes reinforcement learning different?
It uses feedback from actions instead of fixed labels.
What are the three components of a supervised learning model?
Model type, cost function, optimizer.
What does the model type determine?
How predictions are made.
What does the cost function do?
Measures prediction error.
What is the role of the optimizer?
Updates parameters to reduce error.
What is a parametric model?
A model with a fixed number of parameters.
What is a non-parametric model?
A model that adapts its complexity to the data.
What is the first step in training a model?
Initialize the model.
What happens after making predictions?
Calculate the cost.
When does training stop?
When a stopping condition is met.
What kind of task is linear regression used for?
Regression (predicting continuous values).
What is the simple linear regression formula?
h(x) = θ₀ + θ₁x
What is the vector form of linear regression?
h(x) = θᵀx
What is the purpose of the bias term in x?
To allow the model to shift the line vertically.
What are the features in the gem price example?
Weight and purity.
What is the output in the gem price example?
Price of the gem.
How do we compute the prediction?
Multiply features by weights and add the bias.
What is the cost function used in linear regression?
Mean Squared Error (MSE).
What is the formula for MSE?
J(θ) = (1/2m) ∑(h(xᵢ) - yᵢ)²