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

What is an iteration in the MNIST demo? #46

Closed
pjreddie opened this issue Jan 22, 2014 · 3 comments
Closed

What is an iteration in the MNIST demo? #46

pjreddie opened this issue Jan 22, 2014 · 3 comments
Labels

Comments

@pjreddie
Copy link

The website says the solver prints the training error every 100 iterations, what is an iteration? Is it a single forward-backward pass over a training image? I see that batchsize is a parameter in lenet.prototxt, are you doing batch gradient descent and then every iteration is actually 64 forward-backward passes and one weight update? Thanks!

@Yangqing
Copy link
Member

It is a single f-b pass over a training batch, so 100 iter with batch size
64 effectively goes through 6400 images.

Yangqing

On Tue, Jan 21, 2014 at 4:08 PM, pjreddie notifications@github.com wrote:

The website says the solver prints the training error every 100
iterations, what is an iteration? Is it a single forward-backward pass over
a training image? I see that batchsize is a parameter in lenet.prototxt,
are you doing batch gradient descent and then every iteration is actually
64 forward-backward passes and one weight update? Thanks!


Reply to this email directly or view it on GitHubhttps://github.com//issues/46
.

@pjreddie
Copy link
Author

Thanks

lukeyeager added a commit to lukeyeager/caffe that referenced this issue Oct 28, 2015
…ioning

Remove versioned symlinks from tools
@codecrystal
Copy link

I actually further question about this.

Caffe iteration is defined as a single f-b pass over a training batch, so 100 iter with batch size 64 effectively goes through 6400 images.

My quesstion is "6400images are not individual different 6400 images but they are 64 different images times 100".
Because if I set 64 different images in input as a 64size batch, with iteration 100, and once I run, I have no control over changing images during iteration in caffe.

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

No branches or pull requests

4 participants