The evaluation metric is used to measure model performance. While similar to the loss functions, it is not used for making corrections while training the model. It is only used after the model has been trained to evaluate performance:
- Accuracy: This metric measures how often the correct class is predicted. By default, 0.5 is used as a threshold, which means that if the predicted probability is below 0.5, then the predicted class is 0; otherwise, it is 1. The total number of cases where the predicted class matches the target class is divided by the total number of target variables.
- Cosine similarity: Compares the similarity between two vectors by evaluating the similarity of terms in n-dimensional space. This is used often ...