I am trying to find my mistake but I am unable to find any. If anyone spots my mistake, please let me know.
You are not supposed to be posting code solutions here!
What is you happy sad model function supposed to return? You are returning history but your error says the model is missing?
Try to return the ‘model’ itself and maybe also the history, I am not familiar with this Lab right now but read carefully what that function is supposed to return and return it properly!
Hi @Ten_sorFlow,
It sounds like you’re working on completing the train_happy_sad_model
function. You’ll need to define your model and its layers, which should include 3 Convolutional Layers (Recommended). After defining the model, compile it by choosing the appropriate loss
and optimizer
. Finally, make sure to pass the correct variables to the .fit()
function to train your model. To verify your model’s architecture, you can call model.summary()
to check your model’s architecture.
If you need further assistance, feel free to ask for help by providing more information, but please do NOT share your solution directly.
I am sorry, I did not realise my mistake when I shared the solution. I’ll keep the guidelines in mind while sharing the code next time.
Thank you for your help the issue was resolved. I just had to add the _generator with the mode.fit.
I am sorry, I did not realise my mistake when I shared the solution. I’ll keep the guidelines in mind while sharing the code screenshot next time.
Thank you for your help the issue was resolved. I just had to add the _generator with the mode.fit.
No worries at all! I’m just glad to hear that your problem has been resolved. If you ever need assistance with anything else, feel free to ask.