tensorflow TypeError: cannot unpack non-iterable float object

David293836

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

Marco Cerliani

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

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

cannot unpack non-iterable numpy.float64 object : Keras dataset in Tensorflow 2.0

TypeError: cannot unpack non-iterable GetColorImage object

TypeError: cannot unpack non-iterable NoneType object

TypeError: cannot unpack non-iterable int object

Python Django: TypeError: cannot unpack non-iterable MatchAll object

TypeError at /cart/ cannot unpack non-iterable Cart object

TypeError: cannot unpack non-iterable bool object

Python: TypeError: cannot unpack non-iterable int object

Python TypeError: cannot unpack non-iterable bool object

Python / TypeError: cannot unpack non-iterable Jugador object

-- TypeError: cannot unpack non-iterable NoneType object

PyAutoGui TypeError: cannot unpack non-iterable NoneType object

TypeError: cannot unpack non-iterable int object (Python)

TypeError: cannot unpack non-iterable Lexer object

"TypeError: cannot unpack non-iterable int object" with filter function

TypeError: cannot unpack non-iterable NoneType object Error

How to fix TypeError: cannot unpack non-iterable Button object

Cannot unpack non-iterable object

cannot unpack non-iterable numpy.float64 object python3 opencv

(TypeError: cannot unpack non-iterable int object) for inversion counter using merge sort

TypeError: cannot unpack non-iterable int object in Django views function

I am getting a "TypeError: cannot unpack non-iterable int object"

Error iterating over a list 'TypeError: cannot unpack non-iterable object'

asyncio.await fails with TypeError: cannot unpack non-iterable coroutine object

numpy array , TypeError: cannot unpack non-iterable numpy.int64 object

Calling local variable causes TypeError: cannot unpack non-iterable NoneType object

Why am I getting TypeError: cannot unpack non-iterable builtin_function_or_method object?

TypeError: cannot unpack non-iterable NoneType object when running a sorting function

Error occurs running code in terminal "TypeError: cannot unpack non-iterable NoneType object"