Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

New answers tagged

1 vote

Custom loss function in python

worried that the evaluation of the loss function won't capture the "anomaly-part" of the loss function as this would be lost in the aggregation? You're talking about weighting the minority ...
J_H's user avatar
  • 1,110
2 votes

How to choose a loss function and how to calculate the loss for Text Generation in Generative AI?

For classification, you use binary cross-entropy if it's binary classification or categorical-cross entropy if it's multiclass-classification. In both cases, you compute the loss against the true ...
noe's user avatar
  • 26.9k
0 votes

Why is each successive tree in GBM fit on the negative gradient of the loss function?

The concept is by fitting the sequential tree by the "residual" (Practically the gradient relative to the current model) the overall process will be equivalent to Gradient Descent over the ...
Royi's user avatar
  • 167

Top 50 recent answers are included