- TensorFlow Machine Learning Projects
- Ankit Jain Armando Fandango Amita Kapoor
- 161字
- 2021-06-10 19:15:31
Logistic regression for multiclass classification
When more than two classes are involved, logistic regression is known as multinomial logistic regression. In multinomial logistic regression, instead of sigmoid, use the softmax function, which can be described mathematically as follows:

The softmax function produces the probabilities for each class so that the probabilities vector adds up to 1. At the time of inference, the class with the highest softmax value becomes the output or predicted class. The loss function, as we discussed earlier, is the negative log-likelihood function, -l(w), that can be minimized by the optimizers, such as gradient descent.
The loss function for multinomial logistic regression is written formally as follows:

Here, ?(z) is the softmax function.
We will implement this loss function in the next section. In the following section, we will dig into our example for multiclass classification with logistic regression in TensorFlow.
- Mastering Matplotlib 2.x
- WOW!Illustrator CS6完全自學寶典
- Mastering Salesforce CRM Administration
- 自動生產線的拆裝與調試
- RPA(機器人流程自動化)快速入門:基于Blue Prism
- 計算機網絡安全
- 在實戰中成長:Windows Forms開發之路
- Windows安全指南
- 運動控制系統
- Eclipse RCP應用系統開發方法與實戰
- 大數據:從基礎理論到最佳實踐
- Arduino創意機器人入門:基于Mind+
- Microsoft 365 Mobility and Security:Exam Guide MS-101
- 我的IT世界
- Practical Autodesk AutoCAD 2021 and AutoCAD LT 2021