AI dictionary · Deep learning

What is Cross entropy?Cross entropy kya hai?

Also called: Log loss

Cross entropy: The standard loss function for classification: it punishes confident wrong answers heavily.Classification ka standard loss function: confident galat jawaabon ko bhaari saza deta hai.

🧸 Think of it likeAise samjho

Like a quiz that gives a small minus for an unsure wrong answer but a huge minus when you were 100% sure and still wrong.Ek quiz jaisa jo unsure galat jawaab pe thoda minus deta hai, par 100% sure hokar galat hone pe bahut bada minus.

📘 ExplainedVistaar se

Cross entropy compares predicted probabilities with the true class. Predicting 0.9 for the right class gives a small loss; predicting 0.01 for it gives a large loss. LLMs are trained with cross entropy on the next token. Combined with softmax, its gradient is simply prediction minus truth.Cross entropy predicted probabilities ko sahi class se compare karta hai. Sahi class ko 0.9 dena chhota loss deta hai; use 0.01 dena bada loss. LLMs agle token pe cross entropy se train hote hain. Softmax ke saath iska gradient bas prediction minus sach hai.

💡 Real exampleAsli example

A cat image predicted as 95% dog gives a big cross entropy loss.Billi ki image ko 95% kutta predict karna bada cross entropy loss deta hai.

📖 Learn it step by stepStep by step seekho

🔗 Related termsJude hue shabd

Questions people ask

What is Cross entropy?

The standard loss function for classification: it punishes confident wrong answers heavily. Cross entropy compares predicted probabilities with the true class. Predicting 0.9 for the right class gives a small loss; predicting 0.01 for it gives a large loss. LLMs are trained with cross entropy on the next token. Combined with softmax, its gradient is simply prediction minus truth.

How can I understand Cross entropy in simple words?

Like a quiz that gives a small minus for an unsure wrong answer but a huge minus when you were 100% sure and still wrong.

What is an example of Cross entropy?

A cat image predicted as 95% dog gives a big cross entropy loss.

Cross entropy ka matlab kya hai?

Classification ka standard loss function: confident galat jawaabon ko bhaari saza deta hai. Ek quiz jaisa jo unsure galat jawaab pe thoda minus deta hai, par 100% sure hokar galat hone pe bahut bada minus.

See Cross entropy in the full A to Z dictionary · Start a free AI course