I have a problem with the programming exercise of week 1 “Dinosaur Island-Character-Level Language Modeling” I have an error at the output that is
Code Cell UNQ_C1: Function ‘clip’ is correct.
Code Cell UNQ_C2: Function ‘sample’ is correct.
Code Cell UNQ_C3: Unexpected error (KeyError(‘da_next’)) occurred during function check. We expected functionoptimize
to return Test 3 failed. Please check that this function is defined properly.
Code Cell UNQ_C4: Function ‘model’ is correct.
If you see many functions being marked as incorrect, try to trace back your steps & identify if there is an incorrect function that is being used in other steps.
This dependency may be the cause of the errors.
and function of optimizing is
{moderator edit - solution code removed}