Autograder comes to a cell with incorrect syntax - and fails it, of course.
Is there a way to update the cell with correct syntax? some one of the resets?
can’t find it…
Hello @smarti,
You would just need to open the lab, make the changes, and make a new submission. We can submit as many times as we want.
As far as I know, we can’t make changes to already submitted work.
Cheers
Raymond
…but cannot make a change to this cell. I will not allow edits.
You must be talking about a locked ungraded cell. Please check out this FAQ for some explanation, however, a short conclusion is that you need to trace backward to which of your exercise function was being called in that ungraded cell which triggered error. Then, fix problem in that exercise function.
Raymond
If a locked cell is throwing an error, it means there’s an error in your code which the locked cell is using.
@smarti, if you think it is not about a locked ungraded cell, please let you know what you think it is, and share a screenshot of any error messages shown to you.
Raymond
The grader-required-cell below uses a positional argument (gen)
The error states that ‘train_happy_sad_model() takes 0 positional arguments but 1 was given’
This seems to indicate that the positional arg should not be there.
I create another cell (since I cant edit this one) and run it without the argument.
It passes.
This example is not from this class. I bring it up here, simply to find out how to edit a grader-required-cell which contains a bug.
It sounds like it might need to be brought up to the graders, as certainly students can’t have access to grader-required-cells.
But maybe others have run into similar conundrums and have found out how to handle them?
Example:
On the other hand, I can just rewrite the code so that it has a positional argument - and that error will not be thrown.
caveat: at one time this afternoon all passed. Without changing any code, it stopped passing & this error came back. So - my hunch is that I will be getting one of those pop ups saying something to the effect, ‘The code has changed, do you want to reload or not’. … I will definitely go with the update.
I see. From what I have read here, you were discussing an assignment not from this specialization.
Upon completing all the required exercieses, the MLS’s assignments were tested to be able to pass the autograder without changing any ungraded cells. We have therefore locked those ungraded cells to avoid unexpected changes that can fail a submission to the autograder.
However, I can only talk about this specialization.
Raymond
@smarti, which course are you enrolled in?
Raymond - that is what I was looking for. Thank you. I’m currently working on the 4th week of ‘Introduction to Tensorflow for artificial intelligence and machine learning and deep learning.’ , although that is not the point of my question. this is the first time the question has come up after many Courserra courses. Thanks to all for your comments, and to Raymond for the answer!