Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [binary-crossentropy]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer

Is BCE commutative?

Is binary cross entropy commutative? Both in math theory and in PyTorch? I'm not fresh enough on my math to tell straight by looking at the formula and code. ...
Thomas Eding's user avatar
0 votes
0 answers

Loss is negative- DQN with BCE Loss function

I am writing a code with DQN, using BCE as a loss function for the classification of a sequential time series. But while training, the loss value goes in negative. Also, accuracy and binary accuracy ...
rainarashika's user avatar
0 votes
1 answer

Why is `SigmoidBinaryCrossEntropyLoss` in `DJL` implemented this way?

SigmoidBinaryCrossEntropyLoss implementation in DJL accepts two kinds of outputs from NNs: where sigmoid activation has already been applied. where raw NN output ...
src091's user avatar
  • 1
1 vote
0 answers

Categorical loss function for variable number of labels

I have a model for binary classification. The target variable has the different number of labels (instances) in each sample. For example, a batch of size 2 with 2 and 3 instances and correspondingly ...
Mykola Zotko's user avatar
1 vote
1 answer

What are pros and cons of using a multi-head neural network versus a single neural network for multi-label classification?

I haven't been able to find a good discussion specifically comparing the two (only one describing a classification and regression problem). I am training a classifier to learn both age and gender ...
user9317212's user avatar
1 vote
1 answer

Is it appropriate to use a softmax activation with a categorical crossentropy loss?

I have a binary classification problem where I have 2 classes. A sample is either class 1 or class 2 - For simplicity, lets say they are exclusive from one another so it is definitely one or the other....
user9317212's user avatar