Question: NameError Traceback ( most recent call last ) Cell In [ 1 0 ] , line 7 4 model.add ( layers . Flatten ( input
NameError Traceback most recent call last
Cell In line
model.addlayersFlatteninputshapeself.inputshape
for i in rangehpIntnumlayers', minvalue maxvalue:
model.addlayersDenseunitshpIntunits stri minvalue maxvalue step activation'relu'
# Dropout rate except the last layer
if i hpIntnumlayers':
NameError: name 'model' is not defined
It's an error, how to remove this error?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
