Questions tagged [categorical-crossentropy]

Filter by
Sorted by
Tagged with
1
vote
1answer
42 views

Can the (sparse) categorical cross-entropy be greater than one?

I am using AlexNet CNN to classify my dataset which contains 10 classes and 1000 data for each class, with 60-30-10, splits for train, validation, and test. I used different batch sizes, learning ...
1
vote
1answer
35 views

How does implementation of VAE's objective function equate to ELBO?

For a lot of VAE implementations I've seen in code, it's not really obvious to me how it equates to ELBO. $$L(X)=H(Q)-H(Q:P(X,Z))=\sum_ZQ(Z)logP(Z,X)-\sum_ZQ(Z)log(Q(Z))$$ The above is the definition ...
-1
votes
0answers
34 views

My Neural net accuracy is low. Could my fix be Bias?

If I normalize my inputs and output between 0 and 1, then do I really need to worry about a neural net bias? My 4 inputs and 4 outputs are uniformly distributed between 0 and 1. I am using: loss=tf....
1
vote
1answer
160 views

Why are there two versions of softmax cross entropy? Which one to use in what situation?

I have seen 2 forms of softmax cross-entropy loss and are confused by the two. Which one is the right one? For example in this Quora answer, there are 2 answers: $L(\mathbf{w})=\frac{1}{N} \sum_{n=1}^...
2
votes
1answer
40 views

How should I penalize the model proportionally to the error?

I am making an MNIST classifier. I am using categorical cross-entropy as my loss function. I want to make it so that if the correct label is 3, then it will penalize the model less heavily if it ...
3
votes
2answers
788 views

In which cases is the categorical cross-entropy better than the mean squared error?

In my code, I usually use the mean squared error (MSE), but the TensorFlow tutorials always use the categorical cross-entropy (CCE). Is the CCE loss function better than MSE? Or is it better only in ...