Loss
Understand how to calculate a binary classification model's loss by applying sigmoid cross entropy to BiLSTM outputs. This lesson guides you through computing logits, converting labels, and aggregating loss for effective text classification training.
We'll cover the following...
We'll cover the following...
Chapter Goals:
Calculate the model's loss using sigmoid cross entropy
A. Sigmoid cross entropy
The task for our model is to classify input text sequences as either negative (label 0) or positive (label 1). This is equivalent to binary classification. As with regular binary classification, we use sigmoid cross entropy to ...