ML Models Pros & Cons

Quick refresher of fundamental Machine Learning models with Code Demonstrations for review.

Ram Vegiraju
Analytics Vidhya

--

Image by RocketSource

With the number of Machine Learning algorithms constantly growing it is nice to have a reference point to brush up on some of the fundamental models, be it for an interview or just a quick refresher. I wanted to provide a resource of some of the most common models pros and cons and sample code implementations of each of these algorithms in Python.

Table of Contents

  1. Multiple Linear Regression
  2. Logistic Regression
  3. k-Nearest Neighbors (KNN)
  4. k-Means Clustering
  5. Decision Trees/Random Forest
  6. Support Vector Machine (SVM)
  7. Naive Bayes

1. Multiple Linear Regression

Pros

  • Easy to implement, theory is not complex, low computational power compared to other algorithms.
  • Easy to interpret coefficients for analysis.
  • Perfect for linearly separable datasets.
  • Susceptible to overfitting, but can avoid using dimensionality reduction techniques, cross-validation, and regularization methods.

--

--