Course 2 week 1 accuracy

I’m sorry for posting the code but I needed you to see my model. I’m supposed to get a 95% accuracy in order to pass the assignment however I keep hitting below. I dont know what I’m doing wrong

[code removed - moderator]

Does this thread help?

I changed the optimizer to Adam and I was able to get the accuracy to >95%. however other people taking the course were able to achieve that using RMSprop. I wonder why

1 Like

Experiment with using more dense layers or more convolutional layers, both can help but if you use a maximum of 5 convolutions then try to make three dense layers of 1024,512,256 units and then use you last dense layer as it is.


I am having a similar issue.
I have 5 convolutional layers, 3 dense layers, but still I am getting

accuracy: 0.8768 - val_accuracy: 0.9036

I set 15 epochs and batch size 15 and I have the optimizer RMSprop.

What else could I look at? Number of filters? I have 32, 64, 64, 128 and 128 …

Did you explore the link from my previous post?

1 Like

for the DNN try this architecture:
1024units followed by 512 units then a 256 units layer then you output layer,
if your accuracy is still not very high then look for how to improve your augmentation, this will make help your accuracy to be a lot higher

1 Like

I did.
After few attemps, changing the learning rate to 0.0001 for RMSprop optimizer did the trick :slight_smile: .

1 Like

1e-4 is very small for a learning rate. How many trainable parameters does your model have?

very well, good luck :slight_smile:

Mine worked with this model so hopefully this works

I have set the training batch size to 100 and validation batch size to 20

[code removed - moderator]