C2 Week 01 Calculus for Machine Learning First Programming Assignment

I have done the Exercise 01 and edit the entire cell (even outside the #Start code here# and #End Code here#. Furthermore I have hardcode some data.Eventhough all the tests are passed. It gives 0 Marks for this Exercise 01.I have uploaded the snapshot below.



That is a very bad idea. That will surely confuse and annoy the grader.

I recommend you delete your notebook (using File → Open and then select the file and click on the trash can icon).

Then get a new copy of the notebook, using the “Lab Help” menu then “Get latest version”. The Lab Help menu is the question-mark inside a circle, in the upper right corner of your browser.

Then close your browser window and re-load the assignment from the course link.

Then you can start over and only edit the notebook in the marked areas.

Hi @Ushan_Loshitha

You seem to have hard coding the codes. Perhaps you missed to click the hint which provides you on how to recall the price_A and price_B using the dataframe(df). I am attaching an image, please see the hint section below the Exercise 1 header

You are suppose to first use df to the column price_supplier_a_dollars_per_item to get prices_A and use price_supplier_b_dollars_per_item to get prices_B

then using the above recall code prices_A and prices_B apply np.array to convert them into Numpy array. Please make sure you apply the correct datatype .astype(‘float32’) when you are converting the prices into numpy array.

As Mentor mentioned don’t import any module by yourself. You are also not suppose to remove those markers

###START AND END CODE HERE### and probably that is also the reason why grader is not able to grade your codes correctly.

Regards
DP