pytorch-lr-finder | A learning rate range test implementation in PyTorch | Machine Learning library

 by   davidtvs Python Version: v0.2.1 License: MIT

kandi X-RAY | pytorch-lr-finder Summary

kandi X-RAY | pytorch-lr-finder Summary

pytorch-lr-finder is a Python library typically used in Artificial Intelligence, Machine Learning, Deep Learning, Pytorch applications. pytorch-lr-finder has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has medium support. You can install using 'pip install pytorch-lr-finder' or download it from GitHub, PyPI.

A learning rate range test implementation in PyTorch
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              pytorch-lr-finder has a medium active ecosystem.
              It has 816 star(s) with 112 fork(s). There are 14 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 18 open issues and 38 have been closed. On average issues are closed in 22 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of pytorch-lr-finder is v0.2.1

            kandi-Quality Quality

              pytorch-lr-finder has 0 bugs and 0 code smells.

            kandi-Security Security

              pytorch-lr-finder has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              pytorch-lr-finder code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              pytorch-lr-finder is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              pytorch-lr-finder releases are available to install and integrate.
              Deployable package is available in PyPI.
              Build file is available. You can build the component from source.
              Installation instructions, examples and code snippets are available.
              pytorch-lr-finder saves you 451 person hours of effort in developing the same functionality from scratch.
              It has 1065 lines of code, 103 functions and 9 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed pytorch-lr-finder and discovered the below as its top functions. This is intended to give you an instant insight into pytorch-lr-finder implemented functionality, and help decide if they suit your requirements.
            • Create a layer
            • 1 - layer convolutional convolutional layer
            Get all kandi verified functions for this library.

            pytorch-lr-finder Key Features

            No Key Features are available at this moment for pytorch-lr-finder.

            pytorch-lr-finder Examples and Code Snippets

            No Code Snippets are available at this moment for pytorch-lr-finder.

            Community Discussions

            QUESTION

            Have I implemented implemenation of learning rate finder correctly?
            Asked 2019-Feb-06 at 16:27

            Using implementation of lr_finder from https://github.com/davidtvs/pytorch-lr-finder based on paper https://arxiv.org/abs/1506.01186

            Without the learning rate finder :

            ...

            ANSWER

            Answered 2019-Feb-06 at 16:27

            The code looks like it's using the implementation correctly. To answer your last question,

            Can see the training accuracy is much lower 84.09833333333333 versus 9.93 . Should the learning rate finder find a learning rate that allows to achieve greater training set accuracy ?

            Not really. A few points

            1. You are using Adam, which scales the learning rate adaptively for each parameter in the network. The initial learning rate will matter less, as opposed to traditional SGD, for example. The original authors of Adam write

              The hyper-parameters have intuitive interpre-tations and typically require little tuning. [1]

            2. A well tuned learning rate should make your network converge faster (i.e in less epochs). It might still find the same local minima as a higher learning rate, but faster. The risk with too high learning rates is that you overshoot the local minima and instead find a poor one. With a tiny learning rate you should get the best training accuracy, but it will take very long.

            3. You are training your model for only 2 epochs. If I had to guess, the algorithm has found that a small learning rate leads to good optima, but since it is small, it requires more time to converge. To test this theory, I would recommend running your training longer.

            All that said, your time is probably better spent using Adam with default parameters and directing your attention elsewhere, such as modelling choices (layers, nodes, activations, etc). In my experience standard Adam works really well in most cases.

            [1] https://arxiv.org/abs/1412.6980

            Source https://stackoverflow.com/questions/54553388

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install pytorch-lr-finder

            Python 3.5 and above:.

            Support

            All contributions are welcome but first, have a look at CONTRIBUTING.md.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/davidtvs/pytorch-lr-finder.git

          • CLI

            gh repo clone davidtvs/pytorch-lr-finder

          • sshUrl

            git@github.com:davidtvs/pytorch-lr-finder.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link