Softmax 回归(Softmax Regression),也称为多项(multinomial)或多类(multi-class)的logistic 回归,是logistic 回归在多类分类问题上的推广。
同样,我们贴一下wiki百科对softmax函数的定义:
softmax is a generalization of logistic function that "squashes"(maps) a K-dimensional vector zz of arbitrary real values to a K-dimensional vector σ(z)σ(z) of real values in the range (0, 1) that add up to 1.
这句话既表明了softmax函数与logistic函数的关系,也同时阐述了softmax 函数的本质:
将一个 K 维的任意实数向量压缩(映射)成另一个 K 维的实数向量,其中向量中的每个元素取值都介于(0,1)之间。