Passed all test cases but still, I am not able to pass the assignment

Grade Error code:
[ValidateApp | INFO] Validating ‘/home/jovyan/work/submitted/courseraLearner/W1_Assignment/C1W1_Assignment.ipynb’
[ValidateApp | INFO] Executing notebook with kernel: python3
2022-08-16 05:27:58.445387: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library ‘libnvinfer.so.6’; dlerror: libnvinfer.so.6: cannot open shared object file: No such file or directory
2022-08-16 05:27:58.445470: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library ‘libnvinfer_plugin.so.6’; dlerror: libnvinfer_plugin.so.6: cannot open shared object file: No such file or directory
2022-08-16 05:27:58.445480: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:30] Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly.
2022-08-16 05:28:00.097437: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library ‘libcuda.so.1’; dlerror: libcuda.so.1: cannot open shared object file: No such file or directory
2022-08-16 05:28:00.097470: E tensorflow/stream_executor/cuda/cuda_driver.cc:351] failed call to cuInit: UNKNOWN ERROR (303)
2022-08-16 05:28:00.097493: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (ip-10-2-121-10.ec2.internal): /proc/driver/nvidia/version does not exist
2022-08-16 05:28:00.097657: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 AVX512F FMA
2022-08-16 05:28:00.121534: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 2999995000 Hz
2022-08-16 05:28:00.123300: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x5616db898150 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2022-08-16 05:28:00.123329: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version
Tests failed on 7 cell(s)! These tests could be hidden. Please check your submission.

The following cell failed:

# You can click `File -> Open` in the menu above and open the `utils.py` file 
# in case you want to inspect the unit tests being used for each graded function.

utils.test_white_df(white_df)

The error was:

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-3-8e54b75f4c04> in <module>
      2 # in case you want to inspect the unit tests being used for each graded fun...
      3 
----> 4 utils.test_white_df(white_df)

NameError: name 'white_df' is not defined

==========================================================================================
The following cell failed:

utils.test_red_df(red_df)

The error was:

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-6-8b24a524685c> in <module>
----> 1 utils.test_red_df(red_df)

NameError: name 'red_df' is not defined

==========================================================================================
The following cell failed:

utils.test_df_drop(df)

The error was:

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-13-02ac41180da9> in <module>
----> 1 utils.test_df_drop(df)
      2 

NameError: name 'df' is not defined

==========================================================================================
The following cell failed:

utils.test_data_sizes(train.size, test.size, val.size)

The error was:

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-17-a858ae1ed80e> in <module>
----> 1 utils.test_data_sizes(train.size, test.size, val.size)
      2 

NameError: name 'train' is not defined

==========================================================================================
The following cell failed:

utils.test_format_output(df, train_Y, val_Y, test_Y)

The error was:

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-22-8710fc094fd1> in <module>
----> 1 utils.test_format_output(df, train_Y, val_Y, test_Y)

NameError: name 'df' is not defined

==========================================================================================
The following cell failed:

utils.test_norm(norm_train_X, norm_val_X, norm_test_X, train, val, test)

The error was:

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-26-67372534a214> in <module>
----> 1 utils.test_norm(norm_train_X, norm_val_X, norm_test_X, train, val, test)

NameError: name 'norm_train_X' is not defined

==========================================================================================
The following cell failed:

utils.test_history(history)

The error was:

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-34-bb2fa200c0ad> in <module>
----> 1 utils.test_history(history)

NameError: name 'history' is not defined

Did you already check the forum and this post?

Thank you sir, I have tried that all , but still getting that same error.

Did you try getting a fresh and maybe updated copy of the notebook as the attached post suggests. Once you get a fresh copy of the notebook, try once again to submit with your solutions. Otherwise if it doesnt work I will raise an issue for the staff.

Ok sir i will try, thanks

It worked, thank you sir

1 Like