C1W1 Grading error i am getting 3/10 in my assignment. i am not getting why the error is occuring

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
1 Like

Hello @Siya_Ghode

Is this your submission grader output or error in the assignment?

Also try clear and restart kernel, and then run all cells from beginning till end one by one, if you stil get the same error, then let me know

Regards
DP

1 Like

it is my submission grader output and i did tried restarting and running all cells again still getting same error mam.

1 Like

Please send me your notebook via DM. Click on my name and then message.

Regards
DP

Hello @Siya_Ghode

Corrections required in your notebook

  1. incorrect URL of the white wine dataset, replace it with ‘./winequality-white.csv’

  2. incorrect URL of the red wine dataset, replace it with ‘./winequality-red.csv’

  3. While defining your model, you do not require to use tf.keras.layer to the Dense Layer, just use Dense.

  4. In compile the model, use ‘mse’ for loss instead of mean squared error for wine quality.

  5. While in the training model you are using an epoch of 180, in case you do not get the desired accuracy, try to make changes for the better accuracy. Remember increasing number of epochs mean more training time, so basically our aim is to have better accuracy with reduce training time, and not more training time.

Let me know once you clear your assignment.

Regards
DP

1 Like

Thank you Mam I cleared my assignment by making correction’s suggested by you. Thank you so much I was stuck on it for long. :slightly_smiling_face:

2 Likes

Did you reduce the epoch?

no it happened without it so i did not reduce it

2 Likes