Naive Bayes Classifier example by hand and how to do in Scikit-Learn
Naive Bayes Classifier A Naive Bayes classifier is a probabilistic non-linear machine learning model that’s used for classification task. The crux of the classifier is based on the Bayes theorem....
Implementing K-means Clustering from Scratch - in Python
K-means Clustering K-means algorithm is is one of the simplest and popular unsupervised machine learning algorithms, that solve the well-known clustering problem, with no pre-determined labels defined, meaning that we...
A Complete Guide to K-Nearest-Neighbors with Applications in Python
Let’s first start by establishing some definitions and notations. We will use $x$ to denote a feature (aka. predictor, attribute) and $y$ to denote the target (aka. label, class) we...
Python Program for Fibonacci numbers
This is the basic Python function to print out Fibonacci series up to the term that has been defined by the user: def Fibonacci(nterms): n1 = 0 n2 = 1...
Command Line Arguments
Command line arguments are flags given to a program/script at runtime. They contain additional information for our program so that it can execute. Not all programs have command line arguments...