Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chapter 8.2 convnet model (dogs vs cats) test accuracy can not achieve 83.5% as described in the book #235

Open
shenchenbing opened this issue Mar 12, 2024 · 3 comments

Comments

@shenchenbing
Copy link

<Deep Learning with Python 2nd Edition> Chapter 8.2 using a convnet model with data augmentation and dropout to classify images of dogs and cats. The book says that the test accuracy is 83.5% but I tried many times, using same model/code and same inputs but got all test accuracy results below 80%. Can anyone try those codes and get results around 83.5%? Or is the book description not correct?

@WalkCharlie
Copy link

callbacks = [
keras.callbacks.ModelCheckpoint(
filepath="convnet_from_scratch.keras",
save_best_only=True,
monitor="val_loss")
]
history = model.fit(
train_dataset,
epochs=30,
validation_data=validation_dataset,
callbacks=callbacks)这步模型训练报错,input arguments看不出来问题

@shenchenbing
Copy link
Author

callbacks = [ keras.callbacks.ModelCheckpoint( filepath="convnet_from_scratch.keras", save_best_only=True, monitor="val_loss") ] history = model.fit( train_dataset, epochs=30, validation_data=validation_dataset, callbacks=callbacks)这步模型训练报错,input arguments看不出来问题

具体是报了什么错?
我倒是没碰到报错的情况,就是自己跑出来的测试精度和书里面有一些差异。

@WalkCharlie
Copy link

WalkCharlie commented Jul 24, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants