Ml specialization the last assignment for week 3

week-3
I accidentally reset the kernel and now all the code in the last assignment run inappropriately , when running all, I face error. so what should I do ?

here is the link to the lab (posting link to your assignment notebook or sharing any codes is against community guidelines)

Perform a Lab reset but before you do that save your current work so you can use it again!

1 Like

hi @Houmehr

can you share a screenshot of the error you are getting without sharing any part of the grade cell codes.

Regards
DP

1 Like


this is what I am talking about , while the cell is unchangeable and I cannot change its code .However, when running, this kind of glitch happens

did you try getting a fresh copy of assignment and re-do the assignment?

not defined errors are usually because of the recalled code not being run down before execution of the cell in the image, so in case when you reset the kernel, I hope you didn’t use the run all option to run all the codes together.

when you dc kernel and reconnect, always run each cell from beginning till end one by one.

Regards
DP

I do , I download the original file once I encountered with the warning message by coursera to save all labs. but the problem here is when I lunch the original version of the code in , jupyter anaconda or in vs code , there are some syntax error in code structure . or some visual plot picture does not appear in the alternative platform than coursera lab

are you not working in coursera provided environment??

i do work there , but as i saw some problem in the code , I decided to reopen the original file ( without any change ) in other program to copy and past the raw code ( exactly as what it was before taking assignment ) in the coursera lab again , because I didn’t find any other way to take all codes back to their original form

however , I failed using this way , since I still have problem with codes

copy paste of codes usually cause syntax error and also this is not the way to do assignment, please get a totally fresh copy and re do the assignment.

When the copy paste of codes are done, as we use loops and codes require execution of codes from a position point of view in a particular codes cell, you will always end up with this issue.

so then , how can I make a fresh copy of my assignment ?

Use Topic 1a to get a fresh copy of assignment.

Once you have a fresh copy, please ensure you write codes only between assigned markers ###START AND END CODER HERE###.

do not delete/add/edit any part of the assignment outside of this marker for successful submission of your grade assignment.

Regards
DP

here is what you said

base on this , you mean to download entire lab with its files before deleting it ?

thanks dear mentor , I did what you said and it turned to be exactly in the pervious form like I haven’t taken the assignment yet

you mean issue still persist??

this step is only if you want to compare your codes to have understanding what you must have done incorrect previously

not at all , it was solved. I could successfully pass the assignment with your practical guidance

1 Like

@Houmehr I think you might be of need for some python classes, there are some good courses online in Coursera!

1 Like