When creating a post, please add:
- Week # must be added in the tags option of the post.
- Link to the classroom item you are referring to:
- Description (include relevant info but please do not post solution code or your entire notebook):
ValidateApp | INFO] Validating ‘/home/jovyan/work/submitted/courseraLearner/W1_Assignment/C1W1_Assignment.ipynb’
[ValidateApp | INFO] Executing notebook with kernel: python3
2024-04-20 08:37:01.628988: 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
2024-04-20 08:37:01.629069: 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
2024-04-20 08:37:01.629079: 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.
Tests failed on 10 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 'utils' is not defined
==========================================================================================
The following cell failed:
utils.test_red_df(red_df)
The error was:
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-7-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-14-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-18-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-23-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-27-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_base_model(base_model)
The error was:
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-29-468cefd178cd> in <module>
----> 1 utils.test_base_model(base_model)
~/work/submitted/courseraLearner/W1_Assignment/utils.py in test_base_model(base_mod...
215
216 test_inputs = tf.keras.layers.Input(shape=(11,))
--> 217 test_output = base_model(test_inputs)
218 test_model = Model(inputs=test_inputs, outputs=test_output)
219
<ipython-input-28-9f326bd09110> in base_model(inputs)
7
8 # connect a Dense layer with 128 neurons and a relu activation
----> 9 x = Dense(128, activation='relu')(inputs)
10
11 # connect another Dense layer with 128 neurons and a relu activation
NameError: name 'Dense' is not defined
==========================================================================================
The following cell failed:
utils.test_final_model(final_model)
The error was:
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-31-627ff8303ae7> in <module>
----> 1 utils.test_final_model(final_model)
~/work/submitted/courseraLearner/W1_Assignment/utils.py in test_final_model(final_m...
262
263 test_inputs = tf.keras.layers.Input(shape=(11,))
--> 264 test_output = final_model(test_inputs)
265
266 test_cases = [
<ipython-input-30-433c5bff2ee4> in final_model(inputs)
7
8 # get the base model
----> 9 x = base_model(inputs)
10
11 # connect the output Dense layer for regression
<ipython-input-28-9f326bd09110> in base_model(inputs)
7
8 # connect a Dense layer with 128 neurons and a relu activation
----> 9 x = Dense(128, activation='relu')(inputs)
10
11 # connect another Dense layer with 128 neurons and a relu activation
NameError: name 'Dense' is not defined
==========================================================================================
The following cell failed:
utils.test_model_compile(model)
The error was:
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-33-9a25711e305e> in <module>
----> 1 utils.test_model_compile(model)
NameError: name 'model' is not defined
==========================================================================================
The following cell failed:
utils.test_history(history)
The error was:
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-35-bb2fa200c0ad> in <module>
----> 1 utils.test_history(history)
NameError: name 'history' is not defined
i’m getting this error I guess testing code is not written properly when u call a function what declared in the above cell is not getting initialised . I would like respected people to fix this bug . thank you