Hi,
I am using Sweeps to run through different configuration models and I was told by the wandb chat support that to run the best model configuration off sweeps is to create a new sweep with the best performing parameter set and running off it.
But this is lot of tedious work, is there any other elegant way of quering wandb project for the best model configuration and running off it?
tldr: I run a sweep with different configuration, would like to run predictions off a specific set of parameters (or best performing set of parameters). How to do it with the sweep API?
Thanks for persisting with this and posting it here, here is how you do it with the Api.
import wandb
api = wandb.Api()
sweep = api.sweep(f"_scott/project-name/sweeps/qwbwbwbz")
# Get best run parameters
best_run = sweep.best_run(order='validation/accuracy')
best_parameters = best_run.config
print(best_parameters)
since I do have the goal/metric set I don’t need to worry about order, right? but if not I do collect KL (column name is KL) score (kl-divergence) so I’d modify the code snipet as;
best_run = sweep.best_run(order='KL')
But in case of KL, the lower is better any recommendation on how to select best_run based on it?