For the happy or sad assignment, I keep getting TypeError: set_model() missing 1 required positional argument: ‘model’ and I have no idea on how to fix it, I don’t even see where I have “set_model()” in my code either. Many thanks
I get the same error. Can anyone help?
I fixed it by changing
...
epochs=20,
callbacks=[myCallback]
to
...
epochs=20,
callbacks=[callbacks]
1 Like
IT WORKED!! Thank you so freaking much, I spent a whole week trying to fix that program. I had no idea the issue would be the name of the callbacks because the callbacks were created for you, and on top of that, the class for the callbacks is called “myCallback” not “callbacks” I see where the callback was instantiated, the makers of the assignment changed the callback name from “myCallback” to “callbacks” and that was why the program wasn’t working. The TypeError didn’t say that the callbacks was messed up either, it just mentioned set_model() is missing an argument. Thank you so much!
1 Like
You’re welcome! I am glad I could help.