If you are doing binary classification, the combination of sigmoid and cross entropy loss is the only reasonable choice. There are simple ways to deal with the “saturation” issue. In mathematical terms, the output of sigmoid is never exactly 0 or 1, but we are dealing with the pathetic limitations of floating point representations here. Here’s a thread which shows a couple of simple techniques for avoid Inf or NaN values from the loss.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Neural Nets and Parallelism | 21 | 586 | October 19, 2024 | |
| Derivative of Relu in output layer | 125 | 3299 | December 23, 2022 | |
| Back Prop question | 54 | 558 | May 27, 2025 | |
| Feedforward Neural Networks in Depth | 68 | 118845 | September 20, 2025 | |
| Spikes in cost function plot for deep "relu" nn | 24 | 944 | November 4, 2021 |