C2W3_Assignment Grading Problem - JW

I have tried multiple times to submit this assignment and every time I get the following error:

There was a problem compiling the code from your notebook. Details:
list index out of range

I even went so far as to “get latest version” and re-copy all of my code into cells. I would like someone to review my lab so that I can finally finish this course.

{mentor edit: notebook link removed}

Apparently there is an error in your code somewhere in the notebook.

When the grader crashes due to a runtime error, its error messages are not necessarily correct. The error may not be in the Feature Selection portion of the notebook.

One issue that can cause this is if you try to grade an incomplete notebook.

I see your notebook like. I’ll give it a review, and will reply by personal message.

Posting your code on the forum isn’t allowed by the Code of Conduct so I’ll delete it from this thread.

Ok. sorry for posting the lab in the forum. I went out of my way to triple check my work and resubmitted today after stepping away for a few weeks. I’m pretty sure that I completed all of the exercises and the lab definitely compiles/runs and displays the correct output for all cells.

Hi James. Please check these in your notebook:

  1. You defined the Interactive Context twice. Please remove the 2nd one. → this has the biggest impact in the grading
  2. Check the part where you have to set the Cover Type to categorical. There’s one parameter that’s left as None.
  3. Avoid importing new modules for the components. Use tfx.components.<component> instead.
  4. Review how to define the StatisticsGen when you have an updated schema.

Hope these help!

1 Like

Chris,
I was able apply your recommended changes and the grader is no longer throwing errors. More importantly, my submission passed and now I am ready to move on to the next course. Thank you so much for the guidance!

2 Likes

Great! Glad it worked!