Failed graded function: incorrect ype ‘Nonetype’

Hello everybody,
After submitting the week_1 assignment, the graded functions are assigned to zero with this description:
Details of failed tests for create_train_val_dirs
Failed test case: create_train_val_dirs has incorrect type.
Expected:
typing.Callable,
but got:
<class ‘NoneType’>.

Details of failed tests for split_data

Failed test case: split_data has incorrect type.
Expected:
typing.Callable,
but got:
<class ‘NoneType’>.

Details of failed tests for train_val_generators

Failed test case: train_val_generators has incorrect type.
Expected:
typing.Callable,
but got:
<class ‘NoneType’>.

Details of failed tests for create_model

Failed test case: create_model has incorrect type.
Expected:
typing.Callable,
but got:
<class ‘NoneType’>.

Although these functions worked successfully with me and outputted the expected findings as it is shown in figures

[code removed - moderator]

any help, please

Please click my name and message your notebook as an attachment.

Please see this link to learn about grader metadata.
Grader metadata is missing. So, refresh your workspace and try again.
See Refresh your Lab Workspace section here
If you’ve already done this, contact coursera help

Ok, I have changed metadata info, but I did not understand the next step of refreshing the workspace.
Can you please explain it?

You should not change metadata information manually since you don’t know which cells are graded.

Here are the steps:

  1. Download your notebook and rename the notebook on coursera workspace.
  2. Click the Help menu (top right) and then Get Latest Version.

This should reset the workspace with starter code.

To confirm, see if you can spot metadata in a few cells before starting to fill code for submission.

Hi,
I have the same problems here. I try to follow the instructions on refreshing. I manually add a part to the end of URL.


But still not working.
Would you please help me?
Thank you.

If you’ve refreshed the lab and none of the notebook cells have metadata information, please contact coursera help.

Hi! So I’m using google Colab to complete my assignment for C2W1. I am having similar problem, my functions are working properly but the grader gave me 0 marks for the first file. I got 50 for the second one. I read your suggestions regarding what to do but i’m not seeing any of the options you mentioned. As soon as i click on the assignment link, it automatically takes me to colab where no above mentioned buttons are available or maybe i can’t see them. Please help me. Thanks.

If you don’t see grader metadata tags in any of the notebook cells, please contact coursera.

What does grader metadata look like? I haven’t changed any of the other cells. I just wrote my code inside the cells after “Start code here”

Please read this section from one of my previous posts.

@Mugheera_Saleem
Grader metadata is missing in your notebook.
See Refresh your Lab Workspace section here
If you’ve already done this, contact coursera help

Hi! So if anyone is still facing this problem,

  1. Open coursera and go to the assignment.
  2. Type “?forceRefresh=true” at the END of the URL of the lab which is causing this problem and press enter. This will refresh the lab with the metadata for the grader.
  3. Open the lab using the link and do the same thing of copying “?forceRefresh=true” at the end of the URL, save it in your drive (I kept the name of the file similar to when it opened instead of “copy of the assignment”) and then write the code for the assignment.
  4. Download the .ipynb file and upload it. You won’t have this problem hopefully. Thanks.

Hi,
I am trying to follow. But it not giving me. Would you take a look?

then I pressed enter, then I went to file, download ipyn.

Then I submit the file. But I still get 0 grades.
Is there something I am missing?

Actually, I re-opened the assignment notebook again from here

Then pasted graded functions’ codes directly there, not on the drive copy.

Ah yeah! I think you are refreshing the google colab link. You have to refresh the link of your assignment at courser. By that I mean the page of courser from where you are redirected to the google colab after clicking at the assignment notebook link. I hope u can understand what I’m saying.

I don’t think the changes will be saved on the notebook unless you make a copy because this notebook is hosted from GitHub.

got it passed. thanks. you are right. I should have opened it from the courser. thanks for your help.