- Reinforcement Learning with TensorFlow
- Sayon Dutta
- 166字
- 2021-08-27 18:51:51
The softmax function
The softmax function is mainly used to handle classification problems and preferably used in the output layer, outputting the probabilities of the output classes. As seen earlier, while solving the binary logistic regression, we witnessed that the sigmoid function was able to handle only two classes. In order to handle multi-class we need a function that can generate values for all the classes and those values follow the rules of probability. This objective is fulfilled by the softmax function, which shrinks the outputs for each class between 0 and 1 and divides them by the sum of the outputs for all the classes:
For examples, , where x refers to four classes.
Then, the softmax function will gives results (rounded to three decimal places) as:




Thus, we see the probabilities of all the classes. Since the output of every classifier demands probabilistic values for all the classes, the softmax function becomes the best candidate for the outer layer activation function of the classifier.
- 工業機器人虛擬仿真實例教程:KUKA.Sim Pro(全彩版)
- ABB工業機器人編程全集
- Hands-On Machine Learning on Google Cloud Platform
- 機器自動化控制器原理與應用
- 人工智能與人工生命
- 工業控制系統測試與評價技術
- Godot Engine Game Development Projects
- 軟件構件技術
- 人工智能技術入門
- 計算機組成與操作系統
- Visual Studio 2010 (C#) Windows數據庫項目開發
- 貫通開源Web圖形與報表技術全集
- 樂高創意機器人教程(中級 上冊 10~16歲) (青少年iCAN+創新創意實踐指導叢書)
- Practical AWS Networking
- PowerPoint 2010幻燈片制作高手速成