question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Trials with same hyperparameters - Random search

See original GitHub issue

/kind bug

What steps did you take and what happened: I had recently run 8 trials for an experiment and out of 8 only 4 unique combinations were seen and the rest were duplicates. The duplicates hyperparameters are seen in the majority of the experiments I run.
Ref: #842

Looking forward to this feature. #866

What did you expect to happen: Expected 8 different combinations of hyperparameter to run.

Anything else you would like to add: [Miscellaneous information that will assist in solving the issue.] Suggestion pod log:

INFO:pkg.suggestion.v1beta1.hyperopt.base_service:GetSuggestions returns 8 new Trial

Suggestion controller log: (I might have missed a few as many different experiments ran after this)

{"level":"info","ts":1624915551.6826324,"logger":"suggestion-controller","msg":"Sync assignments","Suggestion":"admin/test-123","Suggestion Requests":8,"Suggestion Count":8}
{"level":"info","ts":1624925599.2925694,"logger":"suggestion-controller","msg":"Sync assignments","Suggestion":"admin/test-123","Suggestion Requests":8,"Suggestion Count":8}
{"level":"info","ts":1624929816.4245157,"logger":"suggestion-controller","msg":"Sync assignments","Suggestion":"admin/test-123","Suggestion Requests":8,"Suggestion Count":8}
{"level":"info","ts":1624953809.892868,"logger":"suggestion-controller","msg":"Sync assignments","Suggestion":"admin/test-123","Suggestion Requests":8,"Suggestion Count":8}

Search space:

lr: 0.001
epochs: 100
batch size: 32, 64
num of cells: 40, 60
num of layers: 2, 3

Trail configuration:

Parallel trials: 8
Max trials: 8
Max failed trails: 2

Result: 123675979-f55e7380-d860-11eb-8e49-5d3d402e8aa6

This is all I can add as of now as the pods were cleaned up. If this isn’t enough please let me know what all I need to record when this happens again.

Environment:

  • Kubeflow version (kfctl version): 1.3
  • Kubernetes version: (use kubectl version): 1.19
  • Katib controller version: v0.11.0

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
johnugeorgecommented, Jun 30, 2021

I will try to reproduce this one. Thanks for reporting this

0reactions
johnugeorgecommented, Feb 15, 2022

related: #1633

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hyperparameter Optimization With Random Search and Grid ...
A better approach is to objectively search different values for model hyperparameters and choose a subset that results in a model that achieves ......
Read more >
Improve Your Hyperparameter Tuning Experience With The ...
Random searches are very similar to grid searches. However, instead of testing every combination of hyperparameters, random searches only ...
Read more >
A more effective random search for machine learning ...
Random search occupies less computations than the grid search, but at the same time there is a penalty for accuracy. However, this paper...
Read more >
Random Search for Hyper-Parameter Optimization
In this paper, we focus on random search, that is, inde- pendent draws from a uniform density from the same configuration space as...
Read more >
Hyperparameter Tuning Using Grid Search and Random ...
While grid search looks at every possible combination of hyperparameters to find the best model, random search only selects and tests a ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found