Week 3 Trigger Word Detection assignment

Hi, in create_training_example_test, there is a assertion:
assert np.all(y < 51), “All y values must be smaller than 51”

Why should we compare y with 51? I think y could only be 0 or 1 anyway.

Hi Yajie,

Thanks for reporting this!

I get the impression that the aim is to make sure that no more than 50 consecutive values in y are 1 - but this is not implemented correctly. I will report this at the backend to see if it can be resolved. Fortunately, the test as it is does not harm progress on the assignments.

1 Like