PlanOut.js
PlanOut.js copied to clipboard
Is there a way to get all possible variants an experiment can produce?
I'd like to be able to get a list of all possible variants (or assignments) for a given experiment using planout. Is this currently possible? For example, if I have an experiment using weighted Choice with "control", and "test", is there a way I can get back that "control" and "test" are the possible assignments using planout library?
Sorry for the late response on this. There is no obvious way to currently do this, but we could add something to do this if you thought it would be useful.
One use case for this would be if I want to show a user interface to allow the user to set overrides manually when testing. The UI could show the available options for each parameter.
Writing an algorithm for this isn't too terribly daunting, though. You can walk the tree of ops or code (depending which you are using) and do the math. If there are conditionals and return involved, then it gets a lot trickier to decide how it should behave. I suppose it could just enter conditionals according to the current units/overrides and show the available options accordingly. Changing overrides would then update the available options.
I've been working on a prototype of this in here: https://github.com/dobesv/planout-ts/blob/master/src/PlanOutParameterGatherer.ts
Just in case anyone is interested, maybe we can collaborate.