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.

Sweeps: Conditional parameters

See original GitHub issue

It seems to me that there is currently no way to define a sweep where some parameters depends on another one, is it correct?

What I have in mind is something like this example from hyperopt (source):

from hyperopt import hp
space = hp.choice('classifier_type', [
    {
        'type': 'naive_bayes',
    },
    {
        'type': 'svm',
        'C': hp.lognormal('svm_C', 0, 1),
        'kernel': hp.choice('svm_kernel', [
            {'ktype': 'linear'},
            {'ktype': 'RBF', 'width': hp.lognormal('svm_rbf_width', 0, 1)},
        ]),
    },
    {
        'type': 'dtree',
        'criterion': hp.choice('dtree_criterion', ['gini', 'entropy']),
        'max_depth': hp.choice('dtree_max_depth',
            [None, hp.qlognormal('dtree_max_depth_int', 3, 1, 1)]),
        'min_samples_split': hp.qlognormal('dtree_min_samples_split', 2, 1, 1),
    },
])

At the moment this is not support by neither the “standard” sweeps nor by the beta Ray Tune sweeps, right?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:9
  • Comments:19 (4 by maintainers)

github_iconTop GitHub Comments

7reactions
emanuelevivolicommented, May 25, 2021

hi, any news?

5reactions
exalate-issue-sync[bot]commented, Dec 22, 2021

Leslie commented: We have this project listed as something we are going to do in the future

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sweeps: Conditional parameters · Issue #1487 - GitHub
It seems to me that there is currently no way to define a sweep where some parameters depends on another one, is it...
Read more >
Parametric Sweep
Using the Parameter switch sweep type, you can run specified sweeps for all or selected parameter cases for a parameter group, and if...
Read more >
Parametric Sweep - an overview | ScienceDirect Topics
A parametric sweep allows for a parameter to be swept through a range of values and can be performed when running a transient,...
Read more >
Parameter Sweeps, or How I Took My Neural Network for a ...
The short definition of a parameter sweep is that it's the process of trying different training parameter values in order to find a...
Read more >
Tune Hyperparameters - Documentation - Weights & Biases
1. Add W&B to your code: In your Python script, add a couple lines of code to log hyperparameters and output metrics from...
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