GithubHelp home page GithubHelp logo

Comments (5)

sfalkner avatar sfalkner commented on August 11, 2024

Thanks for trying out HpBandSter; I'm glad you like it!
As you have already successfully figured out, the result_logger is kind of a callback that is notified every time a new configuration is proposed, or a new result comes in. IMHO, the 6 lines of code you had to write to achieve that are not too bad. I agree that having callbacks would be nice, but it's actually not that hard to add more things to your logger to perform exactly the actions you need.

So far, you are the first one I know that actually wrote a custom logger. How would you feel about adding your custom logger to the examples for others to see how to do that?

from hpbandster.

jakubczakon avatar jakubczakon commented on August 11, 2024

I guess you are right @sfalkner. Callbacks are a "nice to have", but definitely you can do pretty much whatever you need in the __call__ function.

I would love to add an example of that!
I will do that next week as I am on vacation right now.

PS
I am writing a blog series about HPO in python and HpBandSter is going to be part 5 of that.
Part 0 and Part 1 are already published on towards data science.

from hpbandster.

jakubczakon avatar jakubczakon commented on August 11, 2024

Hi @sfalkner.
I have been on and off trying to add this example but I am having trouble understanding how to build it.
When I worked with rtd and sphinx in my projects I would create .rtd or .ipynb files and then run make html to create html files.
In this project, it seems a bit different and it would help me a lot if you could give a simple step-by-step instruction of how to build it. Specifically:

  • where should I create a new .ipynb with the example?
  • which .rt d or .html should I modify to change the index.html for Examples-How to use HpBandSter ?
  • how to build it? I'd presume once the first and second questions are answer I just need to run make html

Thanks!

from hpbandster.

sfalkner avatar sfalkner commented on August 11, 2024

Hi @jakubczakon,
sorry for the delay on my end.
IIRC, you just put the example as a .py file into the hpbandster/examples' folder. Make sure it has example` in its name, so it is picked up during building the documentation. This line makes sure that the examples are automatically picked up without changing anything else. Let me know if you have any problems.
Thanks for putting in the time!

from hpbandster.

jakubczakon avatar jakubczakon commented on August 11, 2024

Thanks @sfalkner !
Added example as you proposed in PR #65

from hpbandster.

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.