Week 2 : C1_W2_Assignment

Hi, I’m having a lot of issues trying to figure out what to do with the C1_W2_linear_regression lab assignment. I don’t have any programming experience and only understand a surface level of Python.

I believe I’m supposed to “run the cell below to import all the packages.” When I’m in the ln [2], in the next cell, on my Mac, I select “shift” + “return” key and nothing happens. The cell I’m referring to is the following:

import numpy as np
import matplotlib.pyplot as plt
from utils import *
import copy
import math
%matplotlib inline

I place my cursor in the cell, select “shift” + “return” and I don’t see anything happens. Please tell me how to confirm that I have imported the contents in the cell correctly.
Else, can you point me to a group, or chat, where people can help each other on these basic instructions?

This reply from @Clearly is a duplicate of another thread. Please look there for answers.

Hello all,

I´m still experience same errors, Ive passed all test, and the grade is zero.

{moderator edit: code removed}

May someone help me?

Thanks in advance,

[C1_W2_Assignment (4).ipynb|attachment]
{moderator edit: upload removed}

What is the grader feedback?

Click on the > icons next to each grade report, and you will see a text box with the grader feedback.

Please post screen capture images of same.

Also, please do not share your code on the forum. That’s not allowed by the Code of Conduct.

If a mentor needs to see your code, we will contact you with instructions.

Hello,

This is the grade report,

Any help please?

Typically this could be caused by a couple of different issues.

  1. Maybe you left part of the assignment incomplete. In this course you cannot grade an incomplete notebook - it makes the grader crash, then you get a weird error message.

  2. Maybe you deleted the cell that has the Exercise 1 code, and then you tried to replace it. Doing this will erase the metadata that the grader uses to identify cells that is should pay attention to.

Another possible cause is if you downloaded the notebook to use it on a local platform, and then uploaded it back into Coursera Labs.

Hello, as far as I know, I did this… How I could revert?Thanks

You’ll need to get a fresh copy of the notebook and start over.
Use this process:

  • Open the notebook.
  • Go to the File → Open menu
  • Click the checkbox next to your notebook. A red “trash can” icon will appear in the menu.
  • Click on the trash can. This will delete your notebook.
  • Then use the “Help → Get latest version” menu. This puts a new copy of the notebook into your File folder.
  • Then double-click on the notebook file name in the File menu.

This should open a new copy of the notebook. You’ll need to re-enter your code.

Iam getting error :unknown 52 but how can i found line 52

Please post a screen capture image that shows the entire error message.

Hi - I added a replace_row param to the AddRows function because it was the easiest way to follow the row operation instructions. Would this crash the grader? I passed all tests, but an getting 0/100.

{moderator edit: code removed}

Yes, it would.
The grader expects that you have not changed the function definitions.