Solving the zero probability problem in Naïve Bayes algorithm

Image by Louis Bauer, from Pexels


A probabilistic classifier

Image by Riho Kroll, Unsplash

Bayes Theorem

Bayes theorem says that if event B has occurred, then we can find the probability of event A given B. …


Techniques to handle imbalanced data

Image from Fidel Fernando, from Unsplash


A technique for converting text into finite length vectors

Image by Hermaion (left) and Tyler Easton (right)


How to convert text features into vectors

Image by Amador Loureiro, from Unsplash


Understanding ROC — AUC performance metric with an example

Image by Issac Smith, from Unsplash

ROC Curve

The Receiver Operating characteristic (ROC) curve is explicitly used for binary classification. However, it can be extended for multiclass classification.


Unraveling the confusion behind the confusion matrix

Image by Jon Tyson, from Unsplash


How good is your machine learning model?

Image by Engin Akyurt, from Pexels


Detection of the anomaly using LOF values

Image by Markus Spiske, from Pexels

Table of Contents:

  1. INTRODUCTION
  2. K-DISTANCE AND K-NEIGHBORS
  3. REACHABILITY DISTANCE (RD)
  4. LOCAL REACHABILITY DISTANCE (LRD)
  5. LOCAL OUTLIER FACTOR (LOF)
  6. EXAMPLE
  7. ADVANTAGES OF LOF
  8. DISADVANTAGES OF LOF
  9. CONCLUSION
  10. REFERENCES

1. INTRODUCTION

An outlier is a data point that is different or far from the rest of the data points. …


An algorithm which finds the nearest neighbors

Image by Joshua J. Cotten, from Unsplash

Table of Contents:

  1. What is KNN?
  2. Working of KNN algorithm
  3. What happens when K changes?
  4. How to select appropriate K?
  5. Limitation of KNN
  6. Real-world application of KNN
  7. Conclusion

1. What is KNN?

K nearest neighbors (KNN) is a supervised machine learning algorithm. A supervised machine learning algorithm’s goal is to learn a function such that f(X) =…

Vaibhav Jayaswal

A machine learning enthusiast. I have pursued my masters from Indian Institute of Technology, Bombay.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store