Coder Social home page Coder Social logo

Comments (3)

thanos-wandb avatar thanos-wandb commented on July 22, 2024

Hi @bessinz, thank you for writing in. The metric/goal keys are used in Bayesian search, as detailed here: https://docs.wandb.ai/guides/sweeps/sweep-config-keys#bayesian-search. They serve as an objective function to be optimized. For random search, it isn't necessary to provide a metric. However, if you are interested in a particular metric, you can provide it, as it can be later used to retrieve the best run of a sweep from the API: https://docs.wandb.ai/guides/track/public-api-guide#get-the-best-run-from-a-sweep. Let me know if you had any more questions about it.

from wandb.

bessinz avatar bessinz commented on July 22, 2024

Hi @thanos-wandb, thank you for your explanation. So if I don't use it in my sweep config, I still can identify the best hyperparameter config according to one of the several metrics in output? I am using YOLOv8 architecture so I have precision, recall, mAP50 and mAP50-95 metrics that appear in the sweep output when plotting the sweep comparer (with the parallel coordinates tool in wandb api).

from wandb.

thanos-wandb avatar thanos-wandb commented on July 22, 2024

Hi @bessinz indeed, for random search you won't need to specify it, and you should be able to identify the best metric either from the UI (eg in parallel coordinates panel) or from the API as follows:

best_run = sweep.best_run(order='-summary_metrics.mAP50')
best_run.summary.mAP50

Please note the -/+ in the order depending if you wanted to sort the metric as ascending/descending respectively. I hope this helps! Let me know if you had any more questions.

from wandb.

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.