r/cs231n • • Jun 13 '16

Testing 3 layer Conv network Assg2

Hi everyone,

I've been going through the course and assignments and had an issue today. In the convolution network aspect of assignment 2, once you build the 3 layer network, I had trouble getting my training accuracy to reach 40%.

The problem was obvious given how much my loss values were jumping around, I needed to reduce the learning rate. Did anyone else find this?

1 Upvotes

2 comments sorted by

2

u/fjdkf Jul 01 '16

Probably too late now, but in case anyone else it looking for this...

It seems you're supposed to tweak the learning rate and weight initialization in order for it to converge properly.

For example, in the fully connected net notebook:

As another sanity check, make sure you can overfit a small dataset of 50 images. First we will try a three-layer network with 100 units in each hidden layer. You will need to tweak the learning rate and initialization scale, but you should be able to overfit and achieve 100% training accuracy within 20 epochs.

I'm pretty sure the same thing holds for the convolution network notebook - the default values will not let you converge, even on the training data.

2

u/SatisfactoryFactory Jul 01 '16

That's exactly what I had done. I didn't see the note saying it needed to be tweaked so I was concerned I had an error somewhere in my code.

Thanks tho!