TypeError: __init__() takes 1 positional argument but 2 were given

Getting error TypeError: init() takes 1 positional argument but 2 were given, when running:

hist = train_happy_sad_model(gen)

[python removed notebook]

The callback is created incorrectly. Don’t confuse inheritance with instance creation.

This page should help you.

Oversight on my part thank you