Unit summary

  • Linear regression fits a line by least squares; polynomial regression handles curves; logistic regression turns a linear score into a probability with the sigmoid.
  • Naive Bayes uses Bayes' theorem with independent features; KNN votes among the k nearest points.
  • Decision trees split on the feature with the highest information gain (or lowest Gini).
  • A perceptron is a linear classifier trained by an error-correcting rule that converges for linearly separable data.

Glossary

Term Meaning
Activation function The function applied to the weighted sum in a neuron.
Entropy A measure of impurity of a set of class labels.
Epoch One pass over the whole training set.
Lazy learner A method such as KNN that stores data and does its work at prediction time.
Least squares Fitting by minimising the sum of squared errors.
Posterior The probability of a class after seeing the features.
Prior The probability of a class before seeing the features.
Sigmoid The function 1 / (1 + e⁻ᶻ) giving a value between 0 and 1.

Question bank

Short Answer Questions (2 marks each)

Medium Answer Questions (5 marks each)

Long Answer Questions (15 marks each)

Sources

  • Official BCA syllabus Introduction to Machine Learning, course code 26BCA404DSE21, Unit III