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’