Giter VIP home page Giter VIP logo

Comments (5)

ali-abz avatar ali-abz commented on June 24, 2024

Hi Andrew,
If you are OK with this, I would like to help a little bit by fixing this issue. Do I have your permission?

from capreolus.

andrewyates avatar andrewyates commented on June 24, 2024

Hi Ali, yes, that would be great! I'd be happy to discuss potential fixes as well, if it's helpful. I can think of a couple possible approaches:

  1. Raise an exception when validatefreq < niters to force the user to change their config
  2. When validatefreq < niters , reduce validatefreq to niters and log a message. The downside of this is that users might get strange behavior if they later increase niters (e.g., starting with niters=1; validatefreq=4 and then later setting niters=10), because they could miss the message and expect validation to be happening much more often that it does.
  3. Always run validation on the last epoch regardless of validatefreq.

from capreolus.

andrewyates avatar andrewyates commented on June 24, 2024

Regardless of the above, it would be nice to also log a message describing how often validation is going to be performed. That would make the behavior more clear and hopefully reduce confusion.

from capreolus.

ali-abz avatar ali-abz commented on June 24, 2024

As a user, I prefer option 1 since that is very explicit and there is no implicit actions behind it. I believe the user should be informed that there is problem with the config he/she provided. I would add a sanity check for validatefreq < niters if you are agreed.
Also, describing the validation schedule is a great idea. Would something like "Validation is scheduled on iterations: [x, y, ...]" be good? I think its logger should be just before the main loop in train:

for niter in range(initial_iter, self.config["niters"]):

from capreolus.

andrewyates avatar andrewyates commented on June 24, 2024

Yes, both of these changes sound good to me. Thanks for your help!

from capreolus.

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.