Multiclass Classification
Binary classification strictly targets predictions between and . When a dataset branches symmetrically into distinct classes (where ), the mathematical constraints must dynamically adapt and expand. This architecture is formally known as Multiclass Classification.
Visualizing Multiclass (One-vs-All)
The notes graphically depict an intuitive One-Vs-All (or One-Vs-Rest) classification approach visually represented via a scatter plot consisting of three unique target class shapes: Triangles (), Circles (), and Crosses ().
Instead of drawing a single separating line simultaneously accommodating everything, the algorithm learns structurally to isolate one specific class at a time. For instance, it formulates a unified geometric bounding threshold that specifically subgroups all the Triangles locally (assigning them into Class ), while mathematically treating both the Circles and Crosses identically as an aggregated collective block (Class ).
One-Hot Encoding Target Variables
To handle these independent dimensions algebraically without inferring arbitrary numeric magnitudes between classes, the scalar target label logically transitions into a matrix mapping formulation One-hot encoding. Instead of assigning a naive , the classification belonging uniquely to class 2 out of 3 is represented smoothly via an isolated column vector logically mapping :
In an expanded dataset spanning model parameters aligned alongside features , each dimension uniquely acquires internal parameterized numeric boundaries.
The Softmax Function
To gracefully abstract the structural Sigmoid function boundary formula to accommodate flexible multi-class dimensions uniformly, we utilize the mathematically profound Softmax function. Softmax inherently compresses any vector sequence proportionally into a tightly normalized probabilistic density sum bounded perfectly to equal precisely .
The integrated hypothesis fundamentally computes the explicit probability that input variable matches exactly to the specific class index :
Categorical Cross-Entropy Loss
Since parameters optimize multi-laterally across dimensional categories simultaneously, Binary cross-entropy definitions gracefully generalize natively into continuous Categorical Cross-Entropy tracking.
Evaluating mathematically a unified ground truth labeled state index variable vector mapped parallel to predicted outputs structurally evaluated as , the aggregate algorithmic loss derives identically through the equation series:
Minimizing structurally this combined penalty loss empirically pressures iterative neural algorithmic descents intuitively towards maximally scoring likelihood solely at intersecting identical correct logical matching index dimensions accurately.