C4W2: Exercise 2 - alpaca_model. Not understanding the mistake

Hi all,

I’m having hard time trying to figure out what might be the mistake I made during the implementation of the alpaca_model. I’m not even sure I understand the error.
Really appreciate if someone could provide some clue.

Many thanks in advance

Sorry, I just figured out what was the problem. I used 2 neurons (setting the argument units = 2) in the prediction layer instead of 1. A binary classifier actually needs a single neuron as specified.

Just in case someone may face the same problem (due to not paying attention to details :slight_smile: )