Exercise 02: unittest says output shape example_weights incorrect?

Hello all,

When performing the unit_test to test the data_generator function under exercise 02 I get the following error message:

Third output from data_generator (example_weights) has the wrong shape.

  • Expected (4,).*
  • Got (4, 14).*

However I am pretty sure that my implementation is good as the following code produces the expected output, having the example_weights variable set to a shape of (4,):

Is there someone else having this issue how knows how to solve this?

Thank you very much,

gr Vincent

Hi @Vincent_7,

I’m going to DM you regarding this.


In Ex 2 , your variable example_weights was incorrectly initialised.