I got error in C9:
TypeError: ‘myCallback’ object is not iterable
Please help.
I got error in C9:
TypeError: ‘myCallback’ object is not iterable
Please help.
Hi @xiayuhu,
can you send your code?
@maurizioscibilia
I changed from
callbacks = myCallback()
history = model.fit(
…
callbacks =callbacks
)
to
history = model.fit(
…
callbacks =[myCallback()]
)
Then the error gone, but after submission, grade failed.
Function “model.fit_generator” not found in Code Cell 9. Please make sure you have not altered the cell positions from the original exercise question.
Yes, now you call myCallback in the right way, but I cannot see what’s inside its code. You may send your code here, if you like.
@maurizioscibilia
history = model.fit(
train_generator,
validation_data = validation_generator,
steps_per_epoch = 100,
epochs = 100,
validation_steps = 5,
verbose = 2,
callbacks =[myCallback()]
)
Not like this, I need you to send the whole code as attachment.
it works now. thanks.