Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

tensorflow TypeError: cannot unpack non-iterable float object

I am using tensorflow V2.2 and run into TyepError when I do model.evaluate. Can someone advise what the issues may be? A screenshot of the execution and error message is shown below. enter image description here

like image 704
David293836 Avatar asked Dec 22 '22 17:12

David293836


1 Answers

you need to define a metric when you compile the model model.compile('adam', 'binary_crossentropy', metrics='accuracy')

in this way during evaluation, loss and accuracy are returned

like image 171
Marco Cerliani Avatar answered Jan 23 '23 20:01

Marco Cerliani