How to choose cross-entropy loss in tensorflow?
2017-11-20 14:20
495 查看
machine learning - How to choose cross-entropy loss in tensorflow? - Stack Overflow
https://stackoverflow.com/questions/47034888/how-to-choose-cross-entropy-loss-in-tensorflow
activeoldestvotes
https://stackoverflow.com/questions/47034888/how-to-choose-cross-entropy-loss-in-tensorflow
0down votefavorite 1 | Classification problems, such as logistic regression or multinomial logistic regression, optimize a cross-entropy loss. Normally, the cross-entropy layer follows the softmax layer, which produces probability distribution. In tensorflow, there are at least a dozen of different cross-entropy loss functions: tf.losses.softmax_cross_entropy tf.losses.sparse_softmax_cross_entropy tf.losses.sigmoid_cross_entropy tf.contrib.losses.softmax_cross_entropy tf.contrib.losses.sigmoid_cross_entropy tf.nn.softmax_cross_entropy_with_logits tf.nn.sigmoid_cross_entropy_with_logits ... Which work only for binary classification and which are suitable for multi-class problems? When should you use sigmoidinstead of softmax? How are sparsefunctions different from others and why is it only softmax? Related (more math-oriented) discussion: cross-entropy jungle. machine-learning tensorflow neural-network logistic-regression cross-entropy
| |||
add a comment |
1 Answer
activeoldestvotesup vote5down vote | In functional sense, the sigmoid |
相关文章推荐
- how to use trained object detection model in tensorflow
- [翻译]斯坦福CS 20SI:基于Tensorflow的深度学习研究课程笔记,Lecture note 4: How to structure your model in TensorFlow
- How to write mutiple graphs in a run in tensorflow
- How to use tensorflow pre-trained model in Android
- How can I get a FlowDocument Hyperlink to launch browser and go to URL in a WPF app?
- An introduction to Generative Adversarial Networks (with code in TensorFlow)
- How to use Azure Function in Microsoft Flow
- How To Query Cross-Site Lists In DataFormWebPart
- How to fix the problem 'Your CPU supports instructions that this TensorFlow binary was not compiled'
- Pro Deep Learning with TensorFlow: A Mathematical Approach to Advanced Artificial Intelligence in Python
- How to Create Cross-Cell Bar in Excel
- How to choose the right data structure in different scenarios to bring out best performance?
- 170620 How to install tensorflow with GPU on linux
- the basic approach to read dataset(TFRecord) with iterator in Tensorflow
- How do you copy the contents of an array to a std::vector in C++ without looping? (From stack over flow)
- How to setup Tensorflow inception-v3 model on Windows
- How to write Lossfunction in PythonCaffe
- How to Train a ChatBot with the TensorFlow and Google Cloud ML
- How to Choose the Best Way to Pass Multiple Models in ASP.NET MVC
- How to choose the development settings in Visual Studio 2005 ?