Softmax (Multinomial) Regression

medium
Unit 10 · Classification II0/2 to milestone

Logistic regression handles two classes. Softmax regression extends it to CC classes with a weight matrix WW of shape (d, C) and bias bb of shape (C,): P(y=c∣x)=softmax(xW+b)cP(y = c \mid x) = \text{softmax}(xW + b)_c.

Pro problem

Unlock this and every premium problem across all tracks — plus hidden-test grading, advanced AI engineering modules and new content every week.

Start 7-day free trial
solution.py · Python 3.13
Run your code to see results. ⌘↵ to run · ⌘⇧↵ to submit
Softmax (Multinomial) Regression · TechGradify