# What is Support Vector Machine?

## Section 1: Defining the Model

What is the Algorithm?

Support Vector Machine (SVM) is a supervised machine learning algorithm. SVM’s purpose is to predict the classification of a query sample by relying on labeled input data which are separated into two group classes by using a margin. …

# What are K-Nearest Neighbors?

## Section 1: Defining the Model

What is the Algorithm?

K-Nearest Neighbors (KNN) is a supervised machine learning and lazy learning algorithm. KNNs purpose is to predict the classification of a query sample by relying on labeled input data which are separated into several classes. …

# What is Logistic Regression?

## Section 1: Defining the Model

What is the Algorithm?

Logistic Regression (LR) is a supervised machine learning algorithm. LR’s purpose is to predict the classification of a query sample (eg. yes/no). It predicts the probability (between 0 and 1) of the action using labeled input data with the help of a sigmoid function. …

# Why use Naive Bayes?

## Section 4: Evaluating the Model Tradeoffs

Reference How to Improve Naive Bayes? Section 3: Tuning the Model in Python, prior to continuing…

# A D V A N T A G E S

Q1: Is Naive Bayes a simple or difficult classifier to understand?

Q2: Is Naive Bayes an interpretable classifier or not an interpretable classifier?

Q3: Is Naive Bayes a fast or…

# How to Improve Naive Bayes?

## Section 3: Tuning the Model in Python

Reference How to Implement Naive Bayes? Section 2: Building the Model in Python, prior to continuing…

 Define Grid Search Parameters

• `var_smoothing` is a stability calculation to widen (or smooth) the curve and therefore account for more samples that are further away from…

# How to Implement Naive Bayes?

## Section 2: Building the Model in Python

Reference What is Naive Bayes? Section 1: Defining the Model, prior to continuing…

 Import Libraries

• NumPy is a Python library used for working with arrays.
• Matplotlib is a Python library used for creating static, animated, and interactive…

# Why use Support Vector Machine?

## Section 4: Evaluating the Model Tradeoffs

Reference How to Improve Support Vector Machine? Section 3: Tuning the Model in Python, prior to continuing…

# A D V A N T A G E S

Q1: Is Support Vector Machine a simple or difficult classifier to understand?

Q2: Can Support Vector Machine solve linear problems or non-linear problems?

Answer: Linear Problems & Non-Linear Problems

Q3: Does…

# How to Improve Support Vector Machine?

## Section 3: Tuning the Model in Python

Reference How to Implement Support Vector Machine? Section 2: Building the Model in Python, prior to continuing…

 Define Grid Search Parameters

• `C` is the penalty parameter of the…

# How to Implement Support Vector Machine?

## Section 2: Building the Model in Python

Reference What is Support Vector Machine? Section 1: Defining the Model, prior to continuing…

 Import Libraries

• NumPy is a Python library used for working with arrays.
• Matplotlib is a Python library used for creating static, animated, and… ## Kopal Jain

Genentech Data Engineer | Harvard Data Science Grad | RPI Biomedical Engineer