Hyperactive icon indicating copy to clipboard operation
Hyperactive copied to clipboard

[ENH] experiment compositor `Negative`

Open fkiraly opened this issue 4 months ago • 5 comments

A first composition for experiments, Negative - this flips the signs in an experiment.

This should also be considered as a proof-of-concept for how composition of experiments would look like.

Depends on https://github.com/SimonBlanke/Hyperactive/pull/142 which should be merged first.

fkiraly avatar Jul 27 '25 16:07 fkiraly

how composition of experiments would look like

do I guess this would enable to combine experiments with mathematical operators like "+-*/" ?

SimonBlanke avatar Aug 02 '25 13:08 SimonBlanke

do I guess this would enable to combine experiments with mathematical operators like "+-*/" ?

Only the unary operation for now, e.g., -my_experiment.

However, the principle for binary operations like exp1 + exp2 would be the same, just a different dunder __add__.

fkiraly avatar Aug 02 '25 15:08 fkiraly

This should also be considered as a proof-of-concept for how composition of experiments would look like.

Could you give a basic explanation and example of this here? What is the advantage over just putting it into one experiment?

SimonBlanke avatar Aug 06 '25 17:08 SimonBlanke

Could you give a basic explanation and example of this here? What is the advantage over just putting it into one experiment?

Can you explain to me what you mean by that? E.g., "putting it into one experiment"?

fkiraly avatar Aug 08 '25 16:08 fkiraly

Can you explain to me what you mean by that? E.g., "putting it into one experiment"?

Sry, I meant putting the calculations of the score/loss into one experiment, instead of having two experiments with scores/losses each and an operator between them. But maybe I misunderstand something about this feature. I think an example could clear things up.

SimonBlanke avatar Aug 11 '25 17:08 SimonBlanke