Introduction to Machine Learning

by Albert Major


Support Vector Machines (SVM)

SVMs are discriminative classifiers that determine a decision boundary to separate classes.

Hard Margin Classification

Soft Margin Classification

To handle outliers and non-linearly separable data, SVMs introduce Slack Variables (ξ).

Kernel SVM (Non-Linear Data)

When a linear line cannot separate data (e.g., a red cluster surrounded by a blue ring), SVMs use the Kernel Trick.

SVM for Regression (SVR)

SVMs can be adapted for regression tasks (predicting continuous values).


Naive Bayes

Naive Bayes is a generative classifier based on probability theory, specifically Bayes' Theorem.

Core Mechanics

Variants of Naive Bayes

Pros and Cons

Decision Trees

Decision Trees are discriminative models that split data into subsets based on feature values, forming a tree structure.

Structure and Construction

Image of decision tree structure

Splitting Criteria (Information Gain)

To decide which feature to split on, the algorithm measures "purity" using:

Overfitting and Regularization