Penalize some classes more than others in cross entropy (but only for a specific class!)

Hi Rohit!

If I understand your question, you will need a custom loss function.

I believe that your use case is addressed by this post (and its entire thread):

Best.

K. Frank