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.

Support dependencies between optimization parameters

See original GitHub issue

It would be great if we could enter dependencies between parameters for optimization. For example, if I have the parameter bounds:

pbounds = {'a': (0, 5),
           'b': (0, 10)}

and know that for my application, no meaningful results will come from parameter choices where b < a, I would like to be able to force the optimizer to only choose samples such that b >= a.

See [M. T. M. Emmerich et. al. 2008] for some discussion of this. That’s just about the only paper that tries it that I can find so far.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

13reactions
fmfncommented, May 18, 2018

I’ll take a look at the PR. But one idea that sometimes can be used is to parametrize your parameters differently, making the dependency more explicit:

instead of pbounds = {'a': (0, 5), 'b': (0, 10} with the condition b < a, you could change coordinates to: x = a and y = b - a, and define pbounds = {'x': (0, 5), 'y': (0, 5)}, and call your function like so: f(a=x, b=x + y).

0reactions
bwheelz36commented, Oct 31, 2022

addressed in #344

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using Optimal Dependency-Trees for Combinatorial ... - DTIC
Many combinatorial optimization algorithms have no mechanism to capture inter-parameter dependencies. However, modeling such dependencies ...
Read more >
(PDF) Optimizing Parametric Dependencies for Incremental ...
Our extension aims to optimize the learning of parametric dependencies with a genetic programming algorithm to be able to detect non-linear ...
Read more >
Data-Driven Elicitation and Optimization of Dependencies ...
Abstract: Requirement dependencies affect many activities in the software development life cycle such as design, implementation, testing, release planning ...
Read more >
Identification of dependencies between ... - ScienceDirect.com
If changes occur in a product development process (PDP), affected technical parameters or stakeholders are not informed immediately, or even identified.
Read more >
Data dependencies for query optimization: a survey
One can find many ODs in real-world datasets. For example, the ncvoter dataset and data from a real-world ERP system contain many order ......
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