Training cycles Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Moderator Election Q&A - Questionnaire 2019 Community Moderator Election ResultsWhy is learning rate causing my neural network's weights to skyrocket?Neural Network accuracy and loss guarantees?Convolution Neural Network Loss and performanceloss = function(iteration) gets super wobbly once it gets near the bottomNeural network only converges when data cloud is close to 0Why do we use gradients instead of residuals in Gradient Boosting?Deep learning with Tensorflow: training with big data setsDeep advantage learning: how to predict the valueMachine learning - 'train_test_split' function in scikit-learn: should I repeat it several times?CNN not learning properly

Withdrew £2800, but only £2000 shows as withdrawn on online banking; what are my obligations?

How do I stop a creek from eroding my steep embankment?

Given a circle and line equations what are all possible solutions for k where the line sits tangent to the circle?

How to remove list items depending on predecessor in python

How to deal with a team lead who never gives me credit?

How do pianists reach extremely loud dynamics?

Why am I getting the error "non-boolean type specified in a context where a condition is expected" for this request?

A binary hook-length formula?

Where is the concept of Prapatti/Saranagati mentioned in the mukhya upanishads, as per the Sri Vaishnava interpretation?

Novel: non-telepath helps overthrow rule by telepaths

Why was the term "discrete" used in discrete logarithm?

String `!23` is replaced with `docker` in command line

Is it ethical to give a final exam after the professor has quit before teaching the remaining chapters of the course?

Seeking colloquialism for “just because”

How to react to hostile behavior from a senior developer?

Why are both D and D# fitting into my E minor key?

Why didn't Eitri join the fight?

How to compare two different files line by line in unix?

Why did the US and UK choose different solutions to the problem of an undemocratic upper house?

What causes the vertical darker bands in my photo?

What does the "x" in "x86" represent?

Fundamental Solution of the Pell Equation

Do square wave exist?

Check which numbers satisfy the condition [A*B*C = A! + B! + C!]



Training cycles



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
2019 Moderator Election Q&A - Questionnaire
2019 Community Moderator Election ResultsWhy is learning rate causing my neural network's weights to skyrocket?Neural Network accuracy and loss guarantees?Convolution Neural Network Loss and performanceloss = function(iteration) gets super wobbly once it gets near the bottomNeural network only converges when data cloud is close to 0Why do we use gradients instead of residuals in Gradient Boosting?Deep learning with Tensorflow: training with big data setsDeep advantage learning: how to predict the valueMachine learning - 'train_test_split' function in scikit-learn: should I repeat it several times?CNN not learning properly










0












$begingroup$


In the context of Machine Learning, I encounter often the fact that a correction step does not occur after each training step, but only every n learning steps.



Citing from the Deep Learning with Python book:




This is the training loop, which, repeated a sufficient number of times (typically tens of iterations over thousands of examples), yields weight values that minimize the loss function




Why don't we correct at every step, but typically only once every 100 learning samples?



I assume, but I am not sure, that this might be because of efficiency, and also to smooth the correction "path" (e.g. integrating a correction step that is an average of the last 100 loss function values).



Thank you in advance!










share|improve this question









$endgroup$
















    0












    $begingroup$


    In the context of Machine Learning, I encounter often the fact that a correction step does not occur after each training step, but only every n learning steps.



    Citing from the Deep Learning with Python book:




    This is the training loop, which, repeated a sufficient number of times (typically tens of iterations over thousands of examples), yields weight values that minimize the loss function




    Why don't we correct at every step, but typically only once every 100 learning samples?



    I assume, but I am not sure, that this might be because of efficiency, and also to smooth the correction "path" (e.g. integrating a correction step that is an average of the last 100 loss function values).



    Thank you in advance!










    share|improve this question









    $endgroup$














      0












      0








      0





      $begingroup$


      In the context of Machine Learning, I encounter often the fact that a correction step does not occur after each training step, but only every n learning steps.



      Citing from the Deep Learning with Python book:




      This is the training loop, which, repeated a sufficient number of times (typically tens of iterations over thousands of examples), yields weight values that minimize the loss function




      Why don't we correct at every step, but typically only once every 100 learning samples?



      I assume, but I am not sure, that this might be because of efficiency, and also to smooth the correction "path" (e.g. integrating a correction step that is an average of the last 100 loss function values).



      Thank you in advance!










      share|improve this question









      $endgroup$




      In the context of Machine Learning, I encounter often the fact that a correction step does not occur after each training step, but only every n learning steps.



      Citing from the Deep Learning with Python book:




      This is the training loop, which, repeated a sufficient number of times (typically tens of iterations over thousands of examples), yields weight values that minimize the loss function




      Why don't we correct at every step, but typically only once every 100 learning samples?



      I assume, but I am not sure, that this might be because of efficiency, and also to smooth the correction "path" (e.g. integrating a correction step that is an average of the last 100 loss function values).



      Thank you in advance!







      machine-learning deep-learning






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 4 at 10:22









      SomeoneUnknownSomeoneUnknown

      1




      1




















          1 Answer
          1






          active

          oldest

          votes


















          0












          $begingroup$

          This is called batch updation which is the most popular method of updating weights. We also call it BatchSGD in context of SGD. Yes, what you mentioned is true. If we have 1000's of weights which we typically have in deep neural networks. It is not efficient to calculate partial derviatives at each weights for every input. Instead, We do the batch updation by which we will aggregate all the loss for last 100 inputs(as in your case) and at the end of 100th input, we take the average fo the losses and update the weight of the network. Keep in mind that calculation partial derivatives is one of the most compute intensive tasks that we perform in neural networks. So making 100 updates to Just 1 save a lot of compute. Hope it helps






          share|improve this answer









          $endgroup$













            Your Answer








            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
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f46630%2ftraining-cycles%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0












            $begingroup$

            This is called batch updation which is the most popular method of updating weights. We also call it BatchSGD in context of SGD. Yes, what you mentioned is true. If we have 1000's of weights which we typically have in deep neural networks. It is not efficient to calculate partial derviatives at each weights for every input. Instead, We do the batch updation by which we will aggregate all the loss for last 100 inputs(as in your case) and at the end of 100th input, we take the average fo the losses and update the weight of the network. Keep in mind that calculation partial derivatives is one of the most compute intensive tasks that we perform in neural networks. So making 100 updates to Just 1 save a lot of compute. Hope it helps






            share|improve this answer









            $endgroup$

















              0












              $begingroup$

              This is called batch updation which is the most popular method of updating weights. We also call it BatchSGD in context of SGD. Yes, what you mentioned is true. If we have 1000's of weights which we typically have in deep neural networks. It is not efficient to calculate partial derviatives at each weights for every input. Instead, We do the batch updation by which we will aggregate all the loss for last 100 inputs(as in your case) and at the end of 100th input, we take the average fo the losses and update the weight of the network. Keep in mind that calculation partial derivatives is one of the most compute intensive tasks that we perform in neural networks. So making 100 updates to Just 1 save a lot of compute. Hope it helps






              share|improve this answer









              $endgroup$















                0












                0








                0





                $begingroup$

                This is called batch updation which is the most popular method of updating weights. We also call it BatchSGD in context of SGD. Yes, what you mentioned is true. If we have 1000's of weights which we typically have in deep neural networks. It is not efficient to calculate partial derviatives at each weights for every input. Instead, We do the batch updation by which we will aggregate all the loss for last 100 inputs(as in your case) and at the end of 100th input, we take the average fo the losses and update the weight of the network. Keep in mind that calculation partial derivatives is one of the most compute intensive tasks that we perform in neural networks. So making 100 updates to Just 1 save a lot of compute. Hope it helps






                share|improve this answer









                $endgroup$



                This is called batch updation which is the most popular method of updating weights. We also call it BatchSGD in context of SGD. Yes, what you mentioned is true. If we have 1000's of weights which we typically have in deep neural networks. It is not efficient to calculate partial derviatives at each weights for every input. Instead, We do the batch updation by which we will aggregate all the loss for last 100 inputs(as in your case) and at the end of 100th input, we take the average fo the losses and update the weight of the network. Keep in mind that calculation partial derivatives is one of the most compute intensive tasks that we perform in neural networks. So making 100 updates to Just 1 save a lot of compute. Hope it helps







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 4 at 11:56









                karthikeyan mgkarthikeyan mg

                305111




                305111



























                    draft saved

                    draft discarded
















































                    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.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f46630%2ftraining-cycles%23new-answer', 'question_page');

                    );

                    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







                    Popular posts from this blog

                    Adding axes to figuresAdding axes labels to LaTeX figuresLaTeX equivalent of ConTeXt buffersRotate a node but not its content: the case of the ellipse decorationHow to define the default vertical distance between nodes?TikZ scaling graphic and adjust node position and keep font sizeNumerical conditional within tikz keys?adding axes to shapesAlign axes across subfiguresAdding figures with a certain orderLine up nested tikz enviroments or how to get rid of themAdding axes labels to LaTeX figures

                    Tähtien Talli Jäsenet | Lähteet | NavigointivalikkoSuomen Hippos – Tähtien Talli

                    Do these cracks on my tires look bad? The Next CEO of Stack OverflowDry rot tire should I replace?Having to replace tiresFishtailed so easily? Bad tires? ABS?Filling the tires with something other than air, to avoid puncture hassles?Used Michelin tires safe to install?Do these tyre cracks necessitate replacement?Rumbling noise: tires or mechanicalIs it possible to fix noisy feathered tires?Are bad winter tires still better than summer tires in winter?Torque converter failure - Related to replacing only 2 tires?Why use snow tires on all 4 wheels on 2-wheel-drive cars?