C4W4, Assignment 2, Exercise 6

My implementation of exercise 6 is correct and I am passing all the tests, but on submission it shows as incorrect and I receive a 80% grade.

Is there a solution to this ?

Please click my name and message your notebook as an attachment.

@balaji.ambresh : Done!

2 things in train_step:

  1. Please fix your calculation of J_content
  2. When computing style cost, don’t pass the layers since the function has a default default value for that parameter and you don’t have an explicit parameter passed to the train_step function.

Passing all the tests in the notebook does not prove your code is correct.

This means your code has an error.

1 Like