Problem in: Introduction to TensorFlow for Artificial Intelligence, Machine Learning, and Deep learning - Week 3: Improve MNIST with Convolutions

There was a problem compiling the code from your notebook. Details:
name ‘data_path’ is not defined

1 Like

Please see this link to learn about metadata and update your workspace if necessary.
If there is no metadata issue, click my name and message your notebook as an attachment.

1 Like

C1W3_Assignment.ipynb|attachment](upload://tCUqPQmzBMFUnxVAneHzhRWIpmY.ipynb) (24.4 KB)
I am enrolled in the course Introduction to Tensorflow for AI, Machine learning and Deeplearning. I have completed all my assignments and got stuck with Week 3 Assignment. The data set given is mnist.npz. I am getting below error
—> 16 history =, training_labels, epochs=10, callbacks=[callbacks])

AttributeError: ‘function’ object has no attribute ‘fit’
AttributeError: ‘function’ object has no attribute ‘count_params’

As per my understanding, this error is had occurred since the model here is defined as a function and ‘fit’ and ‘count_params’ are not an attribute of a function

can you please help me with this. If I submit the assignment with this error it shows fail.
Please help
{Assignment notebook removed by moderator}

1 Like

Can anyone help me with above problem. I have completed 99% of the course and struck with this one

1 Like


Kindly create a new topic thread with your relevant issue and screenshot of the error encountered.

You can DM your notebook. Click on my name and then message