The main assignment help needed

I am getting this message but week 2 main assignment failed. Supervised Machine Learning: Regression and Classification.

<class ‘numpy.float64’>
Cost at initial w: 75.203
All tests passed!

It says in assignment summary:

Comment line with index: UNQ_C2 wasn’t found in code

Also, how to reset the whole notebook and start fresh?

Hello @Xashax007,

For each exercise, there are two header lines like below:

image

which are likely also the lines missing in your submission, and you may either try to add them back, or, as you said, reset the whole notebook.

To reset, following these steps, and be reminded that in the process you will have to rename your current notebook before the system can get you a new copy, then you may copy any thing you want from the renamed one to the new one.

Cheers,
Raymond

OK, thats helos…

I’m still stuck… See below the copy f my code. Any advice what I’m doing wrong?

Hello @Xashax007,

Apparently you inserted a few unnecessary lines to your exercise,

and left something blank.

There is a green " Click for hints" button right below the exercise cell where you can find an answer template with more description on what are expected for the blanks. You might as well start from the template.

@Xashax007, I understand this is your first topic in this community and it is also your first MLS lab assignment, while we are absolutely happy to discuss with you :smiley: , we actually would expect learners to work on the assignments themselves (for example, there should be no blanks :wink: ), and then only post error message (and not your code) here.

We would try to explain the error message, but you would have to find your way to the solution! This is the unavoidable part in learning :wink: :wink:

Lastly, if the problem in your first post has been resolved, any new problem should be posted in a new topic because this will be easier for other members of this community to join the discussion without going through unrelated posts. This is not just a communication between the two of us :wink:

Cheers,
Raymond

By the way, @Xashax007, in case it might help, there is also an optional lab in week 1 about computing cost which could be your reference for that exercise.

Also, mind the indentation which is the number of spaces at the beginning of a line. For example, the following two marked lines should have the same indentation (eight spaces).

and the line below should be indented with four spaces:

image

Either (i) get a new notebook, (ii) look at the answer template, or (iii) check out the optional lab, and you will see the correct indentation.

If you are not sure what indentation is, you might as well google “python what is indentation” and there are many nice explanations!

Thanks Raymond.

I fully understand. I wasn’t trying to gauge the solution, only to get some minimal guidance.

This is very helpful.

1 Like

Alright! Good luck with your first MLS assignment!! :smiley: :smiley: :smiley:

Ah, perfect! Thanks so much! I’ll check it out!

1 Like

Ok and how to get a new notebook? I think I have messed up everything in there. I need to start fresh.

1 Like

Raymond gave you that information in his very first reply on this thread. Please have another look at that reply.

1 Like

Got it! Thank you!

I’m pleased to say I have now managed to do it all!

:smiley:

Have a lovely day/evening!

4 Likes

It’s great to hear that, @Xashax007!

And thank you, Paul! :slight_smile:

Raymond

1 Like

Mine all assesment passed but it’s still, but I still score zero after it’s graded. I don’t know what’s wrong now

I need help with mine too, I keep scoring zero for when it is graded

Check the top of the thread as I had the same issue. Seems like something may have been deleted in error in your Jupiter notebook.

I will check again

Passing the tests in the notebook does not prove your code is perfect. The grader uses different tests.

Please post a screen capture image that shows the detailed feedback from the grader.