- 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.
- Unreal Engine:Game Development from A to Z
- Dreamweaver CS3網頁設計50例
- PyTorch深度學習實戰
- Visual C# 2008開發技術詳解
- 樂高創意機器人教程(中級 下冊 10~16歲) (青少年iCAN+創新創意實踐指導叢書)
- 工業機器人入門實用教程(KUKA機器人)
- STM32嵌入式微控制器快速上手
- 經典Java EE企業應用實戰
- Learning Linux Shell Scripting
- MongoDB 4 Quick Start Guide
- Embedded Linux Development using Yocto Projects(Second Edition)
- 數字多媒體技術與應用實例
- 大數據時代的調查師
- 案例解說虛擬儀器典型控制應用
- 深度學習之模型優化:核心算法與案例實踐