In “Practice Lab: Advice for Applying Machine Learning,” Exercises 3–5 each receive 0/20 with:
'NoneType' object has no attribute 'build'
Exercises 1 and 2 pass. I restarted the kernel, reran the notebook, and resubmitted. The models train successfully(passes all tests); Exercise 3’s local test passes. The model, model_s, and model_r variables are defined in their graded cells, and I haven’t added tf.keras.Input.
Could someone check whether the grader is receiving these models correctly? I found a similar grader report, but its specific Input-layer issue doesn’t seem to apply here.
Hello @Externalist ,Welcome to the community.
thank you for reaching out and sharing the details.
the error usually indicates that the automated grader is attempting to call .build() on a model variable that is currently returning None.
So you can do some steps to can solve it .
1- ensure that at the end of each model creation function, you are explicitly returning the created model object ( return model, return model_s, or return model_r) rather than leaving the default return None.
2- confirm that the model assignment variable matches the expected variable name in the graded cell.
3- after making sure the return lines are updated, restart your kernel, re-run all cells from top to bottom to update the namespace, save the notebook, and re-submit.
Please let us know if the issue persists after that , Thank you !