'float' object has no attribute 'model'

i am having this problem

Please see if your train_happy_sad_model function returns a float instead of the history object.