GithubHelp home page GithubHelp logo

Comments (3)

jrzaurin avatar jrzaurin commented on May 27, 2024

Hey @seyoulala thanks for your kind words! :)

I see a number of ways of doing it:

  1. Using multiple trainers: to each trainer you can pass a lr_scheduler (see here). Therefore you could do something like
model = WideDeep(...)
first_scheduler = torch.optim.lr_scheduler.StepLR(...)
warmup_trainer = Trainer(model, objective, lr_schedulers=first_scheduler)
# At this point the weights of the model are "warm"
trainer = Trainer(model, objective, ...). # with a 2nd scheduler if you wanted
  1. Passing a Sequential LR scheduler: in principle, the Trainer accepts any valid pytorch scheduler. Therefore, you could build your own sequential learning rate scheduler and pass it. If this throws an error let me know, because it would be a bug to fix. Personally, I have never tried it (but I will now :) )

  2. And the last one, the fit method allows for a series of warm up parameters 😉. At the moment I implemented two routines. Have a look here, to the finetune parameter, aliased as warmup. Also to this example notebook.

Let me know if you need any more info/help

from pytorch-widedeep.

seyoulala avatar seyoulala commented on May 27, 2024

thanks !build my own learning rate scheduler by SequentialLR of pytorch can deal this problem

from pytorch-widedeep.

jrzaurin avatar jrzaurin commented on May 27, 2024

okay, thanks @seyoulala

from pytorch-widedeep.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.