Hello everyone- Sara from CA here. I am losing my mind here. I have been working on this course for a couple of months, no problem up until this last assignment. The first two areas “Median” and “Correlation” I keep getting 0/10. I have tried every variation I know. I get the correct results for Median, but I still don’t get any points. Then on Correlation, I get results with no errors, but the numbers are not correct. I don’t know what to do other than give up at this point. On the last three sections I get them all correct. I know I must be doing something that the grader doesn’t want but I just can’t figure out what it is. Anybody else have this issue?
Hello Sara,
Each of exercise 1 & 2 checks a couple of things and the grader’s error will help us narrow it down, so please post a screenshot of the error messages like in this post. If the screenshot can’t show the whole message, copy-and-pasting the text here alongside with the screenshot would be the best.
Cheers,
Raymond
I’ve never seen this area. Thank you for showing it to me. I will post my results in a second.
Okay, I am posting the grader and what it is saying about why I am not getting any points for the ex.1 and ex.2. Furthermore, I am missing 3 points on ex. 3, but I can’t even open the message large enough to see what it is. One other thing, I am getting a different result on expected output than the what is supposed to be there. Not that much different, but just a bit on the y axis. Can anyone help? Thank you!
Hi! As Raymond mentioned, please post a screenshot of the grader feedback to provide more context for the Mentors. Thank you.
Whoops. Forgot to paste.Thank you again/1
ex1: median per site
Filename: ex1: median per site
0/10Score: 0 of 10
Hide grader output
Grader output
Unable to find object required for grading in your code.
ex2: correlation
Filename: ex2: correlation
0/10Score: 0 of 10
Hide grader output
Grader output
Unable to find object required for grading in your code.
ex3: histogram
Filename: ex3: histogram
7/10Score: 7 of 10
Hide grader output
Grader output
Failed test case: The values of the histogram are incorrect. Make sure you are using the correct number of bins, and the correct data. Failed test case: The binwidth is incorrect. Please set the value to the one given in Directions. Failed test case: The grid is incorrect. Make sure you actually set the vertical axis grid, and that it has the correct linestyle and alpha.
Hello Sara @Stakesishigh,
For ex 1 and ex 2, please read the point number 1 and 4 of the list of common errors (under the “Common error messages and pre-submission guidelines” section of the Troubleshooting tips (link below) as both may give you the “Unable to find object required for grading in your code.” error.
After reading point number 4, if you think you might have changed any variable’s name or removed any of them, you might restart with a fresh notebook that contains all of the grading variables. For how to do it, go to the “Getting a new copy of the notebook” section of the Tips.
For ex 3, I think the error message has self-explained the problems. There are three failing test cases and you will need to address each one of them.
Lastly, before you are ready for making another submission, please make sure to save the notebook so that the grader will be able to grade on your latest work.
Good luck,
Raymond
Thanks for the tips. I thought I would start with a fresh notebook. I followed these instructions below but am unable to get a fresh notebook. I deleted all of my old files, and tried opening the lab from the Launch page, and updating the Lab, but it won’t get me a fresh lab. Any answers to this? I’m so sorry to bug!
Coursera Jupyter Lab Environment
-
Open the notebook from the classroom.
-
Once your workspace opens, in the left hand panel, right click on the notebook file and select
Rename
. Enter any filename other than the original. For example,C1_W1_Assignment.ipynb
(original) →C1_W1_Assignment_v2.ipynb
-
(Optional) For any other file that you want to get a fresh copy of (e.g. dataset files that you might have manipulated irreversibly), right click on it and select
Delete
. You can also opt toRename
orDownload
each file individually in case you want to keep them before deleting. -
Click on the
Help
button on the top right of the page. -
Click the
Get latest version
button. -
Click the
Update Lab
button. The page will refresh and you should now see the latest version of the notebook.
Hi. What happens when you click the Update Lab button? Can you post a screenshot? Please also post a screenshot of the entire window after that process is complete, including the files on the sidebar. Thanks.
I realized I didn’t delete all the data and images, just the assignment.
By deleting everything, I was able to start with a new notebook. I am going to try again. Thank you everyone for sticking with me.
Made it further this time, just need a few more points to pass! I can’t see the error here on Ex 2.
ex2: correlation0/10 points earned
There was an error grading your submission. Details: operands could not be broadcast together with shapes (7744,2) (2984,2) .
I’m assuming this means my x and y data don’t fit together correctly, but I don’t see any place to fix this?
My other issue is this ex3: histogram8/10 points earned
Failed test case: The values of the histogram are incorrect. Make sure you are using the correct number of bins, and the correct data. Failed test case: The binwidth is incorrect. Please set the value to the one given in Directions.
Directions:Using the Seaborn library, plot the histogram for the chlorophyll at the Burdekin River site:
- Use a
binwidth
of 0.1
I literally typed 0.1 after bin width and it’s still telling me it’s incorrect?
Hi Stakesishigh,
The dimensions for x and y should be rank 1 arrays (length of column,), where length of column is the same for x and y.
Make sure you select the right data for x: Chlorophyll levels (ug/L) for Burdekin River (a single column in the bur13_measurements dataframe) and y: turbidity for Burdekin River (also a single column in the bur13_measurements dataframe). Make sure you construct the bur13_measurements dataframe correctly.
See if you can solve this for ex. 2. Then see if this also helps for ex. 3
Good luck!
With all of your help, I almost passed. I ran it through the grader, got 10/10 on the first tw, but on the last ex 4 and 5 because I forgot to save it. So I saved it, and then I got a grading error. . I saved the last two, reran it, got 10out of 10 on all but ex2. and a Grader Error:Grader Feedback not Found! Finally I pass it and it won’t let me pass!!! AGHHHHHH!!! Thanks again for everyone’s patience. I will be patient and run the grader again in 24 hours to see if that fixed it. I’m so close…
Nevermind. I passed it. YES!!! THANKS to ALL!!!