Soft-Classifier Model

<aside> 💡 Check out the Google Colab implementation with both a binary and multi-class logistic classifier implemented from raw numpy.

</aside>

Implemented binary classifier.

Implemented binary classifier.

Implemented multi-class classifier.

Implemented multi-class classifier.

Overview

A Linear Logistic Classifier (aka Logistic Regression) is a soft-classifier model that can be binary (2-class) or easily extended to multi-class via changes in the loss function.

For binary classification, it provides valuable detail that hard classifiers omit:

For multi-class classifiers, the way you implement them can allow for similar interpretability. Further detail on each included below.

Implementation

In the linked Colab, I’ve built out a binary and multi-class logistic linear classifier from raw numpy. Let’s walk through the results:

Binary Classifier

Multi-Class Classifier