Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to get all possible variants an experiment can produce? #72

Open
cristygrant opened this issue Aug 9, 2018 · 3 comments

Comments

@cristygrant
Copy link

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?

@rawls238
Copy link
Owner

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.

@dobesv
Copy link

dobesv commented Jan 25, 2020

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.

@dobesv
Copy link

dobesv commented Jan 29, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants