...

/

Refining Neural Networks with Class Weights

Refining Neural Networks with Class Weights

Discover how adjusting class weights in neural network models can address the challenge of predicting rare events.

We'll cover the following...

Loss function

A rare event problem has very few positively labeled samples. Due to this, even if the classifier misclassifies the positive labels, their effect on the loss function is minuscule.

L(θ)=1ni=1n(yilog(pi)+(1yi)log(1pi))\mathcal{L(\theta)}=−\frac{1}{n}\sum_{i=1}^{n}\big( y_{i}log(p_{i})+(1−y_{i})log(1−p_{i})\big) ...