Getting started into deep learning run_assessment is not working!

lab assessment showed me no module named tensor flow!
But i have completed the project with more than 92% accuracy but run_assesment is not working.
i have done the project in torch and also in TensorFlow keras.

  • the output i got both the times are

Evaluating model to obtain average accuracy…

Accuracy: 0.0000

Accuracy required to pass the assessment is 0.92 or greater.
Your average accuracy is 0.0000.

Your accuracy is not yet high enough to pass the assessment, please continue trying.


TypeError Traceback (most recent call last)
Cell In[18], line 1
----> 1 run_assessment(model, valid_gen)

TypeError: run_assessment() takes 1 positional argument but 2 were given


run_assessment(model)

Evaluating model to obtain average accuracy…


AttributeError Traceback (most recent call last)
Cell In[25], line 1
----> 1 run_assessment(model)

File /dli/assessment/notebook_helpers/run_assessment.py:63, in run_assessment(model)
61 def run_assessment(model):
62 print(‘Evaluating model to obtain average accuracy…\n’)
—> 63 average = validate(model)
64 print(‘\nAccuracy required to pass the assessment is 0.92 or greater.’)
65 print(‘Your average accuracy is {:5.4f}.\n’.format(average))

File /dli/assessment/notebook_helpers/run_assessment.py:53, in validate(model)
50 def validate(model):
51 accuracy = 0
—> 53 model.eval()
54 with torch.no_grad():
55 for x, y in valid_loader:

AttributeError: ‘Functional’ object has no attribute ‘eval’

Hi @mdnawfal69 , nice to meet you.

I’m guessing from the screenshot that you’re a returning user from over a year ago. Is that correct? We switched from TensorFlow to PyTorch about a year ago, so if you’re uploading the old assessment file, it is not configured to run with the new automated grader.

The good news is, you should have access to all the new PyTorch content. It sounds like you already have a great mastery of the fundamentals. If you work through the new assessment file, I’m sure you’ll get that certificate in no time.

Best of luck!

1 Like

I’m not a returning user .
It’s actually my fault I just don’t know where the assessment file is, i just found the old ones from git and used it !

Can you please let me know where can I find the new assessment file.

No problem, @mdnawfal69 , happy to help you find it.

If you log into the course, there’s a seventh section after NLP that will take you to the assessment server. It works just like the other notebook servers.

You got this! Please let us know when you pass. It makes our day hearing about your success :)

1 Like

I have exhausted the lab time provided; can I get extra lab time please.

Hi @mdnawfal69, if you have a moment, could you please reach out to NVDLI@nvidia.com? We’ll need your email in order to extend the time limits.

Thanks!

1 Like

I reached out to NVDLI@nvidia.com.

Thankyou so much for the back-to-back
Assistance 🙌🏻

I have completed my assessment and got the certification 🥇!!

Congratulations on completing the course and getting the certificate.

So happy to hear that. Congrats!!!