Classification is a type of supervised machine learning algorithm which predicts the “class” of a given input.
One of the most common types of classification algorithms is binary classification in which an input is either classified as either a “0” or “1”.
For example, we could create a binary classification algorithm to classify an input as either a clementine, “0”, or an orange, “1”.
Logistic regression is generally a great model for classification and is implemented using the logistic or sigmoid function
- \(g(z) = \frac{1}{1+e^{-z}}\)
- where \(0 < g(z) < 1\)
- \(g(z) = \frac{1}{1+e^{-z}}\)