In keras backend we have a flag with_logitsin K.binary_crossentropy. What is the difference between normal binary crossentropy and binary crossentropy with logits? Suppose I use the seq2seq model and my output sequence is of type 100111100011101.
with_logits
K.binary_crossentropy
100111100011101
What should I use for recursive LSTM or RNN to learn from this data? Do I provide a similar input sequence along with timesteps?
It depends on whether you have a sigmoid layer immediately before the loss function.
, , from_logits False. , tf.nn.sigmoid_cross_entropy_with_logits.
from_logits
False
tf.nn.sigmoid_cross_entropy_with_logits
(.. ), from_logits=True, .
from_logits=True
, . , logit , , .
Source: https://habr.com/ru/post/1686710/More articles:Is the maximum size_t value (SIZE_MAX) defined relative to other integer types? - cHow to find out which maven dependency should be added in pom.xml - springКакое правильное определение size_t? - cThe difference between http://repo.apache.maven.org/maven2/vs http://repo1.maven.org/maven2/ - mavenПроблемы при создании бота с использованием языка Understanding Intelligent Service Template - botsJMeter to write hourly results - chartsHow to enable libraries / dependencies when creating a jar file? - javaWWD2017 pdfkit to fill out a PDF form - iosОбъединить две строки в float на stm32? - cprintf width modifier for special characters - cAll Articles