Issue with the Question in C1 W3 "Video: Simplified Cost Function for Logistic Regression"

I think the simplified form of loss function depends on y^{(i)} but not f_{\mathbf{\vec{w}},b}(\mathbf{x}^{(i)}). So the f_{\mathbf{\vec{w}},b}(\mathbf{x}^{(i)}) in question and the explanation should be y^{(i)}.

And there is “$$” missing in the answer.

Hello @explorare

Welcome to the community.

There are a couple of issues with this quiz, including whatever is shown as the correct answer.

Let me report it to the QA team. Thanks for bringing it up.

1 Like

Hi @explorare

$$y^(i)$$ is the target. The loss function offers two scenarios, one is when the model’s predicted value is 1, and the other is 0. The target is the ground truth, can not be set by the model. The question here is saying that the model’s predicted value is 1. So the simplified expression is correct.

1 Like

Hello @explorare

The quiz has been updated now. Please take a look.

1 Like

Thanks for the update, it makes less confuse now.