Nonetype object is no cappable

hi, i have a problem with callback on training the model. This what is the parameter said

/usr/local/lib/python3.7/dist-packages/ipykernel_launcher.py:9: UserWarning: Model.fit_generator is deprecated and will be removed in a future version. Please use Model.fit, which supports generators.
if name == ‘main’:
Epoch 1/100

TypeError Traceback (most recent call last)
in ()
7 epochs = 100,
8 verbose = 2,
----> 9 callbacks= [callbacks])

2 frames
/usr/local/lib/python3.7/dist-packages/tensorflow/python/eager/def_function.py in _call(self, *args, **kwds)
945 # In this case we have created variables on the first call, so we run the
946 # defunned version which is guaranteed to never create variables.
→ 947 return self._stateless_fn(*args, **kwds) # pylint: disable=not-callable
948 elif self._stateful_fn is not None:
949 # Release the lock early so that multiple threads can perform the call

TypeError: ‘NoneType’ object is not callable

what’s wrong with it? could anyone help, please?

This means that the variable callbacks is None.
If this is not the case in your implementation, please click my name and message your notebook as an attachment.

Please fix the typo in accruracy in your model definition.

1 Like