confused about parameter updates and forward/backward pass according to batches and epochs in CNN?
A flower in a hexagon
Integral inequality of length of curve
Why did Jodrell Bank assist the Soviet Union to collect data from their spacecraft in the mid 1960's?
How would an AI self awareness kill switch work?
What is this metal M-shaped device for?
What do you call a fact that doesn't match the settings?
Can polymorphing monsters spam their ability to effectively give themselves a massive health pool?
How can I deal with a significant flaw I found in my previous supervisor’s paper?
How do you funnel food off a cutting board?
What's a good word to describe a public place that looks like it wouldn't be rough?
Are there any monsters that consume a player character?
Number of FLOP (Floating Point Operations) for exponentiation
How can I improve my fireworks photography?
Cat is tipping over bed-side lamps during the night
What is the time complexity of enqueue and dequeue of a queue implemented with a singly linked list?
What makes the Forgotten Realms "forgotten"?
Getting a UK passport renewed when you have dual nationality and a different name in your second country?
Why did Bush enact a completely different foreign policy to that which he espoused during the 2000 Presidential election campaign?
Does Windows 10's telemetry include sending *.doc files if Word crashed?
Everyone is beautiful
Unwarranted claim of higher degree of accuracy in zircon geochronology
Does the "particle exchange" operator have any validity?
Early credit roll before the end of the film
How would one buy a used TIE Fighter or X-Wing?
confused about parameter updates and forward/backward pass according to batches and epochs in CNN?
$begingroup$
I am working on a CNN model, the code written in tensorflow, I did some googling about parameter updates such as weights ana biases when method is optimized and the loss is computed, two things made me confuse:
1- after output layer, the data goes to loss, the loss compute and then the model is begin optimization or in reverse of that?
2- Is parameters updated after each mini-batch fed to network (i.e. the forward and backward pass is done for every batch) or only updates when one epoch is completed? why some tutorials said that each epoch is ba forward/backward pass?
anyone can clarify it please? if with a reference its better for me.
tensorflow cnn
$endgroup$
add a comment |
$begingroup$
I am working on a CNN model, the code written in tensorflow, I did some googling about parameter updates such as weights ana biases when method is optimized and the loss is computed, two things made me confuse:
1- after output layer, the data goes to loss, the loss compute and then the model is begin optimization or in reverse of that?
2- Is parameters updated after each mini-batch fed to network (i.e. the forward and backward pass is done for every batch) or only updates when one epoch is completed? why some tutorials said that each epoch is ba forward/backward pass?
anyone can clarify it please? if with a reference its better for me.
tensorflow cnn
$endgroup$
add a comment |
$begingroup$
I am working on a CNN model, the code written in tensorflow, I did some googling about parameter updates such as weights ana biases when method is optimized and the loss is computed, two things made me confuse:
1- after output layer, the data goes to loss, the loss compute and then the model is begin optimization or in reverse of that?
2- Is parameters updated after each mini-batch fed to network (i.e. the forward and backward pass is done for every batch) or only updates when one epoch is completed? why some tutorials said that each epoch is ba forward/backward pass?
anyone can clarify it please? if with a reference its better for me.
tensorflow cnn
$endgroup$
I am working on a CNN model, the code written in tensorflow, I did some googling about parameter updates such as weights ana biases when method is optimized and the loss is computed, two things made me confuse:
1- after output layer, the data goes to loss, the loss compute and then the model is begin optimization or in reverse of that?
2- Is parameters updated after each mini-batch fed to network (i.e. the forward and backward pass is done for every batch) or only updates when one epoch is completed? why some tutorials said that each epoch is ba forward/backward pass?
anyone can clarify it please? if with a reference its better for me.
tensorflow cnn
tensorflow cnn
asked 2 mins ago
honar.cshonar.cs
1139
1139
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "557"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f46561%2fconfused-about-parameter-updates-and-forward-backward-pass-according-to-batches%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Data Science Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f46561%2fconfused-about-parameter-updates-and-forward-backward-pass-according-to-batches%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown