i am having this problem
Please see if your train_happy_sad_model function returns a float instead of the history object.
train_happy_sad_model