Introduction To Machine Learning
Introduction To Machine Learning
MANIKANTA
Training Data
Training Testing Validation
Input features Only Input features Only Input features
Labels No Labels No Labels
Model Learns on this Dataset Tests the model performance Tests the model peroformance
50% of the Data 20% of the Data 30% of the data
Model
Model Provides the mathematical mapping between input features and output labels.
The Input is a bunch of features and output can be a real number or Discrete value from a finite
set.
Loss Function
Then we need a suitable method for measuring the difference between actual and predicted
output.
Loss function is a function of weight vector, as we change the weight vector we will get different
loss.
J(w)=Σ(predicted – actual)2
STEP 4:
Optimization
Normal Equation
Gradient Descent
Mini Batch Gradient Descent
Stochastic Gradient Descent
STEP 5:
Evaluation
The evaluation metric changes as per the problem – different metric for regression and
classification problems.
Regression: Classification: