# Missing Learning Rate Scheduler

**URL:** <https://community.konduit.ai/t/missing-learning-rate-scheduler/373>\
**Category:** Tuning Help\
**Created:** [April 6, 2020, 3:14pm UTC](https://community.konduit.ai/t/missing-learning-rate-scheduler/373 "2020-04-06T15:14:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![yptheangel](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/yptheangel/32/128_2.png) [@yptheangel](https://community.konduit.ai/u/yptheangel)\
**Post date:** [April 6, 2020, 3:14pm UTC](https://community.konduit.ai/t/missing-learning-rate-scheduler/373/1 "2020-04-06T15:14:22Z")

</div>

Hi, I am trying to implement a learning rate scheduler/policy in my Image Classifier.  
As I have checked the suggested LeNetExample, the latest version [here](https://github.com/eclipse/deeplearning4j-examples/blob/master/dl4j-examples/src/main/java/org/deeplearning4j/examples/convolution/LenetMnistExample.java) does not implement the policy anymore and I saw the implementation at a older branch [here](https://github.com/eclipse/deeplearning4j-examples/blob/_old/r119_spark/dl4j-examples/src/main/java/org/deeplearning4j/examples/convolution/LenetMnistExample.java).

I have checked the API doc and I cannot find the methods learningRateDecayPolicy(), lrPolicyDecayRate(), .lrPolicyPower() at ComputationGraphConfiguration and MultiLayerConfiguration class.  
Is the feature deprecated?

---

<div class="post-metadata">

**Author:** ![treo](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/treo/32/47_2.png) [@treo](https://community.konduit.ai/u/treo)\
**Post date:** [April 6, 2020, 5:04pm UTC](https://community.konduit.ai/t/missing-learning-rate-scheduler/373/2 "2020-04-06T17:04:19Z")

</div>

We’ve changed how Learning Rate and Learning Rate Schedules are handled.

Here you can see an example of how it is done now: [https://github.com/eclipse/deeplearning4j-examples/blob/master/dl4j-examples/src/main/java/org/deeplearning4j/examples/convolution/mnist/MnistClassifier.java#L117-L127](https://github.com/eclipse/deeplearning4j-examples/blob/master/dl4j-examples/src/main/java/org/deeplearning4j/examples/convolution/mnist/MnistClassifier.java#L117-L127)

Essentially, what we did is that instead of setting it up on the whole configuration, you set it up on the updater instead now. This fixes some cases where you could set up a schedule but it wouldn’t be used.

---

<div class="post-metadata">

**Author:** ![yptheangel](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/yptheangel/32/128_2.png) [@yptheangel](https://community.konduit.ai/u/yptheangel)\
**Post date:** [April 7, 2020, 5:55am UTC](https://community.konduit.ai/t/missing-learning-rate-scheduler/373/3 "2020-04-07T05:55:57Z")

</div>

Thanks for pointing me to the example, got it working now.

---

<div class="post-metadata">

**Author:** ![Bruno](https://avatars.discourse-cdn.com/v4/letter/b/c77e96/32.png) [@Bruno](https://community.konduit.ai/u/Bruno)\
**Post date:** [July 19, 2021, 1:48pm UTC](https://community.konduit.ai/t/missing-learning-rate-scheduler/373/4 "2021-07-19T13:48:24Z")

</div>

Hey this link does not seem to load anymore and l would really like to get some help with setting a learning scheduler myself, any help would be greatly appreciated

---

<div class="post-metadata">

**Author:** ![treo](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/treo/32/47_2.png) [@treo](https://community.konduit.ai/u/treo)\
**Post date:** [July 19, 2021, 4:18pm UTC](https://community.konduit.ai/t/missing-learning-rate-scheduler/373/5 "2021-07-19T16:18:17Z")

</div>

Ah yes, the reorganization of the examples broke that link.

It can be found here now: [deeplearning4j-examples/LeNetMNISTReLu.java at master · eclipse/deeplearning4j-examples · GitHub](https://github.com/eclipse/deeplearning4j-examples/blob/master/dl4j-examples/src/main/java/org/deeplearning4j/examples/quickstart/modeling/convolution/LeNetMNISTReLu.java#L116-L128)

---

<div class="post-metadata">

**Author:** ![Bruno](https://avatars.discourse-cdn.com/v4/letter/b/c77e96/32.png) [@Bruno](https://community.konduit.ai/u/Bruno)\
**Post date:** [July 20, 2021, 7:31am UTC](https://community.konduit.ai/t/missing-learning-rate-scheduler/373/6 "2021-07-20T07:31:30Z")

</div>

Thank you so much this is very helpful
