Learn Before
Short Answer

Calculating Loss for a Single Prediction

A binary classification model is used to predict a label y (which can be 0 or 1). For a single training example, the true label is y = 0, and the model predicts a probability ŷ = 0.2. Using the loss function L(ŷ, y) = -(y*log(ŷ) + (1 - y)*log(1 - ŷ)), calculate the loss for this example. Use the natural logarithm (ln) and round your answer to two decimal places.

0

1

Updated 2025-10-06

Contributors are:

Who are from:

Tags

Data Science

Foundations of Large Language Models Course

Computing Sciences

Application in Bloom's Taxonomy

Cognitive Psychology

Psychology

Social Science

Empirical Science

Science